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 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)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.chunk.ChunkProvider
getWorld, onLightUpdate
-
Constructor Details
-
ChunkManager
public ChunkManager()
-
-
Method Details
-
getWorldChunk
-
getWorldChunk
-
getChunk
- Specified by:
getChunk
in interfaceChunkProvider
-
isChunkLoaded
public boolean isChunkLoaded(int x, int z) -
getChunk
-
getDebugString
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
getLightingProvider
-
setMobSpawnOptions
public void setMobSpawnOptions(boolean spawnMonsters, boolean spawnAnimals) -
setChunkForced
-
shouldTickEntity
-
shouldTickChunk
-
shouldTickBlock
-