public abstract class ChunkManager extends Object implements ChunkProvider, AutoCloseable
Constructor and Description |
---|
ChunkManager() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
BlockView |
getChunk(int chunkX,
int chunkZ) |
abstract Chunk |
getChunk(int x,
int z,
ChunkStatus leastStatus,
boolean create) |
abstract String |
getDebugString() |
abstract LightingProvider |
getLightingProvider() |
WorldChunk |
getWorldChunk(int chunkX,
int chunkZ) |
WorldChunk |
getWorldChunk(int chunkX,
int chunkZ,
boolean create) |
boolean |
isChunkLoaded(int x,
int z) |
void |
setChunkForced(ChunkPos pos,
boolean forced) |
void |
setMobSpawnOptions(boolean spawnMonsters,
boolean spawnAnimals) |
boolean |
shouldTickBlock(BlockPos pos) |
boolean |
shouldTickChunk(ChunkPos pos) |
boolean |
shouldTickEntity(Entity entity) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWorld, onLightUpdate
@Nullable public WorldChunk getWorldChunk(int chunkX, int chunkZ, boolean create)
@Nullable public WorldChunk getWorldChunk(int chunkX, int chunkZ)
@Nullable public BlockView getChunk(int chunkX, int chunkZ)
getChunk
in interface ChunkProvider
public boolean isChunkLoaded(int x, int z)
@Nullable public abstract Chunk getChunk(int x, int z, ChunkStatus leastStatus, boolean create)
public abstract String getDebugString()
public void close() throws IOException
close
in interface AutoCloseable
IOException
public abstract LightingProvider getLightingProvider()
public void setMobSpawnOptions(boolean spawnMonsters, boolean spawnAnimals)
public void setChunkForced(ChunkPos pos, boolean forced)
public boolean shouldTickEntity(Entity entity)
public boolean shouldTickChunk(ChunkPos pos)
public boolean shouldTickBlock(BlockPos pos)