Package net.minecraft.entity.ai.pathing
Class LandPathNodeMaker
java.lang.Object
net.minecraft.entity.ai.pathing.PathNodeMaker
net.minecraft.entity.ai.pathing.LandPathNodeMaker
- Direct Known Subclasses:
AmphibiousPathNodeMaker,BirdPathNodeMaker,CreakingEntity.CreakingLandPathNodeMaker
- Mappings:
Namespace Name named net/minecraft/entity/ai/pathing/LandPathNodeMakerintermediary net/minecraft/class_14official fjr
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Object2BooleanMap<Box> private static final doubleprivate final Long2ObjectMap<PathNodeType> private final PathNode[]static final doubleFields inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
canEnterOpenDoors, canOpenDoors, canSwim, canWalkOverFences, context, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanPathThrough(BlockPos pos) private booleancheckBoxCollision(Box box) voidclear()private PathNodegetBlockedNode(int x, int y, int z) getCollidingNodeTypes(PathContext context, int x, int y, int z) protected static PathNodeTypegetCommonNodeType(BlockView world, BlockPos pos) getDefaultNodeType(PathContext context, 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 doorsprotected doublestatic doublegetJumpOnTopNode(int x, int y, int z, int maxYStep, double lastFeetY, Direction direction, PathNodeType nodeType, BlockPos.Mutable mutablePos) static PathNodeTypegetLandNodeType(PathContext context, BlockPos.Mutable pos) static PathNodeTypegetLandNodeType(MobEntity entity, BlockPos pos) getNode(double x, double y, double z) protected PathNodeTypegetNodeType(int x, int y, int z) getNodeType(PathContext context, int x, int y, int z, MobEntity mob) Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doorsstatic PathNodeTypegetNodeTypeFromNeighbors(PathContext context, int x, int y, int z, PathNodeType fallback) private PathNodegetNodeWith(int x, int y, int z, PathNodeType type) private PathNodegetNodeWith(int x, int y, int z, PathNodeType type, float penalty) getNonWaterNodeBelow(int x, int y, int z, @Nullable PathNode node) private PathNodegetOpenNode(int x, int y, int z) getPathNode(int x, int y, int z, int maxYStep, double lastFeetY, Direction direction, PathNodeType nodeType) getStart()protected PathNodeprivate doubleintgetSuccessors(PathNode[] successors, PathNode node) voidinit(ChunkCache cachedWorld, MobEntity entity) protected booleanprivate booleanprivate static booleanisBlocked(PathNodeType nodeType) protected booleanisValidAdjacentSuccessor(@Nullable PathNode node, PathNode successor) protected booleanprotected booleanMethods inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
canEnterOpenDoors, canOpenDoors, canSwim, canWalkOverFences, createNode, getDefaultNodeType, getNode, getNode, isFireDamaging, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim, setCanWalkOverFences
-
Field Details
-
Y_OFFSET
public static final double Y_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector named Y_OFFSETLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;Y_OFFSET:Dintermediary field_31809Lnet/minecraft/class_14;field_31809:Dofficial lLfjr;l:D
-
MIN_STEP_HEIGHT
private static final double MIN_STEP_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_STEP_HEIGHTLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;MIN_STEP_HEIGHT:Dintermediary field_40928Lnet/minecraft/class_14;field_40928:Dofficial aLfjr;a:D
-
nodeTypes
- Mappings:
Namespace Name Mixin selector named nodeTypesLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;nodeTypes:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;intermediary field_49156Lnet/minecraft/class_14;field_49156:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;official mLfjr;m:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
collidedBoxes
- Mappings:
Namespace Name Mixin selector named collidedBoxesLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;collidedBoxes:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;intermediary field_25191Lnet/minecraft/class_14;field_25191:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;official nLfjr;n:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
-
successors
- Mappings:
Namespace Name Mixin selector named successorsLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;successors:[Lnet/minecraft/entity/ai/pathing/PathNode;intermediary field_49157Lnet/minecraft/class_14;field_49157:[Lnet/minecraft/class_9;official oLfjr;o:[Lfjh;
-
-
Constructor Details
-
LandPathNodeMaker
public LandPathNodeMaker()
-
-
Method Details
-
init
- Overrides:
initin classPathNodeMaker- Mappings:
Namespace Name Mixin selector named initLnet/minecraft/entity/ai/pathing/PathNodeMaker;init(Lnet/minecraft/world/chunk/ChunkCache;Lnet/minecraft/entity/mob/MobEntity;)Vintermediary method_12Lnet/minecraft/class_8;method_12(Lnet/minecraft/class_1950;Lnet/minecraft/class_1308;)Vofficial aLfji;a(Ldvb;Lchg;)V
-
clear
public void clear()- Overrides:
clearin classPathNodeMaker- Mappings:
Namespace Name Mixin selector named clearLnet/minecraft/entity/ai/pathing/PathNodeMaker;clear()Vintermediary method_19Lnet/minecraft/class_8;method_19()Vofficial bLfji;b()V
-
getStart
- Specified by:
getStartin classPathNodeMaker- Mappings:
Namespace Name Mixin selector named getStartLnet/minecraft/entity/ai/pathing/PathNodeMaker;getStart()Lnet/minecraft/entity/ai/pathing/PathNode;intermediary method_21Lnet/minecraft/class_8;method_21()Lnet/minecraft/class_9;official aLfji;a()Lfjh;
-
getStart
- Mappings:
Namespace Name Mixin selector named getStartLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getStart(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNode;intermediary method_43415Lnet/minecraft/class_14;method_43415(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9;official cLfjr;c(Liz;)Lfjh;
-
canPathThrough
- Mappings:
Namespace Name Mixin selector named canPathThroughLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;canPathThrough(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_47893Lnet/minecraft/class_14;method_47893(Lnet/minecraft/class_2338;)Zofficial aLfjr;a(Liz;)Z
-
getNode
- Specified by:
getNodein classPathNodeMaker- Mappings:
Namespace Name Mixin selector named getNodeLnet/minecraft/entity/ai/pathing/PathNodeMaker;getNode(DDD)Lnet/minecraft/entity/ai/pathing/TargetPathNode;intermediary method_16Lnet/minecraft/class_8;method_16(DDD)Lnet/minecraft/class_4459;official aLfji;a(DDD)Lfjq;
-
getSuccessors
- Specified by:
getSuccessorsin classPathNodeMaker- Mappings:
Namespace Name Mixin selector named getSuccessorsLnet/minecraft/entity/ai/pathing/PathNodeMaker;getSuccessors([Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)Iintermediary method_18Lnet/minecraft/class_8;method_18([Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Iofficial aLfji;a([Lfjh;Lfjh;)I
-
isValidAdjacentSuccessor
- Mappings:
Namespace Name Mixin selector named isValidAdjacentSuccessorLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isValidAdjacentSuccessor(Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)Zintermediary method_20536Lnet/minecraft/class_14;method_20536(Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Zofficial aLfjr;a(Lfjh;Lfjh;)Z
-
isValidDiagonalSuccessor
protected boolean isValidDiagonalSuccessor(PathNode xNode, @Nullable @Nullable PathNode zNode, @Nullable @Nullable PathNode xDiagNode) - Mappings:
Namespace Name Mixin selector named isValidDiagonalSuccessorLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isValidDiagonalSuccessor(Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)Zintermediary method_29579Lnet/minecraft/class_14;method_29579(Lnet/minecraft/class_9;Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Zofficial aLfjr;a(Lfjh;Lfjh;Lfjh;)Z
-
isValidDiagonalSuccessor
- Mappings:
Namespace Name Mixin selector named isValidDiagonalSuccessorLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isValidDiagonalSuccessor(Lnet/minecraft/entity/ai/pathing/PathNode;)Zintermediary method_57089Lnet/minecraft/class_14;method_57089(Lnet/minecraft/class_9;)Zofficial aLfjr;a(Lfjh;)Z
-
isBlocked
- Mappings:
Namespace Name Mixin selector named isBlockedLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isBlocked(Lnet/minecraft/entity/ai/pathing/PathNodeType;)Zintermediary method_43414Lnet/minecraft/class_14;method_43414(Lnet/minecraft/class_7;)Zofficial aLfjr;a(Lfjm;)Z
-
isBlocked
- Mappings:
Namespace Name Mixin selector named isBlockedLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isBlocked(Lnet/minecraft/entity/ai/pathing/PathNode;)Zintermediary method_29578Lnet/minecraft/class_14;method_29578(Lnet/minecraft/class_9;)Zofficial bLfjr;b(Lfjh;)Z
-
getFeetY
- Mappings:
Namespace Name Mixin selector named getFeetYLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getFeetY(Lnet/minecraft/util/math/BlockPos;)Dintermediary method_37003Lnet/minecraft/class_14;method_37003(Lnet/minecraft/class_2338;)Dofficial dLfjr;d(Liz;)D
-
getFeetY
- Mappings:
Namespace Name Mixin selector named getFeetYLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getFeetY(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Dintermediary method_60Lnet/minecraft/class_14;method_60(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Dofficial aLfjr;a(Ldtr;Liz;)D
-
isAmphibious
protected boolean isAmphibious()- Mappings:
Namespace Name Mixin selector named isAmphibiousLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isAmphibious()Zintermediary method_37004Lnet/minecraft/class_14;method_37004()Zofficial cLfjr;c()Z
-
getPathNode
@Nullable protected @Nullable PathNode getPathNode(int x, int y, int z, int maxYStep, double lastFeetY, Direction direction, PathNodeType nodeType) - Mappings:
Namespace Name Mixin selector named getPathNodeLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getPathNode(IIIIDLnet/minecraft/util/math/Direction;Lnet/minecraft/entity/ai/pathing/PathNodeType;)Lnet/minecraft/entity/ai/pathing/PathNode;intermediary method_62Lnet/minecraft/class_14;method_62(IIIIDLnet/minecraft/class_2350;Lnet/minecraft/class_7;)Lnet/minecraft/class_9;official aLfjr;a(IIIIDLjf;Lfjm;)Lfjh;
-
getStepHeight
private double getStepHeight()- Mappings:
Namespace Name Mixin selector named getStepHeightLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getStepHeight()Dintermediary method_46739Lnet/minecraft/class_14;method_46739()Dofficial hLfjr;h()D
-
getNodeWith
- Mappings:
Namespace Name Mixin selector named getNodeWithLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeWith(IIILnet/minecraft/entity/ai/pathing/PathNodeType;F)Lnet/minecraft/entity/ai/pathing/PathNode;intermediary method_43569Lnet/minecraft/class_14;method_43569(IIILnet/minecraft/class_7;F)Lnet/minecraft/class_9;official aLfjr;a(IIILfjm;F)Lfjh;
-
getBlockedNode
- Mappings:
Namespace Name Mixin selector named getBlockedNodeLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getBlockedNode(III)Lnet/minecraft/entity/ai/pathing/PathNode;intermediary method_43570Lnet/minecraft/class_14;method_43570(III)Lnet/minecraft/class_9;official aLfjr;a(III)Lfjh;
-
getNodeWith
- Mappings:
Namespace Name Mixin selector named getNodeWithLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeWith(IIILnet/minecraft/entity/ai/pathing/PathNodeType;)Lnet/minecraft/entity/ai/pathing/PathNode;intermediary method_57088Lnet/minecraft/class_14;method_57088(IIILnet/minecraft/class_7;)Lnet/minecraft/class_9;official aLfjr;a(IIILfjm;)Lfjh;
-
getJumpOnTopNode
@Nullable private @Nullable PathNode getJumpOnTopNode(int x, int y, int z, int maxYStep, double lastFeetY, Direction direction, PathNodeType nodeType, BlockPos.Mutable mutablePos) - Mappings:
Namespace Name Mixin selector named getJumpOnTopNodeLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getJumpOnTopNode(IIIIDLnet/minecraft/util/math/Direction;Lnet/minecraft/entity/ai/pathing/PathNodeType;Lnet/minecraft/util/math/BlockPos$Mutable;)Lnet/minecraft/entity/ai/pathing/PathNode;intermediary method_57085Lnet/minecraft/class_14;method_57085(IIIIDLnet/minecraft/class_2350;Lnet/minecraft/class_7;Lnet/minecraft/class_2338$class_2339;)Lnet/minecraft/class_9;official aLfjr;a(IIIIDLjf;Lfjm;Liz$a;)Lfjh;
-
getNonWaterNodeBelow
@Nullable private @Nullable PathNode getNonWaterNodeBelow(int x, int y, int z, @Nullable @Nullable PathNode node) - Mappings:
Namespace Name Mixin selector named getNonWaterNodeBelowLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNonWaterNodeBelow(IIILnet/minecraft/entity/ai/pathing/PathNode;)Lnet/minecraft/entity/ai/pathing/PathNode;intermediary method_57087Lnet/minecraft/class_14;method_57087(IIILnet/minecraft/class_9;)Lnet/minecraft/class_9;official aLfjr;a(IIILfjh;)Lfjh;
-
getOpenNode
- Mappings:
Namespace Name Mixin selector named getOpenNodeLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getOpenNode(III)Lnet/minecraft/entity/ai/pathing/PathNode;intermediary method_57091Lnet/minecraft/class_14;method_57091(III)Lnet/minecraft/class_9;official dLfjr;d(III)Lfjh;
-
checkBoxCollision
- Mappings:
Namespace Name Mixin selector named checkBoxCollisionLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;checkBoxCollision(Lnet/minecraft/util/math/Box;)Zintermediary method_29304Lnet/minecraft/class_14;method_29304(Lnet/minecraft/class_238;)Zofficial aLfjr;a(Lfqy;)Z
-
getNodeType
- Mappings:
Namespace Name Mixin selector named getNodeTypeLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeType(III)Lnet/minecraft/entity/ai/pathing/PathNodeType;intermediary method_31932Lnet/minecraft/class_14;method_31932(III)Lnet/minecraft/class_7;official bLfjr;b(III)Lfjm;
-
getNodeType
Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doors- Specified by:
getNodeTypein classPathNodeMaker- Mappings:
Namespace Name Mixin selector named getNodeTypeLnet/minecraft/entity/ai/pathing/PathNodeMaker;getNodeType(Lnet/minecraft/entity/ai/pathing/PathContext;IIILnet/minecraft/entity/mob/MobEntity;)Lnet/minecraft/entity/ai/pathing/PathNodeType;intermediary method_25Lnet/minecraft/class_8;method_25(Lnet/minecraft/class_9316;IIILnet/minecraft/class_1308;)Lnet/minecraft/class_7;official aLfji;a(Lfjo;IIILchg;)Lfjm;
-
getCollidingNodeTypes
- Mappings:
Namespace Name Mixin selector named getCollidingNodeTypesLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getCollidingNodeTypes(Lnet/minecraft/entity/ai/pathing/PathContext;III)Ljava/util/Set;intermediary method_57090Lnet/minecraft/class_14;method_57090(Lnet/minecraft/class_9316;III)Ljava/util/Set;official bLfjr;b(Lfjo;III)Ljava/util/Set;
-
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- Specified by:
getDefaultNodeTypein classPathNodeMaker- Mappings:
Namespace Name Mixin selector named getDefaultNodeTypeLnet/minecraft/entity/ai/pathing/PathNodeMaker;getDefaultNodeType(Lnet/minecraft/entity/ai/pathing/PathContext;III)Lnet/minecraft/entity/ai/pathing/PathNodeType;intermediary method_17Lnet/minecraft/class_8;method_17(Lnet/minecraft/class_9316;III)Lnet/minecraft/class_7;official aLfji;a(Lfjo;III)Lfjm;
-
getLandNodeType
- Mappings:
Namespace Name Mixin selector named getLandNodeTypeLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getLandNodeType(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNodeType;intermediary method_57625Lnet/minecraft/class_14;method_57625(Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Lnet/minecraft/class_7;official bLfjr;b(Lchg;Liz;)Lfjm;
-
getLandNodeType
- Mappings:
Namespace Name Mixin selector named getLandNodeTypeLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getLandNodeType(Lnet/minecraft/entity/ai/pathing/PathContext;Lnet/minecraft/util/math/BlockPos$Mutable;)Lnet/minecraft/entity/ai/pathing/PathNodeType;intermediary method_23476Lnet/minecraft/class_14;method_23476(Lnet/minecraft/class_9316;Lnet/minecraft/class_2338$class_2339;)Lnet/minecraft/class_7;official aLfjr;a(Lfjo;Liz$a;)Lfjm;
-
getNodeTypeFromNeighbors
public static PathNodeType getNodeTypeFromNeighbors(PathContext context, int x, int y, int z, PathNodeType fallback) - Mappings:
Namespace Name Mixin selector named getNodeTypeFromNeighborsLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeTypeFromNeighbors(Lnet/minecraft/entity/ai/pathing/PathContext;IIILnet/minecraft/entity/ai/pathing/PathNodeType;)Lnet/minecraft/entity/ai/pathing/PathNodeType;intermediary method_59Lnet/minecraft/class_14;method_59(Lnet/minecraft/class_9316;IIILnet/minecraft/class_7;)Lnet/minecraft/class_7;official aLfjr;a(Lfjo;IIILfjm;)Lfjm;
-
getCommonNodeType
- Mappings:
Namespace Name Mixin selector named getCommonNodeTypeLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getCommonNodeType(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNodeType;intermediary method_58Lnet/minecraft/class_14;method_58(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_7;official bLfjr;b(Ldtr;Liz;)Lfjm;
-