类 LandPathNodeMaker
- java.lang.Object
-
- net.minecraft.entity.ai.pathing.PathNodeMaker
-
- net.minecraft.entity.ai.pathing.LandPathNodeMaker
-
public class LandPathNodeMaker extends PathNodeMaker
- Mappings:
Namespace Name official dgfintermediary net/minecraft/class_14named net/minecraft/entity/ai/pathing/LandPathNodeMaker
-
-
字段概要
字段 修饰符和类型 字段 说明 private Long2ObjectMap<PathNodeType>field_25190private Object2BooleanMap<Box>field_25191static doublefield_31809protected floatwaterPathNodeTypeWeight-
从类继承的字段 net.minecraft.entity.ai.pathing.PathNodeMaker
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache
-
-
构造器概要
构造器 构造器 说明 LandPathNodeMaker()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected PathNodeTypeadjustNodeType(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type)voidclear()PathNodeTypefindNearbyNodeTypes(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)PathNodeTypegetDefaultNodeType(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 doublegetFeetY(BlockView world, BlockPos pos)static PathNodeTypegetLandNodeType(BlockView world, BlockPos.Mutable pos)TargetPathNodegetNode(double x, double y, double z)private PathNodeTypegetNodeType(MobEntity entity, int x, int y, int z)private PathNodeTypegetNodeType(MobEntity entity, BlockPos pos)PathNodeTypegetNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)static PathNodeTypegetNodeTypeFromNeighbors(BlockView world, BlockPos.Mutable pos, PathNodeType nodeType)private @Nullable PathNodegetPathNode(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType pathNodeType)PathNodegetStart()intgetSuccessors(PathNode[] successors, PathNode node)private static booleaninflictsFireDamage(BlockState state)voidinit(ChunkCache cachedWorld, MobEntity entity)private booleanisValidDiagonalSuccessor(PathNode node, PathNode successor1)private booleanmethod_27139(BlockPos blockPos)private booleanmethod_29304(Box box)private booleanmethod_29578(PathNode pathNode)private booleanmethod_29579(PathNode pathNode, @Nullable PathNode pathNode2, @Nullable PathNode pathNode3, @Nullable PathNode pathNode4)-
从类继承的方法 net.minecraft.entity.ai.pathing.PathNodeMaker
canEnterOpenDoors, canOpenDoors, canSwim, getNode, getNode, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
-
-
-
-
字段详细资料
-
field_31809
public static final double field_31809
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official jLdgf;j:Dintermediary field_31809Lnet/minecraft/class_14;field_31809:Dnamed field_31809Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;field_31809:D
-
waterPathNodeTypeWeight
protected float waterPathNodeTypeWeight
- Mappings:
Namespace Name Mixin selector official kLdgf;k:Fintermediary field_63Lnet/minecraft/class_14;field_63:Fnamed waterPathNodeTypeWeightLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;waterPathNodeTypeWeight:F
-
field_25190
private final Long2ObjectMap<PathNodeType> field_25190
- Mappings:
Namespace Name Mixin selector official lLdgf;l:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;intermediary field_25190Lnet/minecraft/class_14;field_25190:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;named field_25190Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;field_25190:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
field_25191
private final Object2BooleanMap<Box> field_25191
- Mappings:
Namespace Name Mixin selector official mLdgf;m:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;intermediary field_25191Lnet/minecraft/class_14;field_25191:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;named field_25191Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;field_25191:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
-
-
方法详细资料
-
init
public void init(ChunkCache cachedWorld, MobEntity entity)
- 覆盖:
init在类中PathNodeMaker- Mappings:
Namespace Name Mixin selector official aLdfz;a(Lbwd;Lasz;)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()
- 覆盖:
clear在类中PathNodeMaker- Mappings:
Namespace Name Mixin selector official aLdfz;a()Vintermediary method_19Lnet/minecraft/class_8;method_19()Vnamed clearLnet/minecraft/entity/ai/pathing/PathNodeMaker;clear()V
-
getStart
public PathNode getStart()
- 指定者:
getStart在类中PathNodeMaker- Mappings:
Namespace Name Mixin selector official bLdfz;b()Ldfy;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;
-
method_27139
private boolean method_27139(BlockPos blockPos)
- Mappings:
Namespace Name Mixin selector official bLdgf;b(Lgb;)Zintermediary method_27139Lnet/minecraft/class_14;method_27139(Lnet/minecraft/class_2338;)Znamed method_27139Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;method_27139(Lnet/minecraft/util/math/BlockPos;)Z
-
getNode
public TargetPathNode getNode(double x, double y, double z)
- 指定者:
getNode在类中PathNodeMaker- Mappings:
Namespace Name Mixin selector official aLdfz;a(DDD)Ldge;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
public int getSuccessors(PathNode[] successors, PathNode node)
- 指定者:
getSuccessors在类中PathNodeMaker- Mappings:
Namespace Name Mixin selector official aLdfz;a([Ldfy;Ldfy;)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
-
isValidDiagonalSuccessor
private boolean isValidDiagonalSuccessor(PathNode node, PathNode successor1)
- Mappings:
Namespace Name Mixin selector official aLdgf;a(Ldfy;Ldfy;)Zintermediary method_20536Lnet/minecraft/class_14;method_20536(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;)Z
-
method_29579
private boolean method_29579(PathNode pathNode, @Nullable @Nullable PathNode pathNode2, @Nullable @Nullable PathNode pathNode3, @Nullable @Nullable PathNode pathNode4)
- Mappings:
Namespace Name Mixin selector official aLdgf;a(Ldfy;Ldfy;Ldfy;Ldfy;)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 method_29579Lnet/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
private boolean method_29578(PathNode pathNode)
- Mappings:
Namespace Name Mixin selector official aLdgf;a(Ldfy;)Zintermediary method_29578Lnet/minecraft/class_14;method_29578(Lnet/minecraft/class_9;)Znamed method_29578Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;method_29578(Lnet/minecraft/entity/ai/pathing/PathNode;)Z
-
getFeetY
public static double getFeetY(BlockView world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLdgf;a(Lbuv;Lgb;)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
-
getPathNode
@Nullable private @Nullable PathNode getPathNode(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType pathNodeType)
- Mappings:
Namespace Name Mixin selector official aLdgf;a(IIIIDLgg;Ldfw;)Ldfy;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_29304
private boolean method_29304(Box box)
- Mappings:
Namespace Name Mixin selector official aLdgf;a(Ldlv;)Zintermediary method_29304Lnet/minecraft/class_14;method_29304(Lnet/minecraft/class_238;)Znamed method_29304Lnet/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)
- 指定者:
getNodeType在类中PathNodeMaker- Mappings:
Namespace Name Mixin selector official aLdfz;a(Lbuv;IIILasz;IIIZZ)Ldfw;intermediary method_17Lnet/minecraft/class_8;method_17(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.- 返回:
- The node type at the least coordinates of the input box.
- Mappings:
Namespace Name Mixin selector official aLdgf;a(Lbuv;IIIIIIZZLjava/util/EnumSet;Ldfw;Lgb;)Ldfw;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 aLdgf;a(Lbuv;ZZLgb;Ldfw;)Ldfw;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
private PathNodeType getNodeType(MobEntity entity, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLdgf;a(Lasz;Lgb;)Ldfw;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
private PathNodeType getNodeType(MobEntity entity, int x, int y, int z)
- Mappings:
Namespace Name Mixin selector official aLdgf;a(Lasz;III)Ldfw;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
public 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 doors- 指定者:
getDefaultNodeType在类中PathNodeMaker- Mappings:
Namespace Name Mixin selector official aLdfz;a(Lbuv;III)Ldfw;intermediary method_25Lnet/minecraft/class_8;method_25(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
public static PathNodeType getLandNodeType(BlockView world, BlockPos.Mutable pos)
- Mappings:
Namespace Name Mixin selector official aLdgf;a(Lbuv;Lgb$a;)Ldfw;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 aLdgf;a(Lbuv;Lgb$a;Ldfw;)Ldfw;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
protected static PathNodeType getCommonNodeType(BlockView world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official bLdgf;b(Lbuv;Lgb;)Ldfw;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
private static boolean inflictsFireDamage(BlockState state)
- Mappings:
Namespace Name Mixin selector official aLdgf;a(Lcjr;)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
-
-