Class JobAlchemist

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

public class JobAlchemist extends AbstractJobCrafter<EntityAIWorkAlchemist,JobAlchemist>
Class of the alchemist job.
  • Constructor Details

    • JobAlchemist

      public JobAlchemist(ICitizenData entity)
      Instantiates the job for the alchemist.
      Parameters:
      entity - the citizen who becomes an alchemist
  • Method Details

    • generateAI

      @NotNull public @NotNull EntityAIWorkAlchemist 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.
    • 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<EntityAIWorkAlchemist>
      Overrides:
      getModel in class AbstractJobCrafter<EntityAIWorkAlchemist,JobAlchemist>
      Returns:
      Model of the citizen.
    • playSound

      public void playSound(net.minecraft.core.BlockPos blockPos, EntityCitizen worker)
      Description copied from class: AbstractJobCrafter
      Play a job specific work sound at a pos.
      Overrides:
      playSound in class AbstractJobCrafter<EntityAIWorkAlchemist,JobAlchemist>
      Parameters:
      blockPos - the pos to play it at.
      worker - the worker to play it for.