Class JobArcherTraining

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

public class JobArcherTraining extends AbstractJob<EntityAIArcherTraining,JobArcherTraining>
The Archers's Training Job class
  • Constructor Details

    • JobArcherTraining

      public JobArcherTraining(ICitizenData entity)
      Initialize citizen data.
      Parameters:
      entity - the citizen data.
  • Method Details

    • getModel

      public 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<EntityAIArcherTraining>
      Overrides:
      getModel in class AbstractJob<EntityAIArcherTraining,JobArcherTraining>
      Returns:
      Model of the citizen.
    • generateAI

      public EntityAIArcherTraining generateAI()
      Description copied from interface: IJob
      Generate your AI class to register.

      Suppressing Sonar Rule squid:S1452 This rule does "Generic wildcard types should not be used in return parameters" But in this case the rule does not apply because We are fine with all AbstractJob implementations and need generics only for java

      Returns:
      your personal AI instance.