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 official dxe
intermediary net/minecraft/class_14
named net/minecraft/entity/ai/pathing/LandPathNodeMaker
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Object2BooleanMap<Box>
private static final double
private final Long2ObjectMap<PathNodeType>
protected float
static final double
Fields inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, canWalkOverFences, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected PathNodeType
adjustNodeType
(BlockView world, BlockPos pos, PathNodeType type) protected boolean
canPathThrough
(BlockPos pos) private boolean
checkBoxCollision
(Box box) void
clear()
findNearbyNodeTypes
(BlockView world, int x, int y, int z, EnumSet<PathNodeType> nearbyTypes, PathNodeType type, BlockPos pos) Adds the node types in the box with the given size to the input EnumSet.private PathNode
getBlockedNode
(int x, int y, int z) protected static PathNodeType
getCommonNodeType
(BlockView world, BlockPos pos) getDefaultNodeType
(BlockView world, 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
static PathNodeType
getLandNodeType
(BlockView world, BlockPos.Mutable pos) getNode
(double x, double y, double z) protected PathNodeType
getNodeType
(MobEntity entity, int x, int y, int z) protected PathNodeType
getNodeType
(MobEntity entity, BlockPos pos) getNodeType
(BlockView world, 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
(BlockView world, BlockPos.Mutable pos, PathNodeType nodeType) private PathNode
getNodeWith
(int x, int y, int z, PathNodeType type, float penalty) 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) static boolean
inflictsFireDamage
(BlockState state) void
init
(ChunkCache cachedWorld, MobEntity entity) protected boolean
private boolean
private static boolean
isBlocked
(PathNodeType nodeType) protected boolean
isValidAdjacentSuccessor
(@Nullable PathNode node, PathNode successor1) protected boolean
isValidDiagonalSuccessor
(PathNode xNode, @Nullable PathNode zNode, @Nullable PathNode xDiagNode, @Nullable PathNode zDiagNode) Methods inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
asTargetPathNode, canEnterOpenDoors, canOpenDoors, canSwim, canWalkOverFences, getNode, getNode, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim, setCanWalkOverFences
-
Field Details
-
Y_OFFSET
public static final double Y_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector official k
Ldxe;k:D
intermediary field_31809
Lnet/minecraft/class_14;field_31809:D
named Y_OFFSET
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;Y_OFFSET:D
-
MIN_STEP_HEIGHT
private static final double MIN_STEP_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector official m
Ldxe;m:D
intermediary field_40928
Lnet/minecraft/class_14;field_40928:D
named MIN_STEP_HEIGHT
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;MIN_STEP_HEIGHT:D
-
waterPathNodeTypeWeight
protected float waterPathNodeTypeWeight- Mappings:
Namespace Name Mixin selector official l
Ldxe;l:F
intermediary field_63
Lnet/minecraft/class_14;field_63:F
named waterPathNodeTypeWeight
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;waterPathNodeTypeWeight:F
-
nodeTypes
- Mappings:
Namespace Name Mixin selector official n
Ldxe;n:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
intermediary field_25190
Lnet/minecraft/class_14;field_25190:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
named nodeTypes
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;nodeTypes:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
collidedBoxes
- Mappings:
Namespace Name Mixin selector official o
Ldxe;o:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
intermediary field_25191
Lnet/minecraft/class_14;field_25191:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
named collidedBoxes
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;collidedBoxes:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
-
-
Constructor Details
-
LandPathNodeMaker
public LandPathNodeMaker()
-
-
Method Details
-
init
- Overrides:
init
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldwy;a(Lcmv;Lbfz;)V
intermediary method_12
Lnet/minecraft/class_8;method_12(Lnet/minecraft/class_1950;Lnet/minecraft/class_1308;)V
named init
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;init(Lnet/minecraft/world/chunk/ChunkCache;Lnet/minecraft/entity/mob/MobEntity;)V
-
clear
public void clear()- Overrides:
clear
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector official b
Ldwy;b()V
intermediary method_19
Lnet/minecraft/class_8;method_19()V
named clear
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;clear()V
-
getStart
- Specified by:
getStart
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldwy;a()Ldwx;
intermediary method_21
Lnet/minecraft/class_8;method_21()Lnet/minecraft/class_9;
named getStart
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;getStart()Lnet/minecraft/entity/ai/pathing/PathNode;
-
getStart
- Mappings:
Namespace Name Mixin selector official c
Ldxe;c(Lgt;)Ldwx;
intermediary method_43415
Lnet/minecraft/class_14;method_43415(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9;
named getStart
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getStart(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNode;
-
canPathThrough
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Lgt;)Z
intermediary method_47893
Lnet/minecraft/class_14;method_47893(Lnet/minecraft/class_2338;)Z
named canPathThrough
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;canPathThrough(Lnet/minecraft/util/math/BlockPos;)Z
-
getNode
- Specified by:
getNode
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldwy;a(DDD)Ldxd;
intermediary method_16
Lnet/minecraft/class_8;method_16(DDD)Lnet/minecraft/class_4459;
named getNode
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;getNode(DDD)Lnet/minecraft/entity/ai/pathing/TargetPathNode;
-
getSuccessors
- Specified by:
getSuccessors
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldwy;a([Ldwx;Ldwx;)I
intermediary method_18
Lnet/minecraft/class_8;method_18([Lnet/minecraft/class_9;Lnet/minecraft/class_9;)I
named getSuccessors
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;getSuccessors([Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)I
-
isValidAdjacentSuccessor
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Ldwx;Ldwx;)Z
intermediary method_20536
Lnet/minecraft/class_14;method_20536(Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Z
named isValidAdjacentSuccessor
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isValidAdjacentSuccessor(Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)Z
-
isValidDiagonalSuccessor
protected boolean isValidDiagonalSuccessor(PathNode xNode, @Nullable @Nullable PathNode zNode, @Nullable @Nullable PathNode xDiagNode, @Nullable @Nullable PathNode zDiagNode) - Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Ldwx;Ldwx;Ldwx;Ldwx;)Z
intermediary method_29579
Lnet/minecraft/class_14;method_29579(Lnet/minecraft/class_9;Lnet/minecraft/class_9;Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Z
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;Lnet/minecraft/entity/ai/pathing/PathNode;)Z
-
isBlocked
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Ldwv;)Z
intermediary method_43414
Lnet/minecraft/class_14;method_43414(Lnet/minecraft/class_7;)Z
named isBlocked
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isBlocked(Lnet/minecraft/entity/ai/pathing/PathNodeType;)Z
-
isBlocked
- Mappings:
Namespace Name Mixin selector official b
Ldxe;b(Ldwx;)Z
intermediary method_29578
Lnet/minecraft/class_14;method_29578(Lnet/minecraft/class_9;)Z
named isBlocked
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isBlocked(Lnet/minecraft/entity/ai/pathing/PathNode;)Z
-
getFeetY
- Mappings:
Namespace Name Mixin selector official d
Ldxe;d(Lgt;)D
intermediary method_37003
Lnet/minecraft/class_14;method_37003(Lnet/minecraft/class_2338;)D
named getFeetY
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getFeetY(Lnet/minecraft/util/math/BlockPos;)D
-
getFeetY
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Lclo;Lgt;)D
intermediary method_60
Lnet/minecraft/class_14;method_60(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)D
named getFeetY
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getFeetY(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)D
-
isAmphibious
protected boolean isAmphibious()- Mappings:
Namespace Name Mixin selector official c
Ldxe;c()Z
intermediary method_37004
Lnet/minecraft/class_14;method_37004()Z
named isAmphibious
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isAmphibious()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 official a
Ldxe;a(IIIIDLgz;Ldwv;)Ldwx;
intermediary method_62
Lnet/minecraft/class_14;method_62(IIIIDLnet/minecraft/class_2350;Lnet/minecraft/class_7;)Lnet/minecraft/class_9;
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;
-
getStepHeight
private double getStepHeight()- Mappings:
Namespace Name Mixin selector official h
Ldxe;h()D
intermediary method_46739
Lnet/minecraft/class_14;method_46739()D
named getStepHeight
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getStepHeight()D
-
getNodeWith
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(IIILdwv;F)Ldwx;
intermediary method_43569
Lnet/minecraft/class_14;method_43569(IIILnet/minecraft/class_7;F)Lnet/minecraft/class_9;
named getNodeWith
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeWith(IIILnet/minecraft/entity/ai/pathing/PathNodeType;F)Lnet/minecraft/entity/ai/pathing/PathNode;
-
getBlockedNode
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(III)Ldwx;
intermediary method_43570
Lnet/minecraft/class_14;method_43570(III)Lnet/minecraft/class_9;
named getBlockedNode
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getBlockedNode(III)Lnet/minecraft/entity/ai/pathing/PathNode;
-
checkBoxCollision
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Lecz;)Z
intermediary method_29304
Lnet/minecraft/class_14;method_29304(Lnet/minecraft/class_238;)Z
named checkBoxCollision
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;checkBoxCollision(Lnet/minecraft/util/math/Box;)Z
-
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 official a
Ldwy;a(Lclo;IIILbfz;)Ldwv;
intermediary method_25
Lnet/minecraft/class_8;method_25(Lnet/minecraft/class_1922;IIILnet/minecraft/class_1308;)Lnet/minecraft/class_7;
named getNodeType
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;getNodeType(Lnet/minecraft/world/BlockView;IIILnet/minecraft/entity/mob/MobEntity;)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
findNearbyNodeTypes
public PathNodeType findNearbyNodeTypes(BlockView world, int x, int y, int z, EnumSet<PathNodeType> nearbyTypes, PathNodeType type, BlockPos pos) Adds the node types in the box with the given size to the input EnumSet.- Returns:
- The node type at the least coordinates of the input box.
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Lclo;IIILjava/util/EnumSet;Ldwv;Lgt;)Ldwv;
intermediary method_64
Lnet/minecraft/class_14;method_64(Lnet/minecraft/class_1922;IIILjava/util/EnumSet;Lnet/minecraft/class_7;Lnet/minecraft/class_2338;)Lnet/minecraft/class_7;
named findNearbyNodeTypes
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;findNearbyNodeTypes(Lnet/minecraft/world/BlockView;IIILjava/util/EnumSet;Lnet/minecraft/entity/ai/pathing/PathNodeType;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
adjustNodeType
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Lclo;Lgt;Ldwv;)Ldwv;
intermediary method_61
Lnet/minecraft/class_14;method_61(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_7;)Lnet/minecraft/class_7;
named adjustNodeType
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;adjustNodeType(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/PathNodeType;)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
getNodeType
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Lbfz;Lgt;)Ldwv;
intermediary method_63
Lnet/minecraft/class_14;method_63(Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Lnet/minecraft/class_7;
named getNodeType
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeType(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
getNodeType
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Lbfz;III)Ldwv;
intermediary method_29303
Lnet/minecraft/class_14;method_29303(Lnet/minecraft/class_1308;III)Lnet/minecraft/class_7;
named getNodeType
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeType(Lnet/minecraft/entity/mob/MobEntity;III)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
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 official a
Ldwy;a(Lclo;III)Ldwv;
intermediary method_17
Lnet/minecraft/class_8;method_17(Lnet/minecraft/class_1922;III)Lnet/minecraft/class_7;
named getDefaultNodeType
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;getDefaultNodeType(Lnet/minecraft/world/BlockView;III)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
getLandNodeType
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Lclo;Lgt$a;)Ldwv;
intermediary method_23476
Lnet/minecraft/class_14;method_23476(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338$class_2339;)Lnet/minecraft/class_7;
named getLandNodeType
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getLandNodeType(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos$Mutable;)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
getNodeTypeFromNeighbors
public static PathNodeType getNodeTypeFromNeighbors(BlockView world, BlockPos.Mutable pos, PathNodeType nodeType) - Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Lclo;Lgt$a;Ldwv;)Ldwv;
intermediary method_59
Lnet/minecraft/class_14;method_59(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_7;)Lnet/minecraft/class_7;
named getNodeTypeFromNeighbors
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeTypeFromNeighbors(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos$Mutable;Lnet/minecraft/entity/ai/pathing/PathNodeType;)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
getCommonNodeType
- Mappings:
Namespace Name Mixin selector official b
Ldxe;b(Lclo;Lgt;)Ldwv;
intermediary method_58
Lnet/minecraft/class_14;method_58(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_7;
named getCommonNodeType
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getCommonNodeType(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
inflictsFireDamage
- Mappings:
Namespace Name Mixin selector official a
Ldxe;a(Ldbq;)Z
intermediary method_27138
Lnet/minecraft/class_14;method_27138(Lnet/minecraft/class_2680;)Z
named inflictsFireDamage
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;inflictsFireDamage(Lnet/minecraft/block/BlockState;)Z
-