public abstract class AbstractChunkProvider extends java.lang.Object implements IChunkLightProvider, java.lang.AutoCloseable
Constructor and Description |
---|
AbstractChunkProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
canTick(BlockPos pos) |
boolean |
chunkExists(int x,
int z) |
void |
close() |
void |
forceChunk(ChunkPos pos,
boolean add) |
Chunk |
getChunk(int chunkX,
int chunkZ,
boolean load) |
abstract IChunk |
getChunk(int chunkX,
int chunkZ,
ChunkStatus requiredStatus,
boolean load) |
IBlockReader |
getChunkForLight(int chunkX,
int chunkZ) |
Chunk |
getChunkWithoutLoading(int chunkX,
int chunkZ) |
abstract WorldLightManager |
getLightManager() |
boolean |
isChunkLoaded(ChunkPos pos) |
boolean |
isChunkLoaded(Entity entityIn) |
abstract java.lang.String |
makeString() |
void |
setAllowedSpawnTypes(boolean hostile,
boolean peaceful) |
abstract void |
tick(java.util.function.BooleanSupplier hasTimeLeft) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWorld, markLightChanged
@Nullable public Chunk getChunk(int chunkX, int chunkZ, boolean load)
@Nullable public Chunk getChunkWithoutLoading(int chunkX, int chunkZ)
@Nullable public IBlockReader getChunkForLight(int chunkX, int chunkZ)
getChunkForLight
in interface IChunkLightProvider
public boolean chunkExists(int x, int z)
@Nullable public abstract IChunk getChunk(int chunkX, int chunkZ, ChunkStatus requiredStatus, boolean load)
public abstract void tick(java.util.function.BooleanSupplier hasTimeLeft)
public abstract java.lang.String makeString()
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
java.io.IOException
public abstract WorldLightManager getLightManager()
public void setAllowedSpawnTypes(boolean hostile, boolean peaceful)
public void forceChunk(ChunkPos pos, boolean add)
public boolean isChunkLoaded(Entity entityIn)
public boolean isChunkLoaded(ChunkPos pos)
public boolean canTick(BlockPos pos)