Class PathfinderMob

All Implemented Interfaces:
DataComponentGetter, SyncedDataHolder, Attackable, EquipmentUser, Leashable, Targeting, EntityAccess, UniquelyIdentifyable, Nameable, ScoreHolder, Waypoint, WaypointTransmitter, IAttachmentHolder, IEntityExtension, ILivingEntityExtension
Direct Known Subclasses:
AbstractGolem, AgeableMob, Allay, Monster, WaterAnimal

public abstract class PathfinderMob extends Mob
  • Field Details

    • DEFAULT_WALK_TARGET_VALUE

      protected static final float DEFAULT_WALK_TARGET_VALUE
      See Also:
  • Constructor Details

  • Method Details

    • getWalkTargetValue

      public float getWalkTargetValue(BlockPos pPos)
    • getWalkTargetValue

      public float getWalkTargetValue(BlockPos pPos, LevelReader pLevel)
    • checkSpawnRules

      public boolean checkSpawnRules(LevelAccessor pLevel, EntitySpawnReason pSpawnReason)
      Overrides:
      checkSpawnRules in class Mob
    • isPathFinding

      public boolean isPathFinding()
    • isPanicking

      public boolean isPanicking()
    • shouldStayCloseToLeashHolder

      protected boolean shouldStayCloseToLeashHolder()
    • closeRangeLeashBehaviour

      public void closeRangeLeashBehaviour(Entity pEntity)
    • whenLeashedTo

      public void whenLeashedTo(Entity pEntity)
    • followLeashSpeed

      protected double followLeashSpeed()