Class JobTeacher

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

public class JobTeacher extends AbstractJob<EntityAIWorkTeacher,JobTeacher>
Job class of the teacher.
  • Constructor Details

    • JobTeacher

      public JobTeacher(ICitizenData entity)
      Public constructor of the teacher 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<EntityAIWorkTeacher>
      Overrides:
      getModel in class AbstractJob<EntityAIWorkTeacher,JobTeacher>
      Returns:
      Model of the citizen.
    • generateAI

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