public class ChunkProviderClient extends java.lang.Object implements IChunkProvider
Modifier and Type | Field and Description |
---|---|
private Chunk |
blankChunk |
private it.unimi.dsi.fastutil.longs.Long2ObjectMap<Chunk> |
chunkMapping |
private static org.apache.logging.log4j.Logger |
LOGGER |
private World |
world |
Constructor and Description |
---|
ChunkProviderClient(World worldIn) |
Modifier and Type | Method and Description |
---|---|
Chunk |
getLoadedChunk(int x,
int z) |
boolean |
isChunkGeneratedAt(int x,
int z) |
Chunk |
loadChunk(int chunkX,
int chunkZ) |
java.lang.String |
makeString() |
Chunk |
provideChunk(int x,
int z) |
boolean |
tick() |
void |
unloadChunk(int x,
int z) |
private static final org.apache.logging.log4j.Logger LOGGER
private final Chunk blankChunk
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<Chunk> chunkMapping
private final World world
public ChunkProviderClient(World worldIn)
public void unloadChunk(int x, int z)
@Nullable public Chunk getLoadedChunk(int x, int z)
getLoadedChunk
in interface IChunkProvider
public Chunk loadChunk(int chunkX, int chunkZ)
public Chunk provideChunk(int x, int z)
provideChunk
in interface IChunkProvider
public boolean tick()
tick
in interface IChunkProvider
public java.lang.String makeString()
makeString
in interface IChunkProvider
public boolean isChunkGeneratedAt(int x, int z)
isChunkGeneratedAt
in interface IChunkProvider