Package net.minecraft.entity.ai.pathing
Class BirdPathNodeMaker
java.lang.Object
net.minecraft.entity.ai.pathing.PathNodeMaker
net.minecraft.entity.ai.pathing.LandPathNodeMaker
net.minecraft.entity.ai.pathing.BirdPathNodeMaker
- Mappings:
Namespace Name official dxq
intermediary net/minecraft/class_6
named net/minecraft/entity/ai/pathing/BirdPathNodeMaker
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final float
private static final int
private final Long2ObjectMap<PathNodeType>
Fields inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
Y_OFFSET
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 boolean
canPathThrough
(BlockPos pos) void
clear()
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 doorsgetNode
(double x, double y, double z) private PathNodeType
getNodeType
(int x, int y, int z) 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 doorsgetPassableNode
(int x, int y, int z) getPotentialEscapePositions
(MobEntity entity) Returns the iterable of positions that the entity should try to pathfind to when escaping.getStart()
int
getSuccessors
(PathNode[] successors, PathNode node) void
init
(ChunkCache cachedWorld, MobEntity entity) private boolean
isPassable
(@Nullable PathNode node) private boolean
Methods inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
adjustNodeType, findNearbyNodeTypes, getCommonNodeType, getFeetY, getFeetY, getLandNodeType, getNodeType, getNodeType, getNodeTypeFromNeighbors, getPathNode, getStart, inflictsFireDamage, isAmphibious, isValidAdjacentSuccessor, isValidDiagonalSuccessor
Methods inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
asTargetPathNode, canEnterOpenDoors, canOpenDoors, canSwim, canWalkOverFences, getNode, getNode, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim, setCanWalkOverFences
-
Field Details
-
field_41681
private static final float field_41681- See Also:
- Mappings:
Namespace Name Mixin selector official m
Ldxq;m:F
intermediary field_41681
Lnet/minecraft/class_6;field_41681:F
named field_41681
Lnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;field_41681:F
-
field_41682
private static final int field_41682- See Also:
- Mappings:
Namespace Name Mixin selector official n
Ldxq;n:I
intermediary field_41682
Lnet/minecraft/class_6;field_41682:I
named field_41682
Lnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;field_41682:I
-
pathNodes
- Mappings:
Namespace Name Mixin selector official l
Ldxq;l:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
intermediary field_27341
Lnet/minecraft/class_6;field_27341:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
named pathNodes
Lnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;pathNodes:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
-
Constructor Details
-
BirdPathNodeMaker
public BirdPathNodeMaker()
-
-
Method Details
-
init
- Overrides:
init
in classLandPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldxs;a(Lcmz;Lbgb;)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 classLandPathNodeMaker
- Mappings:
Namespace Name Mixin selector official b
Ldxs;b()V
intermediary method_19
Lnet/minecraft/class_8;method_19()V
named clear
Lnet/minecraft/entity/ai/pathing/PathNodeMaker;clear()V
-
getStart
- Overrides:
getStart
in classLandPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldxs;a()Ldxr;
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;
-
canPathThrough
- Overrides:
canPathThrough
in classLandPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldxy;a(Lgu;)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
- Overrides:
getNode
in classLandPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldxs;a(DDD)Ldxx;
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
- Overrides:
getSuccessors
in classLandPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldxs;a([Ldxr;Ldxr;)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
-
isPassable
- Mappings:
Namespace Name Mixin selector official b
Ldxq;b(Ldxr;)Z
intermediary method_22877
Lnet/minecraft/class_6;method_22877(Lnet/minecraft/class_9;)Z
named isPassable
Lnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;isPassable(Lnet/minecraft/entity/ai/pathing/PathNode;)Z
-
unvisited
- Mappings:
Namespace Name Mixin selector official c
Ldxq;c(Ldxr;)Z
intermediary method_22878
Lnet/minecraft/class_6;method_22878(Lnet/minecraft/class_9;)Z
named unvisited
Lnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;unvisited(Lnet/minecraft/entity/ai/pathing/PathNode;)Z
-
getPassableNode
- Mappings:
Namespace Name Mixin selector official a
Ldxq;a(III)Ldxr;
intermediary method_47933
Lnet/minecraft/class_6;method_47933(III)Lnet/minecraft/class_9;
named getPassableNode
Lnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;getPassableNode(III)Lnet/minecraft/entity/ai/pathing/PathNode;
-
getNodeType
- Mappings:
Namespace Name Mixin selector official c
Ldxq;c(III)Ldxp;
intermediary method_31932
Lnet/minecraft/class_6;method_31932(III)Lnet/minecraft/class_7;
named getNodeType
Lnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;getNodeType(III)Lnet/minecraft/entity/ai/pathing/PathNodeType;
-
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- Overrides:
getNodeType
in classLandPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldxs;a(Lcls;IIILbgb;)Ldxp;
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;
-
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- Overrides:
getDefaultNodeType
in classLandPathNodeMaker
- Mappings:
Namespace Name Mixin selector official a
Ldxs;a(Lcls;III)Ldxp;
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;
-
getPotentialEscapePositions
Returns the iterable of positions that the entity should try to pathfind to when escaping.- Returns:
- the iterable of positions that the entity should try to pathfind to when escaping
- API Note:
- This is used when the entity cannot path through the current position (e.g. because it is dangerous).
- Mappings:
Namespace Name Mixin selector official a
Ldxq;a(Lbgb;)Ljava/lang/Iterable;
intermediary method_47934
Lnet/minecraft/class_6;method_47934(Lnet/minecraft/class_1308;)Ljava/lang/Iterable;
named getPotentialEscapePositions
Lnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;getPotentialEscapePositions(Lnet/minecraft/entity/mob/MobEntity;)Ljava/lang/Iterable;
-