Class JobBuilder

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

The job of the builder.
  • Constructor Details

    • JobBuilder

      public JobBuilder(ICitizenData entity)
      Instantiates builder job.
      Parameters:
      entity - citizen.
  • 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<EntityAIStructureBuilder>
      Overrides:
      getModel in class AbstractJob<EntityAIStructureBuilder,JobBuilder>
      Returns:
      Model of the citizen.
    • generateAI

      @NotNull public @NotNull EntityAIStructureBuilder 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.