public class AmphibiousPathNodeMaker extends LandPathNodeMaker
Modifier and Type | Field and Description |
---|---|
private float |
oldWalkablePenalty |
private float |
oldWaterBorderPenalty |
waterPathNodeTypeWeight
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache
Constructor and Description |
---|
AmphibiousPathNodeMaker() |
Modifier and Type | Method and 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 doors
|
private 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) |
findNearbyNodeTypes, getCommonNodeType, getFeetY, getLandNodeType, getNodeType, getNodeTypeFromNeighbors
canEnterOpenDoors, canOpenDoors, canSwim, getNode, method_27137, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
private float oldWalkablePenalty
private float oldWaterBorderPenalty
public void init(ChunkCache cachedWorld, MobEntity entity)
init
in class LandPathNodeMaker
public void clear()
clear
in class LandPathNodeMaker
public PathNode getStart()
getStart
in class LandPathNodeMaker
public TargetPathNode getNode(double x, double y, double z)
getNode
in class LandPathNodeMaker
public int getSuccessors(PathNode[] successors, PathNode node)
getSuccessors
in class LandPathNodeMaker
private double getFeetY(BlockPos pos)
@Nullable private PathNode getPathNode(int x, int y, int z, int maxYStep, double prevFeetY)
protected PathNodeType adjustNodeType(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type)
adjustNodeType
in class LandPathNodeMaker
public PathNodeType getDefaultNodeType(BlockView world, int x, int y, int z)
getDefaultNodeType
in class LandPathNodeMaker