Class AbstractEntityAIFight<J extends AbstractJobGuard<J>,B extends AbstractBuildingGuards>

Type Parameters:
J - the generic job.
All Implemented Interfaces:
ITickingStateAI
Direct Known Subclasses:
AbstractEntityAIGuard

public abstract class AbstractEntityAIFight<J extends AbstractJobGuard<J>,B extends AbstractBuildingGuards> extends AbstractEntityAIInteract<J,B>
Class taking of the abstract guard methods for both archer and knights.
  • Field Details

    • toolsNeeded

      public final List<EquipmentTypeEntry> toolsNeeded
      Tools and Items needed by the worker.
    • itemsNeeded

      public final List<List<GuardGear>> itemsNeeded
      List of items that are required by the guard based on building level and guard level. This array holds a pointer to the building level and then pointer to GuardGear
    • target

      protected net.minecraft.world.entity.LivingEntity target
      The current target for our guard.
    • SPEED_LEVEL_BONUS

      public static final double SPEED_LEVEL_BONUS
      The bonus speed per worker level.
      See Also:
  • Constructor Details

    • AbstractEntityAIFight

      public AbstractEntityAIFight(@NotNull J job)
      Creates the abstract part of the AI. Always use this constructor!
      Parameters:
      job - the job to fulfill
  • Method Details