Package net.minecraft.world.chunk
Class AbstractChunkProvider
java.lang.Object
net.minecraft.world.chunk.AbstractChunkProvider
- All Implemented Interfaces:
AutoCloseable
,IChunkLightProvider
- Direct Known Subclasses:
ClientChunkProvider
,ServerChunkProvider
public abstract class AbstractChunkProvider
extends Object
implements IChunkLightProvider, AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
abstract String
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_) getChunkForLighting
(int p_217202_1_, int p_217202_2_) getChunkNow
(int p_225313_1_, int p_225313_2_) abstract WorldLightManager
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
-
Constructor Details
-
AbstractChunkProvider
public AbstractChunkProvider()
-
-
Method Details
-
getChunk
-
getChunkNow
-
getChunkForLighting
- 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
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
getLightEngine
-
setSpawnSettings
public void setSpawnSettings(boolean p_217203_1_, boolean p_217203_2_) -
updateChunkForced
-
isEntityTickingChunk
-
isEntityTickingChunk
-
isTickingChunk
-