Class PathfinderMob

All Implemented Interfaces:
CommandSource, Attackable, Targeting, EntityAccess, Nameable, ScoreHolder, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, IForgeLivingEntity, 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()
    • tickLeash

      protected void tickLeash()
      Overrides:
      tickLeash in class Mob
    • shouldStayCloseToLeashHolder

      protected boolean shouldStayCloseToLeashHolder()
    • followLeashSpeed

      protected double followLeashSpeed()
    • onLeashDistance

      protected void onLeashDistance(float p_21694_)