Class PathfinderMob

All Implemented Interfaces:
CommandSource, SyncedDataHolder, Attackable, EquipmentUser, Leashable, Targeting, EntityAccess, Nameable, ScoreHolder, IAttachmentHolder, IEntityExtension, ILivingEntityExtension, INBTSerializable<CompoundTag>
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 p_21693_)
    • getWalkTargetValue

      public float getWalkTargetValue(BlockPos p_21688_, LevelReader p_21689_)
    • checkSpawnRules

      public boolean checkSpawnRules(LevelAccessor p_21686_, MobSpawnType p_21687_)
      Overrides:
      checkSpawnRules in class Mob
    • isPathFinding

      public boolean isPathFinding()
    • isPanicking

      public boolean isPanicking()
    • shouldStayCloseToLeashHolder

      protected boolean shouldStayCloseToLeashHolder()
    • closeRangeLeashBehaviour

      public void closeRangeLeashBehaviour(Entity p_352153_)
    • handleLeashAtDistance

      public boolean handleLeashAtDistance(Entity p_352071_, float p_352237_)
    • followLeashSpeed

      protected double followLeashSpeed()