Class JobCombatTraining

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

public class JobCombatTraining extends AbstractJob<EntityAICombatTraining,JobCombatTraining>
The Knight's Training Job class
  • Constructor Details

    • JobCombatTraining

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

      public EntityAICombatTraining 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.