Package net.minecraft.entity.ai.pathing
Class AmphibiousPathNodeMaker
java.lang.Object
net.minecraft.entity.ai.pathing.PathNodeMaker
net.minecraft.entity.ai.pathing.LandPathNodeMaker
net.minecraft.entity.ai.pathing.AmphibiousPathNodeMaker
- Direct Known Subclasses:
FrogEntity.FrogSwimPathNodeMaker
- Mappings:
Namespace Name official dpiintermediary net/minecraft/class_15named net/minecraft/entity/ai/pathing/AmphibiousPathNodeMaker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate floatprivate final booleanFields inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
waterPathNodeTypeWeight, Y_OFFSETFields 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 TypeMethodDescriptionvoidclear()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 doublegetNode(double x, double y, double z) getStart()intgetSuccessors(PathNode[] successors, PathNode node) voidinit(ChunkCache cachedWorld, MobEntity entity) protected booleanprivate booleanisValidAquaticAdjacentSuccessor(@Nullable PathNode node, PathNode successor) Methods inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
adjustNodeType, findNearbyNodeTypes, getCommonNodeType, getFeetY, getLandNodeType, getNodeType, getNodeType, getNodeTypeFromNeighbors, getPathNode, getStart, inflictsFireDamage, isValidAdjacentSuccessor, isValidDiagonalSuccessorMethods inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
asTargetPathNode, canEnterOpenDoors, canOpenDoors, canSwim, getNode, getNode, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
-
Field Details
-
penalizeDeepWater
private final boolean penalizeDeepWater- Mappings:
Namespace Name Mixin selector official lLdpi;l:Zintermediary field_28358Lnet/minecraft/class_15;field_28358:Znamed penalizeDeepWaterLnet/minecraft/entity/ai/pathing/AmphibiousPathNodeMaker;penalizeDeepWater:Z
-
oldWalkablePenalty
private float oldWalkablePenalty- Mappings:
Namespace Name Mixin selector official mLdpi;m:Fintermediary field_65Lnet/minecraft/class_15;field_65:Fnamed oldWalkablePenaltyLnet/minecraft/entity/ai/pathing/AmphibiousPathNodeMaker;oldWalkablePenalty:F
-
oldWaterBorderPenalty
private float oldWaterBorderPenalty- Mappings:
Namespace Name Mixin selector official nLdpi;n:Fintermediary field_64Lnet/minecraft/class_15;field_64:Fnamed oldWaterBorderPenaltyLnet/minecraft/entity/ai/pathing/AmphibiousPathNodeMaker;oldWaterBorderPenalty:F
-
-
Constructor Details
-
AmphibiousPathNodeMaker
public AmphibiousPathNodeMaker(boolean penalizeDeepWater) - Mappings:
Namespace Name Mixin selector official <init>Ldpi;<init>(Z)Vintermediary <init>Lnet/minecraft/class_15;<init>(Z)Vnamed <init>Lnet/minecraft/entity/ai/pathing/AmphibiousPathNodeMaker;<init>(Z)V
-
-
Method Details
-
init
- Overrides:
initin classLandPathNodeMaker- 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 classLandPathNodeMaker- 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
- Overrides:
getStartin classLandPathNodeMaker- 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;
-
getNode
- Overrides:
getNodein classLandPathNodeMaker- 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
- Overrides:
getSuccessorsin classLandPathNodeMaker- 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
-
isValidAquaticAdjacentSuccessor
private boolean isValidAquaticAdjacentSuccessor(@Nullable @Nullable PathNode node, PathNode successor) - Mappings:
Namespace Name Mixin selector official bLdpi;b(Ldpm;Ldpm;)Zintermediary method_43413Lnet/minecraft/class_15;method_43413(Lnet/minecraft/class_9;Lnet/minecraft/class_9;)Znamed isValidAquaticAdjacentSuccessorLnet/minecraft/entity/ai/pathing/AmphibiousPathNodeMaker;isValidAquaticAdjacentSuccessor(Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)Z
-
getFeetY
- Overrides:
getFeetYin classLandPathNodeMaker- 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
-
isAmphibious
protected boolean isAmphibious()- Overrides:
isAmphibiousin classLandPathNodeMaker- 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
-
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 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;
-