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 ChunkCache
cachedWorld
protected boolean
canEnterOpenDoors
protected boolean
canOpenDoors
protected boolean
canSwim
protected MobEntity
entity
protected int
entityBlockXSize
protected int
entityBlockYSize
protected int
entityBlockZSize
protected Int2ObjectMap<PathNode>
pathNodeCache
-
Constructor Summary
Constructors Constructor Description PathNodeMaker()
-
Method Summary
Modifier and Type Method Description boolean
canEnterOpenDoors()
boolean
canOpenDoors()
boolean
canSwim()
void
clear()
abstract PathNodeType
getDefaultNodeType(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 TargetPathNode
getNode(double x, double y, double z)
protected PathNode
getNode(int x, int y, int z)
abstract PathNodeType
getNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)
abstract PathNode
getStart()
abstract int
getSuccessors(PathNode[] successors, PathNode node)
void
init(ChunkCache cachedWorld, MobEntity entity)
protected PathNode
method_27137(BlockPos blockPos)
void
setCanEnterOpenDoors(boolean canEnterOpenDoors)
void
setCanOpenDoors(boolean canOpenDoors)
void
setCanSwim(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()
-