Class CachingChunkBlockSource<T>
java.lang.Object
net.citizensnpcs.api.astar.pathfinder.BlockSource
net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource<T>
- Direct Known Subclasses:
AsyncChunkSnapshotBlockSource
,ChunkBlockSource
,ChunkSnapshotBlockSource
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
CachingChunkBlockSource
(Location location, float radius) protected
CachingChunkBlockSource
(World world, int x, int z, float radius) protected
CachingChunkBlockSource
(World world, int minX, int minZ, int maxX, int maxZ) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
getChunkObject
(int x, int z) getCollisionBox
(int x, int y, int z) protected abstract BoundingBox
getCollisionBox
(T chunk, int x, int y, int z) protected abstract int
getLightLevel
(T chunk, int x, int y, int z) getMaterialAt
(int x, int y, int z) protected abstract Material
getWorld()
Methods inherited from class net.citizensnpcs.api.astar.pathfinder.BlockSource
getBlockAt, getBlockAt, getCollisionBox, getMaterialAt
-
Field Details
-
world
-
-
Constructor Details
-
CachingChunkBlockSource
-
CachingChunkBlockSource
-
CachingChunkBlockSource
-
-
Method Details
-
getChunkObject
-
getCollisionBox
- Specified by:
getCollisionBox
in classBlockSource
-
getCollisionBox
-
getLightLevel
-
getMaterialAt
- Specified by:
getMaterialAt
in classBlockSource
-
getType
-
getWorld
- Specified by:
getWorld
in classBlockSource
-