public class ChunkProviderServer extends java.lang.Object implements IChunkProvider
Modifier and Type | Field and Description |
---|---|
IChunkGenerator |
chunkGenerator |
IChunkLoader |
chunkLoader |
it.unimi.dsi.fastutil.longs.Long2ObjectMap<Chunk> |
id2ChunkMap |
WorldServer |
worldObj |
Constructor and Description |
---|
ChunkProviderServer(WorldServer worldObjIn,
IChunkLoader chunkLoaderIn,
IChunkGenerator chunkGeneratorIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
canSave() |
boolean |
chunkExists(int x,
int z) |
Chunk |
getLoadedChunk(int x,
int z) |
int |
getLoadedChunkCount() |
java.util.Collection<Chunk> |
getLoadedChunks() |
java.util.List<Biome.SpawnListEntry> |
getPossibleCreatures(EnumCreatureType creatureType,
BlockPos pos) |
BlockPos |
getStrongholdGen(World worldIn,
java.lang.String structureName,
BlockPos position) |
Chunk |
loadChunk(int x,
int z) |
Chunk |
loadChunk(int X,
int Z,
java.lang.Runnable runnable) |
java.lang.String |
makeString() |
Chunk |
originalLoadChunk(int x,
int z) |
Chunk |
provideChunk(int x,
int z) |
boolean |
saveChunks(boolean p_186027_1_) |
void |
saveExtraData() |
void |
unload(Chunk chunkIn) |
void |
unloadAllChunks() |
boolean |
unloadQueuedChunks() |
public final IChunkGenerator chunkGenerator
public final IChunkLoader chunkLoader
public final it.unimi.dsi.fastutil.longs.Long2ObjectMap<Chunk> id2ChunkMap
public final WorldServer worldObj
public ChunkProviderServer(WorldServer worldObjIn, IChunkLoader chunkLoaderIn, IChunkGenerator chunkGeneratorIn)
public java.util.Collection<Chunk> getLoadedChunks()
public void unload(Chunk chunkIn)
public void unloadAllChunks()
@Nullable public Chunk getLoadedChunk(int x, int z)
getLoadedChunk
in interface IChunkProvider
@Nullable public Chunk loadChunk(int x, int z)
@Nullable public Chunk loadChunk(int X, int Z, java.lang.Runnable runnable)
public Chunk originalLoadChunk(int x, int z)
public Chunk provideChunk(int x, int z)
provideChunk
in interface IChunkProvider
public boolean saveChunks(boolean p_186027_1_)
public void saveExtraData()
public boolean unloadQueuedChunks()
unloadQueuedChunks
in interface IChunkProvider
public boolean canSave()
public java.lang.String makeString()
makeString
in interface IChunkProvider
public java.util.List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos)
@Nullable public BlockPos getStrongholdGen(World worldIn, java.lang.String structureName, BlockPos position)
public int getLoadedChunkCount()
public boolean chunkExists(int x, int z)