Package net.minecraft.world.chunk
Class AbstractChunkProvider
- java.lang.Object
-
- net.minecraft.world.chunk.AbstractChunkProvider
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IChunkLightProvider
- Direct Known Subclasses:
ClientChunkProvider
,ServerChunkProvider
public abstract class AbstractChunkProvider extends java.lang.Object implements IChunkLightProvider, java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description AbstractChunkProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
abstract java.lang.String
gatherStats()
Chunk
getChunk(int p_217205_1_, int p_217205_2_, boolean p_217205_3_)
abstract IChunk
getChunk(int p_212849_1_, int p_212849_2_, ChunkStatus p_212849_3_, boolean p_212849_4_)
IBlockReader
getChunkForLighting(int p_217202_1_, int p_217202_2_)
Chunk
getChunkNow(int p_225313_1_, int p_225313_2_)
abstract WorldLightManager
getLightEngine()
boolean
hasChunk(int p_73149_1_, int p_73149_2_)
boolean
isEntityTickingChunk(Entity p_217204_1_)
boolean
isEntityTickingChunk(ChunkPos p_222865_1_)
boolean
isTickingChunk(BlockPos p_222866_1_)
void
setSpawnSettings(boolean p_217203_1_, boolean p_217203_2_)
void
updateChunkForced(ChunkPos p_217206_1_, boolean p_217206_2_)
-
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.IChunkLightProvider
getLevel, onLightUpdate
-
-
-
-
Method Detail
-
getChunk
@Nullable public Chunk getChunk(int p_217205_1_, int p_217205_2_, boolean p_217205_3_)
-
getChunkNow
@Nullable public Chunk getChunkNow(int p_225313_1_, int p_225313_2_)
-
getChunkForLighting
@Nullable public IBlockReader getChunkForLighting(int p_217202_1_, int p_217202_2_)
- Specified by:
getChunkForLighting
in interfaceIChunkLightProvider
-
hasChunk
public boolean hasChunk(int p_73149_1_, int p_73149_2_)
-
getChunk
@Nullable public abstract IChunk getChunk(int p_212849_1_, int p_212849_2_, ChunkStatus p_212849_3_, boolean p_212849_4_)
-
gatherStats
public abstract java.lang.String gatherStats()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.io.IOException
-
getLightEngine
public abstract WorldLightManager getLightEngine()
-
setSpawnSettings
public void setSpawnSettings(boolean p_217203_1_, boolean p_217203_2_)
-
updateChunkForced
public void updateChunkForced(ChunkPos p_217206_1_, boolean p_217206_2_)
-
isEntityTickingChunk
public boolean isEntityTickingChunk(Entity p_217204_1_)
-
isEntityTickingChunk
public boolean isEntityTickingChunk(ChunkPos p_222865_1_)
-
isTickingChunk
public boolean isTickingChunk(BlockPos p_222866_1_)
-
-