YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.world.gen.ChunkProviderServer Class Reference
Inheritance diagram for net.minecraft.world.gen.ChunkProviderServer:
net.minecraft.world.chunk.IChunkProvider

Public Member Functions

 ChunkProviderServer (WorldServer par1WorldServer, IChunkLoader par2IChunkLoader, IChunkProvider par3IChunkProvider)
 
boolean chunkExists (int par1, int par2)
 
void unloadChunksIfNotNearSpawn (int par1, int par2)
 
void unloadAllChunks ()
 
Chunk loadChunk (int par1, int par2)
 
Chunk provideChunk (int par1, int par2)
 
void populate (IChunkProvider par1IChunkProvider, int par2, int par3)
 
boolean saveChunks (boolean par1, IProgressUpdate par2IProgressUpdate)
 
void func_104112_b ()
 
boolean unloadQueuedChunks ()
 
boolean canSave ()
 
String makeString ()
 
List getPossibleCreatures (EnumCreatureType par1EnumCreatureType, int par2, int par3, int par4)
 
ChunkPosition findClosestStructure (World par1World, String par2Str, int par3, int par4, int par5)
 
int getLoadedChunkCount ()
 
void recreateStructures (int par1, int par2)
 

Public Attributes

IChunkLoader currentChunkLoader
 
boolean loadChunkOnProvideRequest = true
 

Constructor & Destructor Documentation

net.minecraft.world.gen.ChunkProviderServer.ChunkProviderServer ( WorldServer  par1WorldServer,
IChunkLoader  par2IChunkLoader,
IChunkProvider  par3IChunkProvider 
)

Member Function Documentation

boolean net.minecraft.world.gen.ChunkProviderServer.canSave ( )

Returns if the IChunkProvider supports saving.

Implements net.minecraft.world.chunk.IChunkProvider.

boolean net.minecraft.world.gen.ChunkProviderServer.chunkExists ( int  par1,
int  par2 
)

Checks to see if a chunk exists at x, y

Implements net.minecraft.world.chunk.IChunkProvider.

ChunkPosition net.minecraft.world.gen.ChunkProviderServer.findClosestStructure ( World  par1World,
String  par2Str,
int  par3,
int  par4,
int  par5 
)

Returns the location of the closest structure of the specified type. If not found returns null.

Implements net.minecraft.world.chunk.IChunkProvider.

void net.minecraft.world.gen.ChunkProviderServer.func_104112_b ( )
int net.minecraft.world.gen.ChunkProviderServer.getLoadedChunkCount ( )
List net.minecraft.world.gen.ChunkProviderServer.getPossibleCreatures ( EnumCreatureType  par1EnumCreatureType,
int  par2,
int  par3,
int  par4 
)

Returns a list of creatures of the specified type that can spawn at the given location.

Implements net.minecraft.world.chunk.IChunkProvider.

Chunk net.minecraft.world.gen.ChunkProviderServer.loadChunk ( int  par1,
int  par2 
)

loads or generates the chunk at the chunk location specified

Implements net.minecraft.world.chunk.IChunkProvider.

String net.minecraft.world.gen.ChunkProviderServer.makeString ( )

Converts the instance data to a readable string.

Implements net.minecraft.world.chunk.IChunkProvider.

void net.minecraft.world.gen.ChunkProviderServer.populate ( IChunkProvider  par1IChunkProvider,
int  par2,
int  par3 
)

Populates chunk with ores etc etc

Implements net.minecraft.world.chunk.IChunkProvider.

Chunk net.minecraft.world.gen.ChunkProviderServer.provideChunk ( int  par1,
int  par2 
)

Will return back a chunk, if it doesn't exist and its not a MP client it will generates all the blocks for the specified chunk from the map seed and chunk seed

Implements net.minecraft.world.chunk.IChunkProvider.

void net.minecraft.world.gen.ChunkProviderServer.recreateStructures ( int  par1,
int  par2 
)
boolean net.minecraft.world.gen.ChunkProviderServer.saveChunks ( boolean  par1,
IProgressUpdate  par2IProgressUpdate 
)

Two modes of operation: if passed true, save all Chunks in one go. If passed false, save up to two chunks. Return true if all chunks have been saved.

Implements net.minecraft.world.chunk.IChunkProvider.

void net.minecraft.world.gen.ChunkProviderServer.unloadAllChunks ( )

marks all chunks for unload, ignoring those near the spawn

void net.minecraft.world.gen.ChunkProviderServer.unloadChunksIfNotNearSpawn ( int  par1,
int  par2 
)

marks chunk for unload by "unload100OldestChunks" if there is no spawn point, or if the center of the chunk is outside 200 blocks (x or z) of the spawn

boolean net.minecraft.world.gen.ChunkProviderServer.unloadQueuedChunks ( )

Unloads chunks that are marked to be unloaded. This is not guaranteed to unload every such chunk.

Implements net.minecraft.world.chunk.IChunkProvider.

Member Data Documentation

IChunkLoader net.minecraft.world.gen.ChunkProviderServer.currentChunkLoader
boolean net.minecraft.world.gen.ChunkProviderServer.loadChunkOnProvideRequest = true

if this is false, the defaultEmptyChunk will be returned by the provider


The documentation for this class was generated from the following file: