Class PathAwareEntity

All Implemented Interfaces:
CommandOutput, Nameable
Direct Known Subclasses:
GolemEntity, HostileEntity, PassiveEntity, WaterCreatureEntity

public abstract class PathAwareEntity
extends MobEntity
  • Constructor Details

  • Method Details

    • getPathfindingFavor

      public float getPathfindingFavor​(BlockPos pos)
    • getPathfindingFavor

      public float getPathfindingFavor​(BlockPos pos, WorldView world)
    • canSpawn

      public boolean canSpawn​(WorldAccess world, SpawnReason spawnReason)
      Overrides:
      canSpawn in class MobEntity
    • isNavigating

      public boolean isNavigating()
    • updateLeash

      protected void updateLeash()
      Overrides:
      updateLeash in class MobEntity
    • getRunFromLeashSpeed

      protected double getRunFromLeashSpeed()
    • updateForLeashLength

      protected void updateForLeashLength​(float leashLength)