Package net.minecraft.entity.ai.pathing
Class PathNodeMaker
java.lang.Object
net.minecraft.entity.ai.pathing.PathNodeMaker
- Direct Known Subclasses:
LandPathNodeMaker,WaterPathNodeMaker
public abstract class PathNodeMaker extends Object
-
Field Summary
Fields Modifier and Type Field Description protected ChunkCachecachedWorldprotected booleancanEnterOpenDoorsprotected booleancanOpenDoorsprotected booleancanSwimprotected MobEntityentityprotected intentityBlockXSizeprotected intentityBlockYSizeprotected intentityBlockZSizeprotected Int2ObjectMap<PathNode>pathNodeCache -
Constructor Summary
Constructors Constructor Description PathNodeMaker() -
Method Summary
Modifier and Type Method Description booleancanEnterOpenDoors()booleancanOpenDoors()booleancanSwim()voidclear()abstract PathNodeTypegetDefaultNodeType(BlockView world, int x, int y, int z)Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doorsabstract TargetPathNodegetNode(double x, double y, double z)protected PathNodegetNode(int x, int y, int z)abstract PathNodeTypegetNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)abstract PathNodegetStart()abstract intgetSuccessors(PathNode[] successors, PathNode node)voidinit(ChunkCache cachedWorld, MobEntity entity)protected PathNodemethod_27137(BlockPos blockPos)voidsetCanEnterOpenDoors(boolean canEnterOpenDoors)voidsetCanOpenDoors(boolean canOpenDoors)voidsetCanSwim(boolean canSwim)
-
Field Details
-
cachedWorld
-
entity
-
pathNodeCache
-
entityBlockXSize
protected int entityBlockXSize -
entityBlockYSize
protected int entityBlockYSize -
entityBlockZSize
protected int entityBlockZSize -
canEnterOpenDoors
protected boolean canEnterOpenDoors -
canOpenDoors
protected boolean canOpenDoors -
canSwim
protected boolean canSwim
-
-
Constructor Details
-
PathNodeMaker
public PathNodeMaker()
-
-
Method Details
-
init
-
clear
public void clear() -
method_27137
-
getNode
-
getStart
-
getNode
-
getSuccessors
-
getNodeType
public abstract PathNodeType getNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors) -
getDefaultNodeType
Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doors -
setCanEnterOpenDoors
public void setCanEnterOpenDoors(boolean canEnterOpenDoors) -
setCanOpenDoors
public void setCanOpenDoors(boolean canOpenDoors) -
setCanSwim
public void setCanSwim(boolean canSwim) -
canEnterOpenDoors
public boolean canEnterOpenDoors() -
canOpenDoors
public boolean canOpenDoors() -
canSwim
public boolean canSwim()
-