Package net.minecraft.pathfinding
Class NodeProcessor
- java.lang.Object
-
- net.minecraft.pathfinding.NodeProcessor
-
- Direct Known Subclasses:
SwimNodeProcessor
,WalkNodeProcessor
public abstract class NodeProcessor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
canFloat
protected boolean
canOpenDoors
protected boolean
canPassDoors
protected int
entityDepth
protected int
entityHeight
protected int
entityWidth
protected Region
level
protected MobEntity
mob
protected it.unimi.dsi.fastutil.ints.Int2ObjectMap<PathPoint>
nodes
-
Constructor Summary
Constructors Constructor Description NodeProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canFloat()
boolean
canOpenDoors()
boolean
canPassDoors()
void
done()
abstract PathNodeType
getBlockPathType(IBlockReader p_186330_1_, int p_186330_2_, int p_186330_3_, int p_186330_4_)
abstract PathNodeType
getBlockPathType(IBlockReader p_186319_1_, int p_186319_2_, int p_186319_3_, int p_186319_4_, MobEntity p_186319_5_, int p_186319_6_, int p_186319_7_, int p_186319_8_, boolean p_186319_9_, boolean p_186319_10_)
abstract FlaggedPathPoint
getGoal(double p_224768_1_, double p_224768_3_, double p_224768_5_)
abstract int
getNeighbors(PathPoint[] p_222859_1_, PathPoint p_222859_2_)
protected PathPoint
getNode(int p_176159_1_, int p_176159_2_, int p_176159_3_)
protected PathPoint
getNode(BlockPos p_237223_1_)
abstract PathPoint
getStart()
void
prepare(Region p_225578_1_, MobEntity p_225578_2_)
void
setCanFloat(boolean p_186316_1_)
void
setCanOpenDoors(boolean p_186321_1_)
void
setCanPassDoors(boolean p_186317_1_)
-
-
-
Field Detail
-
level
protected Region level
-
mob
protected MobEntity mob
-
nodes
protected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<PathPoint> nodes
-
entityWidth
protected int entityWidth
-
entityHeight
protected int entityHeight
-
entityDepth
protected int entityDepth
-
canPassDoors
protected boolean canPassDoors
-
canOpenDoors
protected boolean canOpenDoors
-
canFloat
protected boolean canFloat
-
-
Method Detail
-
done
public void done()
-
getNode
protected PathPoint getNode(int p_176159_1_, int p_176159_2_, int p_176159_3_)
-
getStart
public abstract PathPoint getStart()
-
getGoal
public abstract FlaggedPathPoint getGoal(double p_224768_1_, double p_224768_3_, double p_224768_5_)
-
getBlockPathType
public abstract PathNodeType getBlockPathType(IBlockReader p_186319_1_, int p_186319_2_, int p_186319_3_, int p_186319_4_, MobEntity p_186319_5_, int p_186319_6_, int p_186319_7_, int p_186319_8_, boolean p_186319_9_, boolean p_186319_10_)
-
getBlockPathType
public abstract PathNodeType getBlockPathType(IBlockReader p_186330_1_, int p_186330_2_, int p_186330_3_, int p_186330_4_)
-
setCanPassDoors
public void setCanPassDoors(boolean p_186317_1_)
-
setCanOpenDoors
public void setCanOpenDoors(boolean p_186321_1_)
-
setCanFloat
public void setCanFloat(boolean p_186316_1_)
-
canPassDoors
public boolean canPassDoors()
-
canOpenDoors
public boolean canOpenDoors()
-
canFloat
public boolean canFloat()
-
-