Class JobFarmer

All Implemented Interfaces:
IJob<EntityAIWorkFarmer>, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class JobFarmer extends AbstractJobCrafter<EntityAIWorkFarmer,JobFarmer>
Job class of the farmer, handles his fields.
  • Constructor Details

    • JobFarmer

      public JobFarmer(ICitizenData entity)
      Public constructor of the farmer job.
      Parameters:
      entity - the entity to assign to the job.
  • Method Details

    • getModel

      @NotNull public @NotNull net.minecraft.resources.ResourceLocation getModel()
      Description copied from interface: IJob
      Get the RenderBipedCitizen.Model to use when the Citizen performs this job role.
      Specified by:
      getModel in interface IJob<EntityAIWorkFarmer>
      Overrides:
      getModel in class AbstractJobCrafter<EntityAIWorkFarmer,JobFarmer>
      Returns:
      Model of the citizen.
    • generateAI

      @NotNull public @NotNull EntityAIWorkFarmer generateAI()
      Override to add Job-specific AI tasks to the given EntityAITask list.
      Returns:
      your personal AI instance.
    • getSaturationFactor

      public double getSaturationFactor()
      Description copied from interface: IJob
      Job saturation factor.
      Returns:
      increase in saturation consumption based on job.