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
- Mappings:
Namespace Name official dptintermediary net/minecraft/class_14named net/minecraft/entity/ai/pathing/LandPathNodeMaker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Object2BooleanMap<Box>private final Long2ObjectMap<PathNodeType>protected floatstatic final doubleFields inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PathNodeTypeadjustNodeType(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type) private booleancanPathThrough(BlockPos pos) private booleancheckBoxCollision(Box box) voidclear()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 PathNodeTypegetCommonNodeType(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 doublestatic doublestatic PathNodeTypegetLandNodeType(BlockView world, BlockPos.Mutable pos) getNode(double x, double y, double z) protected PathNodeTypegetNodeType(MobEntity entity, int x, int y, int z) private PathNodeTypegetNodeType(MobEntity entity, BlockPos pos) getNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors) 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(BlockView world, BlockPos.Mutable pos, PathNodeType nodeType) getPathNode(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType nodeType) getStart()intgetSuccessors(PathNode[] successors, PathNode node) static booleaninflictsFireDamage(BlockState state) voidinit(ChunkCache cachedWorld, MobEntity entity) protected booleanprivate booleanprivate static booleanisBlocked(PathNodeType nodeType) protected booleanisValidAdjacentSuccessor(@Nullable PathNode node, PathNode successor1) protected booleanisValidDiagonalSuccessor(PathNode xNode, @Nullable PathNode zNode, @Nullable PathNode xDiagNode, @Nullable PathNode zDiagNode) method_43569(int int2, int int3, int int4, PathNodeType pathNodeType, float float2) method_43570(int int2, int int3, int int4) Methods inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
asTargetPathNode, canEnterOpenDoors, canOpenDoors, canSwim, getNode, getNode, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
-
Field Details
-
Y_OFFSET
public static final double Y_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector official jLdpt;j:Dintermediary field_31809Lnet/minecraft/class_14;field_31809:Dnamed Y_OFFSETLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;Y_OFFSET:D
-
waterPathNodeTypeWeight
protected float waterPathNodeTypeWeight- Mappings:
Namespace Name Mixin selector official kLdpt;k:Fintermediary field_63Lnet/minecraft/class_14;field_63:Fnamed waterPathNodeTypeWeightLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;waterPathNodeTypeWeight:F
-
nodeTypes
- Mappings:
Namespace Name Mixin selector official lLdpt;l:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;intermediary field_25190Lnet/minecraft/class_14;field_25190:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;named nodeTypesLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;nodeTypes:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
collidedBoxes
- Mappings:
Namespace Name Mixin selector official mLdpt;m:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;intermediary field_25191Lnet/minecraft/class_14;field_25191:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;named collidedBoxesLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;collidedBoxes:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
-
-
Constructor Details
-
LandPathNodeMaker
public LandPathNodeMaker()
-
-
Method Details
-
init
- Overrides:
initin classPathNodeMaker- Mappings:
Namespace Name Mixin selector official aLdpn;a(Lcgn;Lbbh;)Vintermediary method_12Lnet/minecraft/class_8;method_12(Lnet/minecraft/class_1950;Lnet/minecraft/class_1308;)Vnamed initLnet/minecraft/entity/ai/pathing/PathNodeMaker;init(Lnet/minecraft/world/chunk/ChunkCache;Lnet/minecraft/entity/mob/MobEntity;)V
-
clear
public void clear()- Overrides:
clearin classPathNodeMaker- Mappings:
Namespace Name Mixin selector official bLdpn;b()Vintermediary method_19Lnet/minecraft/class_8;method_19()Vnamed clearLnet/minecraft/entity/ai/pathing/PathNodeMaker;clear()V
-
getStart
- Specified by:
getStartin classPathNodeMaker- Mappings:
Namespace Name Mixin selector official aLdpn;a()Ldpm;intermediary method_21Lnet/minecraft/class_8;method_21()Lnet/minecraft/class_9;named getStartLnet/minecraft/entity/ai/pathing/PathNodeMaker;getStart()Lnet/minecraft/entity/ai/pathing/PathNode;
-
getStart
- Mappings:
Namespace Name Mixin selector official cLdpt;c(Lgt;)Ldpm;intermediary method_43415Lnet/minecraft/class_14;method_43415(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9;named getStartLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getStart(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathNode;
-
canPathThrough
- Mappings:
Namespace Name Mixin selector official dLdpt;d(Lgt;)Zintermediary method_27139Lnet/minecraft/class_14;method_27139(Lnet/minecraft/class_2338;)Znamed canPathThroughLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;canPathThrough(Lnet/minecraft/util/math/BlockPos;)Z
-
getNode
- Specified by:
getNodein classPathNodeMaker- Mappings:
Namespace Name Mixin selector official aLdpn;a(DDD)Ldps;intermediary method_16Lnet/minecraft/class_8;method_16(DDD)Lnet/minecraft/class_4459;named getNodeLnet/minecraft/entity/ai/pathing/PathNodeMaker;getNode(DDD)Lnet/minecraft/entity/ai/pathing/TargetPathNode;
-
getSuccessors
- Specified by:
getSuccessorsin classPathNodeMaker- Mappings:
Namespace Name Mixin selector official aLdpn;a([Ldpm;Ldpm;)Iintermediary method_18Lnet/minecraft/class_8;method_18([Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Inamed getSuccessorsLnet/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 aLdpt;a(Ldpm;Ldpm;)Zintermediary method_20536Lnet/minecraft/class_14;method_20536(Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Znamed isValidAdjacentSuccessorLnet/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 aLdpt;a(Ldpm;Ldpm;Ldpm;Ldpm;)Zintermediary method_29579Lnet/minecraft/class_14;method_29579(Lnet/minecraft/class_9;Lnet/minecraft/class_9;Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Znamed 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;Lnet/minecraft/entity/ai/pathing/PathNode;)Z
-
isBlocked
- Mappings:
Namespace Name Mixin selector official aLdpt;a(Ldpk;)Zintermediary method_43414Lnet/minecraft/class_14;method_43414(Lnet/minecraft/class_7;)Znamed isBlockedLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isBlocked(Lnet/minecraft/entity/ai/pathing/PathNodeType;)Z
-
isBlocked
- Mappings:
Namespace Name Mixin selector official bLdpt;b(Ldpm;)Zintermediary method_29578Lnet/minecraft/class_14;method_29578(Lnet/minecraft/class_9;)Znamed isBlockedLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;isBlocked(Lnet/minecraft/entity/ai/pathing/PathNode;)Z
-
getFeetY
- Mappings:
Namespace Name Mixin selector official aLdpt;a(Lgt;)Dintermediary method_37003Lnet/minecraft/class_14;method_37003(Lnet/minecraft/class_2338;)Dnamed getFeetYLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getFeetY(Lnet/minecraft/util/math/BlockPos;)D
-
getFeetY
- Mappings:
Namespace Name Mixin selector official aLdpt;a(Lcfg;Lgt;)Dintermediary method_60Lnet/minecraft/class_14;method_60(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Dnamed getFeetYLnet/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 cLdpt;c()Zintermediary method_37004Lnet/minecraft/class_14;method_37004()Znamed isAmphibiousLnet/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 aLdpt;a(IIIIDLgy;Ldpk;)Ldpm;intermediary method_62Lnet/minecraft/class_14;method_62(IIIIDLnet/minecraft/class_2350;Lnet/minecraft/class_7;)Lnet/minecraft/class_9;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;
-
method_43569
@Nullable private @Nullable PathNode method_43569(int int2, int int3, int int4, PathNodeType pathNodeType, float float2) - Mappings:
Namespace Name Mixin selector official aLdpt;a(IIILdpk;F)Ldpm;intermediary method_43569Lnet/minecraft/class_14;method_43569(IIILnet/minecraft/class_7;F)Lnet/minecraft/class_9;named method_43569Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;method_43569(IIILnet/minecraft/entity/ai/pathing/PathNodeType;F)Lnet/minecraft/entity/ai/pathing/PathNode;
-
method_43570
- Mappings:
Namespace Name Mixin selector official bLdpt;b(III)Ldpm;intermediary method_43570Lnet/minecraft/class_14;method_43570(III)Lnet/minecraft/class_9;named method_43570Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;method_43570(III)Lnet/minecraft/entity/ai/pathing/PathNode;
-
checkBoxCollision
- Mappings:
Namespace Name Mixin selector official aLdpt;a(Ldvo;)Zintermediary method_29304Lnet/minecraft/class_14;method_29304(Lnet/minecraft/class_238;)Znamed checkBoxCollisionLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;checkBoxCollision(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) 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 official aLdpn;a(Lcfg;IIILbbh;IIIZZ)Ldpk;intermediary method_25Lnet/minecraft/class_8;method_25(Lnet/minecraft/class_1922;IIILnet/minecraft/class_1308;IIIZZ)Lnet/minecraft/class_7;named getNodeTypeLnet/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 aLdpt;a(Lcfg;IIIIIIZZLjava/util/EnumSet;Ldpk;Lgt;)Ldpk;intermediary method_64Lnet/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 findNearbyNodeTypesLnet/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 aLdpt;a(Lcfg;ZZLgt;Ldpk;)Ldpk;intermediary method_61Lnet/minecraft/class_14;method_61(Lnet/minecraft/class_1922;ZZLnet/minecraft/class_2338;Lnet/minecraft/class_7;)Lnet/minecraft/class_7;named adjustNodeTypeLnet/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 aLdpt;a(Lbbh;Lgt;)Ldpk;intermediary method_63Lnet/minecraft/class_14;method_63(Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Lnet/minecraft/class_7;named getNodeTypeLnet/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 aLdpt;a(Lbbh;III)Ldpk;intermediary method_29303Lnet/minecraft/class_14;method_29303(Lnet/minecraft/class_1308;III)Lnet/minecraft/class_7;named getNodeTypeLnet/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:
getDefaultNodeTypein classPathNodeMaker- Mappings:
Namespace Name Mixin selector official aLdpn;a(Lcfg;III)Ldpk;intermediary method_17Lnet/minecraft/class_8;method_17(Lnet/minecraft/class_1922;III)Lnet/minecraft/class_7;named getDefaultNodeTypeLnet/minecraft/entity/ai/pathing/PathNodeMaker;getDefaultNodeType(Lnet/minecraft/world/BlockView;III)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
getLandNodeType
- Mappings:
Namespace Name Mixin selector official aLdpt;a(Lcfg;Lgt$a;)Ldpk;intermediary method_23476Lnet/minecraft/class_14;method_23476(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338$class_2339;)Lnet/minecraft/class_7;named getLandNodeTypeLnet/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 aLdpt;a(Lcfg;Lgt$a;Ldpk;)Ldpk;intermediary method_59Lnet/minecraft/class_14;method_59(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_7;)Lnet/minecraft/class_7;named getNodeTypeFromNeighborsLnet/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 bLdpt;b(Lcfg;Lgt;)Ldpk;intermediary method_58Lnet/minecraft/class_14;method_58(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_7;named getCommonNodeTypeLnet/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 aLdpt;a(Lcur;)Zintermediary method_27138Lnet/minecraft/class_14;method_27138(Lnet/minecraft/class_2680;)Znamed inflictsFireDamageLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;inflictsFireDamage(Lnet/minecraft/block/BlockState;)Z
-