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 named net/minecraft/entity/ai/pathing/BirdPathNodeMakerintermediary net/minecraft/class_6official faw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate static final intprivate static final floatprivate final Long2ObjectMap<PathNodeType> Fields inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
Y_OFFSETFields inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
canEnterOpenDoors, canOpenDoors, canSwim, canWalkOverFences, context, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanPathThrough(BlockPos pos) voidclear()getDefaultNodeType(PathContext context, 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) protected PathNodeTypegetNodeType(int x, int y, int z) getPassableNode(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()intgetSuccessors(PathNode[] successors, PathNode node) voidinit(ChunkCache cachedWorld, MobEntity entity) private booleanisPassable(@Nullable PathNode node) private booleanMethods inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
getCollidingNodeTypes, getCommonNodeType, getFeetY, getFeetY, getLandNodeType, getLandNodeType, getNodeType, getNodeTypeFromNeighbors, getPathNode, getStart, isAmphibious, isValidAdjacentSuccessor, isValidDiagonalSuccessor, isValidDiagonalSuccessorMethods inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
canEnterOpenDoors, canOpenDoors, canSwim, canWalkOverFences, createNode, getDefaultNodeType, getNode, getNode, isFireDamaging, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim, setCanWalkOverFences
-
Field Details
-
field_49843
private static final float field_49843- See Also:
- Mappings:
Namespace Name Mixin selector named field_49843Lnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;field_49843:Fintermediary field_49843Lnet/minecraft/class_6;field_49843:Fofficial mLfaw;m:F
-
field_41681
private static final float field_41681- See Also:
- Mappings:
Namespace Name Mixin selector named field_41681Lnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;field_41681:Fintermediary field_41681Lnet/minecraft/class_6;field_41681:Fofficial nLfaw;n:F
-
field_41682
private static final int field_41682- See Also:
- Mappings:
Namespace Name Mixin selector named field_41682Lnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;field_41682:Iintermediary field_41682Lnet/minecraft/class_6;field_41682:Iofficial oLfaw;o:I
-
pathNodes
- Mappings:
Namespace Name Mixin selector named pathNodesLnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;pathNodes:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;intermediary field_27341Lnet/minecraft/class_6;field_27341:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;official aLfaw;a:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
-
Constructor Details
-
BirdPathNodeMaker
public BirdPathNodeMaker()
-
-
Method Details
-
init
- Overrides:
initin classLandPathNodeMaker- Mappings:
Namespace Name Mixin selector named initLnet/minecraft/entity/ai/pathing/PathNodeMaker;init(Lnet/minecraft/world/chunk/ChunkCache;Lnet/minecraft/entity/mob/MobEntity;)Vintermediary method_12Lnet/minecraft/class_8;method_12(Lnet/minecraft/class_1950;Lnet/minecraft/class_1308;)Vofficial aLfay;a(Ldnh;Lcao;)V
-
clear
public void clear()- Overrides:
clearin classLandPathNodeMaker- Mappings:
Namespace Name Mixin selector named clearLnet/minecraft/entity/ai/pathing/PathNodeMaker;clear()Vintermediary method_19Lnet/minecraft/class_8;method_19()Vofficial bLfay;b()V
-
getStart
- Overrides:
getStartin classLandPathNodeMaker- Mappings:
Namespace Name Mixin selector named getStartLnet/minecraft/entity/ai/pathing/PathNodeMaker;getStart()Lnet/minecraft/entity/ai/pathing/PathNode;intermediary method_21Lnet/minecraft/class_8;method_21()Lnet/minecraft/class_9;official aLfay;a()Lfax;
-
canPathThrough
- Overrides:
canPathThroughin classLandPathNodeMaker- Mappings:
Namespace Name Mixin selector named canPathThroughLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;canPathThrough(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_47893Lnet/minecraft/class_14;method_47893(Lnet/minecraft/class_2338;)Zofficial aLfbh;a(Ljb;)Z
-
getNode
- Overrides:
getNodein classLandPathNodeMaker- Mappings:
Namespace Name Mixin selector named getNodeLnet/minecraft/entity/ai/pathing/PathNodeMaker;getNode(DDD)Lnet/minecraft/entity/ai/pathing/TargetPathNode;intermediary method_16Lnet/minecraft/class_8;method_16(DDD)Lnet/minecraft/class_4459;official aLfay;a(DDD)Lfbg;
-
getSuccessors
- Overrides:
getSuccessorsin classLandPathNodeMaker- Mappings:
Namespace Name Mixin selector named getSuccessorsLnet/minecraft/entity/ai/pathing/PathNodeMaker;getSuccessors([Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)Iintermediary method_18Lnet/minecraft/class_8;method_18([Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Iofficial aLfay;a([Lfax;Lfax;)I
-
isPassable
- Mappings:
Namespace Name Mixin selector named isPassableLnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;isPassable(Lnet/minecraft/entity/ai/pathing/PathNode;)Zintermediary method_22877Lnet/minecraft/class_6;method_22877(Lnet/minecraft/class_9;)Zofficial bLfaw;b(Lfax;)Z
-
unvisited
- Mappings:
Namespace Name Mixin selector named unvisitedLnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;unvisited(Lnet/minecraft/entity/ai/pathing/PathNode;)Zintermediary method_22878Lnet/minecraft/class_6;method_22878(Lnet/minecraft/class_9;)Zofficial cLfaw;c(Lfax;)Z
-
getPassableNode
- Mappings:
Namespace Name Mixin selector named getPassableNodeLnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;getPassableNode(III)Lnet/minecraft/entity/ai/pathing/PathNode;intermediary method_47933Lnet/minecraft/class_6;method_47933(III)Lnet/minecraft/class_9;official aLfaw;a(III)Lfax;
-
getNodeType
- Overrides:
getNodeTypein classLandPathNodeMaker- Mappings:
Namespace Name Mixin selector named getNodeTypeLnet/minecraft/entity/ai/pathing/LandPathNodeMaker;getNodeType(III)Lnet/minecraft/entity/ai/pathing/PathNodeType;intermediary method_31932Lnet/minecraft/class_14;method_31932(III)Lnet/minecraft/class_7;official bLfbh;b(III)Lfbc;
-
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:
getDefaultNodeTypein classLandPathNodeMaker- Mappings:
Namespace Name Mixin selector named getDefaultNodeTypeLnet/minecraft/entity/ai/pathing/PathNodeMaker;getDefaultNodeType(Lnet/minecraft/entity/ai/pathing/PathContext;III)Lnet/minecraft/entity/ai/pathing/PathNodeType;intermediary method_17Lnet/minecraft/class_8;method_17(Lnet/minecraft/class_9316;III)Lnet/minecraft/class_7;official aLfay;a(Lfbe;III)Lfbc;
-
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 named getPotentialEscapePositionsLnet/minecraft/entity/ai/pathing/BirdPathNodeMaker;getPotentialEscapePositions(Lnet/minecraft/entity/mob/MobEntity;)Ljava/lang/Iterable;intermediary method_47934Lnet/minecraft/class_6;method_47934(Lnet/minecraft/class_1308;)Ljava/lang/Iterable;official aLfaw;a(Lcao;)Ljava/lang/Iterable;
-