Class GeneralEntityWalkToProxy

java.lang.Object
com.minecolonies.core.entity.pathfinding.proxy.AbstractWalkToProxy
com.minecolonies.core.entity.pathfinding.proxy.GeneralEntityWalkToProxy
All Implemented Interfaces:
IWalkToProxy

public class GeneralEntityWalkToProxy extends AbstractWalkToProxy
General walkToProxy for all entities.
  • Constructor Details

    • GeneralEntityWalkToProxy

      public GeneralEntityWalkToProxy(net.minecraft.world.entity.Mob entity)
      Creates a walkToProxy for a certain worker.
      Parameters:
      entity - the entity.
  • Method Details

    • getWayPoints

      public Set<net.minecraft.core.BlockPos> getWayPoints()
      Description copied from interface: IWalkToProxy
      Get a list of waypoints depending on the entity.
      Returns:
      the set of waypoints.
    • careAboutY

      public boolean careAboutY()
      Description copied from interface: IWalkToProxy
      Check if for distance calculation the y level should be taken into account.
      Returns:
      true if so.
    • getSpecializedProxy

      @Nullable public @Nullable net.minecraft.core.BlockPos getSpecializedProxy(net.minecraft.core.BlockPos target, double distanceToPath)
      Description copied from interface: IWalkToProxy
      Try to get a specialized proxy to a certain target.
      Parameters:
      target - the target.
      distanceToPath - the distance to it.
      Returns:
      a special proxy point of existent, else null.