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
public class AmphibiousPathNodeMaker extends LandPathNodeMaker
-
Field Summary
Fields Modifier and Type Field Description private float
oldWalkablePenalty
private float
oldWaterBorderPenalty
Fields inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
waterPathNodeTypeWeight
Fields inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache
-
Constructor Summary
Constructors Constructor Description AmphibiousPathNodeMaker()
-
Method Summary
Modifier and Type Method Description protected PathNodeType
adjustNodeType(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type)
void
clear()
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 doorsprivate double
getFeetY(BlockPos pos)
TargetPathNode
getNode(double x, double y, double z)
private PathNode
getPathNode(int x, int y, int z, int maxYStep, double prevFeetY)
PathNode
getStart()
int
getSuccessors(PathNode[] successors, PathNode node)
void
init(ChunkCache cachedWorld, MobEntity entity)
Methods inherited from class net.minecraft.entity.ai.pathing.LandPathNodeMaker
findNearbyNodeTypes, getCommonNodeType, getFeetY, getLandNodeType, getNodeType, getNodeTypeFromNeighbors
Methods inherited from class net.minecraft.entity.ai.pathing.PathNodeMaker
canEnterOpenDoors, canOpenDoors, canSwim, getNode, method_27137, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
-
Field Details
-
oldWalkablePenalty
private float oldWalkablePenalty -
oldWaterBorderPenalty
private float oldWaterBorderPenalty
-
-
Constructor Details
-
AmphibiousPathNodeMaker
public AmphibiousPathNodeMaker()
-
-
Method Details
-
init
- Overrides:
init
in classLandPathNodeMaker
-
clear
public void clear()- Overrides:
clear
in classLandPathNodeMaker
-
getStart
- Overrides:
getStart
in classLandPathNodeMaker
-
getNode
- Overrides:
getNode
in classLandPathNodeMaker
-
getSuccessors
- Overrides:
getSuccessors
in classLandPathNodeMaker
-
getFeetY
-
getPathNode
-
adjustNodeType
protected PathNodeType adjustNodeType(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type)- Overrides:
adjustNodeType
in classLandPathNodeMaker
-
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
-