public class AmphibiousPathNodeMaker extends LandPathNodeMaker
| Modifier and Type | Field and Description |
|---|---|
private float |
oldWalkablePenalty |
private float |
oldWaterBorderPenalty |
waterPathNodeTypeWeightcachedWorld, 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, getNodeTypeFromNeighborscanEnterOpenDoors, canOpenDoors, canSwim, getNode, method_27137, setCanEnterOpenDoors, setCanOpenDoors, setCanSwimprivate float oldWalkablePenalty
private float oldWaterBorderPenalty
public void init(ChunkCache cachedWorld, MobEntity entity)
init in class LandPathNodeMakerpublic void clear()
clear in class LandPathNodeMakerpublic PathNode getStart()
getStart in class LandPathNodeMakerpublic TargetPathNode getNode(double x, double y, double z)
getNode in class LandPathNodeMakerpublic int getSuccessors(PathNode[] successors, PathNode node)
getSuccessors in class LandPathNodeMakerprivate 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 LandPathNodeMakerpublic PathNodeType getDefaultNodeType(BlockView world, int x, int y, int z)
getDefaultNodeType in class LandPathNodeMaker