Package net.minecraft.world.chunk
Class ChunkManager
java.lang.Object
net.minecraft.world.chunk.ChunkManager
- All Implemented Interfaces:
AutoCloseable,ChunkProvider
- Direct Known Subclasses:
ClientChunkManager,ServerChunkManager
public abstract class ChunkManager extends Object implements ChunkProvider, AutoCloseable
-
Constructor Summary
Constructors Constructor Description ChunkManager() -
Method Summary
Modifier and Type Method Description voidclose()BlockViewgetChunk(int chunkX, int chunkZ)abstract ChunkgetChunk(int x, int z, ChunkStatus leastStatus, boolean create)abstract StringgetDebugString()abstract LightingProvidergetLightingProvider()WorldChunkgetWorldChunk(int chunkX, int chunkZ)WorldChunkgetWorldChunk(int chunkX, int chunkZ, boolean create)booleanisChunkLoaded(int x, int z)voidsetChunkForced(ChunkPos pos, boolean forced)voidsetMobSpawnOptions(boolean spawnMonsters, boolean spawnAnimals)booleanshouldTickBlock(BlockPos pos)booleanshouldTickChunk(ChunkPos pos)booleanshouldTickEntity(Entity entity)
-
Constructor Details
-
ChunkManager
public ChunkManager()
-
-
Method Details
-
getWorldChunk
-
getWorldChunk
-
getChunk
- Specified by:
getChunkin interfaceChunkProvider
-
isChunkLoaded
public boolean isChunkLoaded(int x, int z) -
getChunk
-
getDebugString
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
getLightingProvider
-
setMobSpawnOptions
public void setMobSpawnOptions(boolean spawnMonsters, boolean spawnAnimals) -
setChunkForced
-
shouldTickEntity
-
shouldTickChunk
-
shouldTickBlock
-