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 pos)
    • getWalkTargetValue

      public float getWalkTargetValue(BlockPos pos, LevelReader level)
    • checkSpawnRules

      public boolean checkSpawnRules(LevelAccessor level, MobSpawnType spawnReason)
      Overrides:
      checkSpawnRules in class Mob
    • isPathFinding

      public boolean isPathFinding()
    • isPanicking

      public boolean isPanicking()
    • shouldStayCloseToLeashHolder

      protected boolean shouldStayCloseToLeashHolder()
    • closeRangeLeashBehaviour

      public void closeRangeLeashBehaviour(Entity entity)
    • handleLeashAtDistance

      public boolean handleLeashAtDistance(Entity leashHolder, float distance)
    • followLeashSpeed

      protected double followLeashSpeed()