Class GeneralEntityWalkToProxy
java.lang.Object
com.minecolonies.core.entity.pathfinding.proxy.AbstractWalkToProxy
com.minecolonies.core.entity.pathfinding.proxy.GeneralEntityWalkToProxy
- All Implemented Interfaces:
IWalkToProxy
General walkToProxy for all entities.
-
Constructor Summary
ConstructorsConstructorDescriptionGeneralEntityWalkToProxy(net.minecraft.world.entity.Mob entity) Creates a walkToProxy for a certain worker. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if for distance calculation the y level should be taken into account.@Nullable net.minecraft.core.BlockPosgetSpecializedProxy(net.minecraft.core.BlockPos target, double distanceToPath) Try to get a specialized proxy to a certain target.Set<net.minecraft.core.BlockPos>Get a list of waypoints depending on the entity.Methods inherited from class com.minecolonies.core.entity.pathfinding.proxy.AbstractWalkToProxy
addToProxyList, getCurrentProxy, getEntity, getProxy, getProxyList, isLivingAtSiteWithMove, reset, walkToBlock, walkToBlock
-
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
Description copied from interface:IWalkToProxyGet a list of waypoints depending on the entity.- Returns:
- the set of waypoints.
-
careAboutY
public boolean careAboutY()Description copied from interface:IWalkToProxyCheck 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:IWalkToProxyTry 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.
-