public class LandPathNodeMaker extends PathNodeMaker
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.longs.Long2ObjectMap<PathNodeType> |
field_25190 |
private it.unimi.dsi.fastutil.objects.Object2BooleanMap<Box> |
field_25191 |
protected float |
waterPathNodeTypeWeight |
cachedWorld, canEnterOpenDoors, canOpenDoors, canSwim, entity, entityBlockXSize, entityBlockYSize, entityBlockZSize, pathNodeCache
Constructor and Description |
---|
LandPathNodeMaker() |
Modifier and Type | Method and Description |
---|---|
protected PathNodeType |
adjustNodeType(BlockView world,
boolean canOpenDoors,
boolean canEnterOpenDoors,
BlockPos pos,
PathNodeType type) |
void |
clear() |
PathNodeType |
findNearbyNodeTypes(BlockView world,
int x,
int y,
int z,
int sizeX,
int sizeY,
int sizeZ,
boolean canOpenDoors,
boolean canEnterOpenDoors,
EnumSet<PathNodeType> nearbyTypes,
PathNodeType type,
BlockPos pos)
Adds the node types in the box with the given size to the input EnumSet.
|
protected static PathNodeType |
getCommonNodeType(BlockView blockView,
BlockPos blockPos) |
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
|
static double |
getFeetY(BlockView world,
BlockPos pos) |
static PathNodeType |
getLandNodeType(BlockView blockView,
BlockPos.Mutable mutable) |
TargetPathNode |
getNode(double x,
double y,
double z) |
PathNodeType |
getNodeType(BlockView world,
int x,
int y,
int z,
MobEntity mob,
int sizeX,
int sizeY,
int sizeZ,
boolean canOpenDoors,
boolean canEnterOpenDoors) |
private PathNodeType |
getNodeType(MobEntity entity,
BlockPos pos) |
static PathNodeType |
getNodeTypeFromNeighbors(BlockView blockView,
BlockPos.Mutable mutable,
PathNodeType pathNodeType) |
private PathNode |
getPathNode(int x,
int y,
int z,
int maxYStep,
double prevFeetY,
Direction direction,
PathNodeType pathNodeType) |
PathNode |
getStart() |
int |
getSuccessors(PathNode[] successors,
PathNode node) |
void |
init(ChunkCache cachedWorld,
MobEntity entity) |
private boolean |
isValidDiagonalSuccessor(PathNode node,
PathNode successor1) |
private static boolean |
method_27138(BlockState blockState) |
private boolean |
method_27139(BlockPos blockPos) |
private PathNodeType |
method_29303(MobEntity mobEntity,
int int2,
int int3,
int int4) |
private boolean |
method_29304(Box box) |
private boolean |
method_29578(PathNode pathNode) |
private boolean |
method_29579(PathNode pathNode,
PathNode pathNode2,
PathNode pathNode3,
PathNode pathNode4) |
canEnterOpenDoors, canOpenDoors, canSwim, getNode, method_27137, setCanEnterOpenDoors, setCanOpenDoors, setCanSwim
protected float waterPathNodeTypeWeight
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<PathNodeType> field_25190
private final it.unimi.dsi.fastutil.objects.Object2BooleanMap<Box> field_25191
public void init(ChunkCache cachedWorld, MobEntity entity)
init
in class PathNodeMaker
public void clear()
clear
in class PathNodeMaker
public PathNode getStart()
getStart
in class PathNodeMaker
private boolean method_27139(BlockPos blockPos)
public TargetPathNode getNode(double x, double y, double z)
getNode
in class PathNodeMaker
public int getSuccessors(PathNode[] successors, PathNode node)
getSuccessors
in class PathNodeMaker
private boolean isValidDiagonalSuccessor(PathNode node, PathNode successor1)
private boolean method_29579(PathNode pathNode, @Nullable PathNode pathNode2, @Nullable PathNode pathNode3, @Nullable PathNode pathNode4)
private boolean method_29578(PathNode pathNode)
@Nullable private PathNode getPathNode(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType pathNodeType)
private boolean method_29304(Box box)
public PathNodeType getNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)
getNodeType
in class PathNodeMaker
public PathNodeType findNearbyNodeTypes(BlockView world, int x, int y, int z, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors, EnumSet<PathNodeType> nearbyTypes, PathNodeType type, BlockPos pos)
protected PathNodeType adjustNodeType(BlockView world, boolean canOpenDoors, boolean canEnterOpenDoors, BlockPos pos, PathNodeType type)
private PathNodeType getNodeType(MobEntity entity, BlockPos pos)
private PathNodeType method_29303(MobEntity mobEntity, int int2, int int3, int int4)
public PathNodeType getDefaultNodeType(BlockView world, int x, int y, int z)
getDefaultNodeType
in class PathNodeMaker
public static PathNodeType getLandNodeType(BlockView blockView, BlockPos.Mutable mutable)
public static PathNodeType getNodeTypeFromNeighbors(BlockView blockView, BlockPos.Mutable mutable, PathNodeType pathNodeType)
protected static PathNodeType getCommonNodeType(BlockView blockView, BlockPos blockPos)
private static boolean method_27138(BlockState blockState)