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
,RavagerEntity.PathNodeMaker
public class LandPathNodeMaker extends PathNodeMaker
- Mappings:
Namespace Name official dcy
intermediary net/minecraft/class_14
named net/minecraft/entity/ai/pathing/LandPathNodeMaker
-
Field Summary
Fields Modifier and Type Field Description private Long2ObjectMap<PathNodeType>
field_25190
private Object2BooleanMap<Box>
field_25191
protected float
waterPathNodeTypeWeight
Fields inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache
-
Constructor Summary
Constructors Constructor Description LandPathNodeMaker()
-
Method Summary
Modifier and Type Method Description protected PathNodeType
adjustNodeType(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type)
void
clear()
PathNodeType
findNearbyNodeTypes(BlockView world, int x, int y, int z, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors, EnumSet<PathNodeType> nearbyTypes, PathNodeType type, BlockPos pos)
Adds the node types in the box with the given size to the input EnumSet.protected static PathNodeType
getCommonNodeType(BlockView world, BlockPos pos)
PathNodeType
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 doorsstatic double
getFeetY(BlockView world, BlockPos pos)
static PathNodeType
getLandNodeType(BlockView world, BlockPos.Mutable pos)
TargetPathNode
getNode(double x, double y, double z)
private PathNodeType
getNodeType(MobEntity entity, int x, int y, int z)
private PathNodeType
getNodeType(MobEntity entity, BlockPos pos)
PathNodeType
getNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)
static PathNodeType
getNodeTypeFromNeighbors(BlockView world, BlockPos.Mutable pos, PathNodeType nodeType)
private PathNode
getPathNode(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType pathNodeType)
PathNode
getStart()
int
getSuccessors(PathNode[] successors, PathNode node)
private static boolean
inflictsFireDamage(BlockState state)
void
init(ChunkCache cachedWorld, MobEntity entity)
private boolean
isValidDiagonalSuccessor(PathNode node, PathNode successor1)
private boolean
method_27139(BlockPos blockPos)
private boolean
method_29304(Box box)
private boolean
method_29578(PathNode pathNode)
private boolean
method_29579(PathNode pathNode, PathNode pathNode2, PathNode pathNode3, PathNode pathNode4)
Methods inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
canEnterOpenDoors, canOpenDoors, canSwim, getNode, getNode, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
-
Field Details
-
waterPathNodeTypeWeight
protected float waterPathNodeTypeWeight- Mappings:
Namespace Name Mixin selector official j
Ldcy;j:F
intermediary field_63
Lnet/minecraft/class_14;field_63:F
named waterPathNodeTypeWeight
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;waterPathNodeTypeWeight:F
-
field_25190
- Mappings:
Namespace Name Mixin selector official k
Ldcy;k:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
intermediary field_25190
Lnet/minecraft/class_14;field_25190:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
named field_25190
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;field_25190:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
field_25191
- Mappings:
Namespace Name Mixin selector official l
Ldcy;l:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
intermediary field_25191
Lnet/minecraft/class_14;field_25191:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
named field_25191
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;field_25191: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
Ldcs;a(Lbuh;Larj;)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 a
Ldcs;a()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 b
Ldcs;b()Ldcr;
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;
-
method_27139
- Mappings:
Namespace Name Mixin selector official b
Ldcy;b(Lfx;)Z
intermediary method_27139
Lnet/minecraft/class_14;method_27139(Lnet/minecraft/class_2338;)Z
named method_27139
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;method_27139(Lnet/minecraft/util/math/BlockPos;)Z
-
getNode
- Specified by:
getNode
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldcs;a(DDD)Ldcx;
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
Ldcs;a([Ldcr;Ldcr;)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
-
isValidDiagonalSuccessor
- Mappings:
Namespace Name Mixin selector official a
Ldcy;a(Ldcr;Ldcr;)Z
intermediary method_20536
Lnet/minecraft/class_14;method_20536(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;)Z
-
method_29579
private boolean method_29579(PathNode pathNode, @Nullable PathNode pathNode2, @Nullable PathNode pathNode3, @Nullable PathNode pathNode4)- Mappings:
Namespace Name Mixin selector official a
Ldcy;a(Ldcr;Ldcr;Ldcr;Ldcr;)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 method_29579
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;method_29579(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
-
method_29578
- Mappings:
Namespace Name Mixin selector official a
Ldcy;a(Ldcr;)Z
intermediary method_29578
Lnet/minecraft/class_14;method_29578(Lnet/minecraft/class_9;)Z
named method_29578
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;method_29578(Lnet/minecraft/entity/ai/pathing/PathNode;)Z
-
getFeetY
- Mappings:
Namespace Name Mixin selector official a
Ldcy;a(Lbsz;Lfx;)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
-
getPathNode
@Nullable private PathNode getPathNode(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType pathNodeType)- Mappings:
Namespace Name Mixin selector official a
Ldcy;a(IIIIDLgc;Ldcp;)Ldcr;
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;
-
method_29304
- Mappings:
Namespace Name Mixin selector official a
Ldcy;a(Ldip;)Z
intermediary method_29304
Lnet/minecraft/class_14;method_29304(Lnet/minecraft/class_238;)Z
named method_29304
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;method_29304(Lnet/minecraft/util/math/Box;)Z
-
getNodeType
public PathNodeType getNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)- Specified by:
getNodeType
in classPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldcs;a(Lbsz;IIILarj;IIIZZ)Ldcp;
intermediary method_17
Lnet/minecraft/class_8;method_17(Lnet/minecraft/class_1922;IIILnet/minecraft/class_1308;IIIZZ)Lnet/minecraft/class_7;
named getNodeType
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;getNodeType(Lnet/minecraft/world/BlockView;IIILnet/minecraft/entity/mob/MobEntity;IIIZZ)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
findNearbyNodeTypes
public PathNodeType findNearbyNodeTypes(BlockView world, int x, int y, int z, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors, 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
Ldcy;a(Lbsz;IIIIIIZZLjava/util/EnumSet;Ldcp;Lfx;)Ldcp;
intermediary method_64
Lnet/minecraft/class_14;method_64(Lnet/minecraft/class_1922;IIIIIIZZLjava/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;IIIIIIZZLjava/util/EnumSet;Lnet/minecraft/entity/ai/pathing/PathNodeType;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
adjustNodeType
protected PathNodeType adjustNodeType(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type)- Mappings:
Namespace Name Mixin selector official a
Ldcy;a(Lbsz;ZZLfx;Ldcp;)Ldcp;
intermediary method_61
Lnet/minecraft/class_14;method_61(Lnet/minecraft/class_1922;ZZLnet/minecraft/class_2338;Lnet/minecraft/class_7;)Lnet/minecraft/class_7;
named adjustNodeType
Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;adjustNodeType(Lnet/minecraft/world/BlockView;ZZLnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/PathNodeType;)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
getNodeType
- Mappings:
Namespace Name Mixin selector official a
Ldcy;a(Larj;Lfx;)Ldcp;
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
Ldcy;a(Larj;III)Ldcp;
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
Ldcs;a(Lbsz;III)Ldcp;
intermediary method_25
Lnet/minecraft/class_8;method_25(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
Ldcy;a(Lbsz;Lfx$a;)Ldcp;
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
Ldcy;a(Lbsz;Lfx$a;Ldcp;)Ldcp;
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
Ldcy;b(Lbsz;Lfx;)Ldcp;
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
Ldcy;a(Lcht;)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
-