public abstract class PathNodeMaker extends Object
Modifier and Type | Field and Description |
---|---|
protected ChunkCache |
cachedWorld |
protected boolean |
canEnterOpenDoors |
protected boolean |
canOpenDoors |
protected boolean |
canSwim |
protected MobEntity |
entity |
protected int |
entityBlockXSize |
protected int |
entityBlockYSize |
protected int |
entityBlockZSize |
protected it.unimi.dsi.fastutil.ints.Int2ObjectMap<PathNode> |
pathNodeCache |
Constructor and Description |
---|
PathNodeMaker() |
Modifier and Type | Method and Description |
---|---|
boolean |
canEnterOpenDoors() |
boolean |
canOpenDoors() |
boolean |
canSwim() |
void |
clear() |
abstract 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
|
abstract TargetPathNode |
getNode(double x,
double y,
double z) |
protected PathNode |
getNode(int x,
int y,
int z) |
abstract PathNodeType |
getNodeType(BlockView world,
int x,
int y,
int z,
MobEntity mob,
int sizeX,
int sizeY,
int sizeZ,
boolean canOpenDoors,
boolean canEnterOpenDoors) |
abstract PathNode |
getStart() |
abstract int |
getSuccessors(PathNode[] successors,
PathNode node) |
void |
init(ChunkCache cachedWorld,
MobEntity entity) |
protected PathNode |
method_27137(BlockPos blockPos) |
void |
setCanEnterOpenDoors(boolean canEnterOpenDoors) |
void |
setCanOpenDoors(boolean canOpenDoors) |
void |
setCanSwim(boolean canSwim) |
protected ChunkCache cachedWorld
protected MobEntity entity
protected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<PathNode> pathNodeCache
protected int entityBlockXSize
protected int entityBlockYSize
protected int entityBlockZSize
protected boolean canEnterOpenDoors
protected boolean canOpenDoors
protected boolean canSwim
public void init(ChunkCache cachedWorld, MobEntity entity)
public void clear()
protected PathNode getNode(int x, int y, int z)
public abstract PathNode getStart()
public abstract TargetPathNode getNode(double x, double y, double z)
public abstract PathNodeType getNodeType(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)
public abstract PathNodeType getDefaultNodeType(BlockView world, int x, int y, int z)
public void setCanEnterOpenDoors(boolean canEnterOpenDoors)
public void setCanOpenDoors(boolean canOpenDoors)
public void setCanSwim(boolean canSwim)
public boolean canEnterOpenDoors()
public boolean canOpenDoors()
public boolean canSwim()