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
- Mappings:
Namespace Name named net/minecraft/entity/ai/pathing/LandPathNodeMaker
intermediary net/minecraft/class_14
official epu
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Object2BooleanMap
<Box> private static final double
private final Long2ObjectMap
<PathNodeType> private final PathNode[]
static final double
Fields inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
canEnterOpenDoors, canOpenDoors, canSwim, canWalkOverFences, context, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canPathThrough
(BlockPos pos) private boolean
checkBoxCollision
(Box box) void
clear()
private PathNode
getBlockedNode
(int x, int y, int z) getCollidingNodeTypes
(PathContext context, int x, int y, int z) protected static PathNodeType
getCommonNodeType
(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 double
static double
getJumpOnTopNode
(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType nodeType, BlockPos.Mutable mutablePos) static PathNodeType
getLandNodeType
(PathContext context, BlockPos.Mutable pos) static PathNodeType
getLandNodeType
(MobEntity entity, BlockPos pos) getNode
(double x, double y, double z) protected PathNodeType
getNodeType
(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 PathNodeType
getNodeTypeFromNeighbors
(PathContext context, int x, int y, int z, PathNodeType fallback) private PathNode
getNodeWith
(int x, int y, int z, PathNodeType type) private PathNode
getNodeWith
(int x, int y, int z, PathNodeType type, float penalty) getNonWaterNodeBelow
(int x, int y, int z, @Nullable PathNode node) private PathNode
getOpenNode
(int x, int y, int z) getPathNode
(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType nodeType) getStart()
protected PathNode
private double
int
getSuccessors
(PathNode[] successors, PathNode node) void
init
(ChunkCache cachedWorld, MobEntity entity) protected boolean
private boolean
private static boolean
isBlocked
(PathNodeType nodeType) protected boolean
isValidAdjacentSuccessor
(@Nullable PathNode node, PathNode successor) protected boolean
protected boolean
Methods 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_OFFSET
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;Y_OFFSET:D
intermediary field_31809
Lnet/minecraft/class_14;field_31809:D
official k
Lepu;k:D
-
MIN_STEP_HEIGHT
private static final double MIN_STEP_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_STEP_HEIGHT
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;MIN_STEP_HEIGHT:D
intermediary field_40928
Lnet/minecraft/class_14;field_40928:D
official l
Lepu;l:D
-
nodeTypes
- Mappings:
Namespace Name Mixin selector named nodeTypes
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;nodeTypes:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
intermediary field_49156
Lnet/minecraft/class_14;field_49156:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
official m
Lepu;m:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
collidedBoxes
- Mappings:
Namespace Name Mixin selector named collidedBoxes
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;collidedBoxes:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
intermediary field_25191
Lnet/minecraft/class_14;field_25191:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
official n
Lepu;n:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
-
successors
- Mappings:
Namespace Name Mixin selector named successors
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;successors:[Lnet/minecraft/entity/ai/pathing/PathNode;
intermediary field_49157
Lnet/minecraft/class_14;field_49157:[Lnet/minecraft/class_9;
official o
Lepu;o:[Lepk;
-
-
Constructor Details
-
LandPathNodeMaker
public LandPathNodeMaker()
-
-
Method Details
-
init
- Overrides:
init
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector named init
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;init(Lnet/minecraft/world/chunk/ChunkCache;Lnet/minecraft/entity/mob/MobEntity;)V
intermediary method_12
Lnet/minecraft/class_8;method_12(Lnet/minecraft/class_1950;Lnet/minecraft/class_1308;)V
official a
Lepl;a(Lddh;Lbtn;)V
-
clear
public void clear()- Overrides:
clear
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector named clear
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;clear()V
intermediary method_19
Lnet/minecraft/class_8;method_19()V
official b
Lepl;b()V
-
getStart
- Specified by:
getStart
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector named getStart
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;getStart()Lnet/minecraft/entity/ai/pathing/PathNode;
intermediary method_21
Lnet/minecraft/class_8;method_21()Lnet/minecraft/class_9;
official a
Lepl;a()Lepk;
-
getStart
- Mappings:
Namespace Name Mixin selector named getStart
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getStart(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNode;
intermediary method_43415
Lnet/minecraft/class_14;method_43415(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9;
official c
Lepu;c(Ljd;)Lepk;
-
canPathThrough
- Mappings:
Namespace Name Mixin selector named canPathThrough
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;canPathThrough(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_47893
Lnet/minecraft/class_14;method_47893(Lnet/minecraft/class_2338;)Z
official a
Lepu;a(Ljd;)Z
-
getNode
- Specified by:
getNode
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector named getNode
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;getNode(DDD)Lnet/minecraft/entity/ai/pathing/TargetPathNode;
intermediary method_16
Lnet/minecraft/class_8;method_16(DDD)Lnet/minecraft/class_4459;
official a
Lepl;a(DDD)Lept;
-
getSuccessors
- Specified by:
getSuccessors
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector named getSuccessors
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;getSuccessors([Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)I
intermediary method_18
Lnet/minecraft/class_8;method_18([Lnet/minecraft/class_9;Lnet/minecraft/class_9;)I
official a
Lepl;a([Lepk;Lepk;)I
-
isValidAdjacentSuccessor
- Mappings:
Namespace Name Mixin selector named isValidAdjacentSuccessor
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isValidAdjacentSuccessor(Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)Z
intermediary method_20536
Lnet/minecraft/class_14;method_20536(Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Z
official a
Lepu;a(Lepk;Lepk;)Z
-
isValidDiagonalSuccessor
protected boolean isValidDiagonalSuccessor(PathNode xNode, @Nullable @Nullable PathNode zNode, @Nullable @Nullable PathNode xDiagNode) - Mappings:
Namespace Name Mixin selector named isValidDiagonalSuccessor
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isValidDiagonalSuccessor(Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)Z
intermediary method_29579
Lnet/minecraft/class_14;method_29579(Lnet/minecraft/class_9;Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Z
official a
Lepu;a(Lepk;Lepk;Lepk;)Z
-
isValidDiagonalSuccessor
- Mappings:
Namespace Name Mixin selector named isValidDiagonalSuccessor
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isValidDiagonalSuccessor(Lnet/minecraft/entity/ai/pathing/PathNode;)Z
intermediary method_57089
Lnet/minecraft/class_14;method_57089(Lnet/minecraft/class_9;)Z
official a
Lepu;a(Lepk;)Z
-
isBlocked
- Mappings:
Namespace Name Mixin selector named isBlocked
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isBlocked(Lnet/minecraft/entity/ai/pathing/PathNodeType;)Z
intermediary method_43414
Lnet/minecraft/class_14;method_43414(Lnet/minecraft/class_7;)Z
official a
Lepu;a(Lepp;)Z
-
isBlocked
- Mappings:
Namespace Name Mixin selector named isBlocked
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isBlocked(Lnet/minecraft/entity/ai/pathing/PathNode;)Z
intermediary method_29578
Lnet/minecraft/class_14;method_29578(Lnet/minecraft/class_9;)Z
official b
Lepu;b(Lepk;)Z
-
getFeetY
- Mappings:
Namespace Name Mixin selector named getFeetY
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getFeetY(Lnet/minecraft/util/math/BlockPos;)D
intermediary method_37003
Lnet/minecraft/class_14;method_37003(Lnet/minecraft/class_2338;)D
official d
Lepu;d(Ljd;)D
-
getFeetY
- Mappings:
Namespace Name Mixin selector named getFeetY
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getFeetY(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)D
intermediary method_60
Lnet/minecraft/class_14;method_60(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)D
official a
Lepu;a(Ldca;Ljd;)D
-
isAmphibious
protected boolean isAmphibious()- Mappings:
Namespace Name Mixin selector named isAmphibious
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isAmphibious()Z
intermediary method_37004
Lnet/minecraft/class_14;method_37004()Z
official c
Lepu;c()Z
-
getPathNode
@Nullable protected @Nullable PathNode getPathNode(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType nodeType) - Mappings:
Namespace Name Mixin selector named getPathNode
Lnet/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_62
Lnet/minecraft/class_14;method_62(IIIIDLnet/minecraft/class_2350;Lnet/minecraft/class_7;)Lnet/minecraft/class_9;
official a
Lepu;a(IIIIDLji;Lepp;)Lepk;
-
getStepHeight
private double getStepHeight()- Mappings:
Namespace Name Mixin selector named getStepHeight
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getStepHeight()D
intermediary method_46739
Lnet/minecraft/class_14;method_46739()D
official h
Lepu;h()D
-
getNodeWith
- Mappings:
Namespace Name Mixin selector named getNodeWith
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeWith(IIILnet/minecraft/entity/ai/pathing/PathNodeType;F)Lnet/minecraft/entity/ai/pathing/PathNode;
intermediary method_43569
Lnet/minecraft/class_14;method_43569(IIILnet/minecraft/class_7;F)Lnet/minecraft/class_9;
official a
Lepu;a(IIILepp;F)Lepk;
-
getBlockedNode
- Mappings:
Namespace Name Mixin selector named getBlockedNode
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getBlockedNode(III)Lnet/minecraft/entity/ai/pathing/PathNode;
intermediary method_43570
Lnet/minecraft/class_14;method_43570(III)Lnet/minecraft/class_9;
official a
Lepu;a(III)Lepk;
-
getNodeWith
- Mappings:
Namespace Name Mixin selector named getNodeWith
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeWith(IIILnet/minecraft/entity/ai/pathing/PathNodeType;)Lnet/minecraft/entity/ai/pathing/PathNode;
intermediary method_57088
Lnet/minecraft/class_14;method_57088(IIILnet/minecraft/class_7;)Lnet/minecraft/class_9;
official a
Lepu;a(IIILepp;)Lepk;
-
getJumpOnTopNode
@Nullable private @Nullable PathNode getJumpOnTopNode(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType nodeType, BlockPos.Mutable mutablePos) - Mappings:
Namespace Name Mixin selector named getJumpOnTopNode
Lnet/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_57085
Lnet/minecraft/class_14;method_57085(IIIIDLnet/minecraft/class_2350;Lnet/minecraft/class_7;Lnet/minecraft/class_2338$class_2339;)Lnet/minecraft/class_9;
official a
Lepu;a(IIIIDLji;Lepp;Ljd$a;)Lepk;
-
getNonWaterNodeBelow
@Nullable private @Nullable PathNode getNonWaterNodeBelow(int x, int y, int z, @Nullable @Nullable PathNode node) - Mappings:
Namespace Name Mixin selector named getNonWaterNodeBelow
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNonWaterNodeBelow(IIILnet/minecraft/entity/ai/pathing/PathNode;)Lnet/minecraft/entity/ai/pathing/PathNode;
intermediary method_57087
Lnet/minecraft/class_14;method_57087(IIILnet/minecraft/class_9;)Lnet/minecraft/class_9;
official a
Lepu;a(IIILepk;)Lepk;
-
getOpenNode
- Mappings:
Namespace Name Mixin selector named getOpenNode
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getOpenNode(III)Lnet/minecraft/entity/ai/pathing/PathNode;
intermediary method_57091
Lnet/minecraft/class_14;method_57091(III)Lnet/minecraft/class_9;
official d
Lepu;d(III)Lepk;
-
checkBoxCollision
- Mappings:
Namespace Name Mixin selector named checkBoxCollision
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;checkBoxCollision(Lnet/minecraft/util/math/Box;)Z
intermediary method_29304
Lnet/minecraft/class_14;method_29304(Lnet/minecraft/class_238;)Z
official a
Lepu;a(Lewr;)Z
-
getNodeType
- Mappings:
Namespace Name Mixin selector named getNodeType
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeType(III)Lnet/minecraft/entity/ai/pathing/PathNodeType;
intermediary method_31932
Lnet/minecraft/class_14;method_31932(III)Lnet/minecraft/class_7;
official b
Lepu;b(III)Lepp;
-
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:
getNodeType
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector named getNodeType
Lnet/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_25
Lnet/minecraft/class_8;method_25(Lnet/minecraft/class_9316;IIILnet/minecraft/class_1308;)Lnet/minecraft/class_7;
official a
Lepl;a(Lepr;IIILbtn;)Lepp;
-
getCollidingNodeTypes
- Mappings:
Namespace Name Mixin selector named getCollidingNodeTypes
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getCollidingNodeTypes(Lnet/minecraft/entity/ai/pathing/PathContext;III)Ljava/util/Set;
intermediary method_57090
Lnet/minecraft/class_14;method_57090(Lnet/minecraft/class_9316;III)Ljava/util/Set;
official b
Lepu;b(Lepr;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:
getDefaultNodeType
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector named getDefaultNodeType
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;getDefaultNodeType(Lnet/minecraft/entity/ai/pathing/PathContext;III)Lnet/minecraft/entity/ai/pathing/PathNodeType;
intermediary method_17
Lnet/minecraft/class_8;method_17(Lnet/minecraft/class_9316;III)Lnet/minecraft/class_7;
official a
Lepl;a(Lepr;III)Lepp;
-
getLandNodeType
- Mappings:
Namespace Name Mixin selector named getLandNodeType
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getLandNodeType(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNodeType;
intermediary method_57625
Lnet/minecraft/class_14;method_57625(Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Lnet/minecraft/class_7;
official b
Lepu;b(Lbtn;Ljd;)Lepp;
-
getLandNodeType
- Mappings:
Namespace Name Mixin selector named getLandNodeType
Lnet/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_23476
Lnet/minecraft/class_14;method_23476(Lnet/minecraft/class_9316;Lnet/minecraft/class_2338$class_2339;)Lnet/minecraft/class_7;
official a
Lepu;a(Lepr;Ljd$a;)Lepp;
-
getNodeTypeFromNeighbors
public static PathNodeType getNodeTypeFromNeighbors(PathContext context, int x, int y, int z, PathNodeType fallback) - Mappings:
Namespace Name Mixin selector named getNodeTypeFromNeighbors
Lnet/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_59
Lnet/minecraft/class_14;method_59(Lnet/minecraft/class_9316;IIILnet/minecraft/class_7;)Lnet/minecraft/class_7;
official a
Lepu;a(Lepr;IIILepp;)Lepp;
-
getCommonNodeType
- Mappings:
Namespace Name Mixin selector named getCommonNodeType
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getCommonNodeType(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNodeType;
intermediary method_58
Lnet/minecraft/class_14;method_58(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_7;
official b
Lepu;b(Ldca;Ljd;)Lepp;
-