类 WalkNodeEvaluator
java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.WalkNodeEvaluator
- 直接已知子类:
AmphibiousNodeEvaluator
,FlyNodeEvaluator
-
字段概要
字段修饰符和类型字段说明private final it.unimi.dsi.fastutil.objects.Object2BooleanMap<AABB>
private static final double
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<BlockPathTypes>
static final double
从类继承的字段 net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, canWalkOverFences, entityDepth, entityHeight, entityWidth, level, mob, nodes
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private boolean
canReachWithoutCollision
(Node pNode) protected boolean
canStartAt
(BlockPos pPos) static BlockPathTypes
checkNeighbourBlocks
(BlockGetter pLevel, BlockPos.MutableBlockPos pCenterPos, BlockPathTypes pNodeType) private static boolean
doesBlockHavePartialCollision
(BlockPathTypes pBlockPathType) void
done()
protected BlockPathTypes
evaluateBlockPathType
(BlockGetter pLevel, BlockPos pPos, BlockPathTypes pPathTypes) protected Node
findAcceptedNode
(int pX, int pY, int pZ, int p_164729_, double p_164730_, Direction pDirection, BlockPathTypes pPathType) private Node
getBlockedNode
(int pX, int pY, int pZ) protected BlockPathTypes
getBlockPathType
(Mob pEntityliving, BlockPos pPos) getBlockPathType
(BlockGetter pLevel, int pX, int pY, int pZ) getBlockPathType
(BlockGetter pLevel, int pX, int pY, int pZ, Mob pMob) protected static BlockPathTypes
getBlockPathTypeRaw
(BlockGetter pLevel, BlockPos pPos) getBlockPathTypes
(BlockGetter pLevel, int pXOffset, int pYOffset, int pZOffset, EnumSet<BlockPathTypes> pOutput, BlockPathTypes p_265458_, BlockPos pPos) static BlockPathTypes
getBlockPathTypeStatic
(BlockGetter pLevel, BlockPos.MutableBlockPos pPos) protected BlockPathTypes
getCachedBlockType
(Mob pEntity, int pX, int pY, int pZ) protected double
getFloorLevel
(BlockPos pPos) static double
getFloorLevel
(BlockGetter pLevel, BlockPos pPos) getGoal
(double pX, double pY, double pZ) private double
int
getNeighbors
(Node[] pOutputArray, Node pNode) private Node
getNodeAndUpdateCostToMax
(int pX, int pY, int pZ, BlockPathTypes pType, float pCostMalus) getStart()
protected Node
getStartNode
(BlockPos pPos) private boolean
hasCollisions
(AABB pBoundingBox) protected boolean
static boolean
isBurningBlock
(BlockState pState) protected boolean
isDiagonalValid
(Node p_77630_, Node p_77631_, Node p_77632_, Node p_77633_) protected boolean
isNeighborValid
(Node pNeighbor, Node pNode) void
prepare
(PathNavigationRegion pLevel, Mob pMob) 从类继承的方法 net.minecraft.world.level.pathfinder.NodeEvaluator
canFloat, canOpenDoors, canPassDoors, canWalkOverFences, getNode, getNode, getTargetFromNode, setCanFloat, setCanOpenDoors, setCanPassDoors, setCanWalkOverFences
-
字段详细资料
-
构造器详细资料
-
WalkNodeEvaluator
public WalkNodeEvaluator()
-
-
方法详细资料
-
done
public void done()- 覆盖:
done
在类中NodeEvaluator
-
getStart
- 指定者:
getStart
在类中NodeEvaluator
-
getStartNode
-
canStartAt
-
getGoal
- 指定者:
getGoal
在类中NodeEvaluator
-
getNeighbors
- 指定者:
getNeighbors
在类中NodeEvaluator
-
isNeighborValid
-
isDiagonalValid
-
doesBlockHavePartialCollision
-
canReachWithoutCollision
-
getFloorLevel
-
getFloorLevel
-
isAmphibious
protected boolean isAmphibious() -
findAcceptedNode
@Nullable protected Node findAcceptedNode(int pX, int pY, int pZ, int p_164729_, double p_164730_, Direction pDirection, BlockPathTypes pPathType) -
getMobJumpHeight
private double getMobJumpHeight() -
getNodeAndUpdateCostToMax
private Node getNodeAndUpdateCostToMax(int pX, int pY, int pZ, BlockPathTypes pType, float pCostMalus) -
getBlockedNode
-
hasCollisions
-
getBlockPathType
- 指定者:
getBlockPathType
在类中NodeEvaluator
-
getBlockPathTypes
public BlockPathTypes getBlockPathTypes(BlockGetter pLevel, int pXOffset, int pYOffset, int pZOffset, EnumSet<BlockPathTypes> pOutput, BlockPathTypes p_265458_, BlockPos pPos) -
evaluateBlockPathType
protected BlockPathTypes evaluateBlockPathType(BlockGetter pLevel, BlockPos pPos, BlockPathTypes pPathTypes) -
getBlockPathType
-
getCachedBlockType
-
getBlockPathType
- 指定者:
getBlockPathType
在类中NodeEvaluator
-
getBlockPathTypeStatic
public static BlockPathTypes getBlockPathTypeStatic(BlockGetter pLevel, BlockPos.MutableBlockPos pPos) -
checkNeighbourBlocks
public static BlockPathTypes checkNeighbourBlocks(BlockGetter pLevel, BlockPos.MutableBlockPos pCenterPos, BlockPathTypes pNodeType) -
getBlockPathTypeRaw
-
isBurningBlock