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 booleancanFloatprotected booleancanOpenDoorsprotected booleancanPassDoorsprotected intentityDepthprotected intentityHeightprotected intentityWidthprotected Regionlevelprotected MobEntitymobprotected 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 booleancanFloat()booleancanOpenDoors()booleancanPassDoors()voiddone()abstract PathNodeTypegetBlockPathType(IBlockReader p_186330_1_, int p_186330_2_, int p_186330_3_, int p_186330_4_)abstract PathNodeTypegetBlockPathType(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 FlaggedPathPointgetGoal(double p_224768_1_, double p_224768_3_, double p_224768_5_)abstract intgetNeighbors(PathPoint[] p_222859_1_, PathPoint p_222859_2_)protected PathPointgetNode(int p_176159_1_, int p_176159_2_, int p_176159_3_)protected PathPointgetNode(BlockPos p_237223_1_)abstract PathPointgetStart()voidprepare(Region p_225578_1_, MobEntity p_225578_2_)voidsetCanFloat(boolean p_186316_1_)voidsetCanOpenDoors(boolean p_186321_1_)voidsetCanPassDoors(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()
-
-