Class JobBeekeeper

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

public class JobBeekeeper extends AbstractJob<EntityAIWorkBeekeeper,JobBeekeeper>
Class of the Beekeeper job.
  • Field Details

    • COUNTER_TRIGGER

      public static final int COUNTER_TRIGGER
      The value where when reached the counter check returns true. 100 ticks * 4 = 1 ingame day.
      See Also:
  • Constructor Details

    • JobBeekeeper

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

    • generateAI

      public EntityAIWorkBeekeeper generateAI()
      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.
    • tickNoBees

      public void tickNoBees()
      Tick the bee interaction counter to determine the time when the interaction gets triggered.
    • resetCounter

      public void resetCounter()
      Reset the bee interaction counter.
    • checkForBeeInteraction

      public boolean checkForBeeInteraction()
      Check if the interaction is valid/should be triggered.
      Returns:
      true if the interaction is valid/should be triggered.
    • 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<EntityAIWorkBeekeeper>
      Overrides:
      getModel in class AbstractJob<EntityAIWorkBeekeeper,JobBeekeeper>
      Returns:
      Model of the citizen.