YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.world.WorldServer Class Reference
Inheritance diagram for net.minecraft.world.WorldServer:
net.minecraft.world.World net.minecraft.world.IBlockAccess net.minecraft.world.demo.DemoWorldServer net.minecraft.world.WorldServerMulti

Public Member Functions

 WorldServer (MinecraftServer par1MinecraftServer, ISaveHandler par2ISaveHandler, String par3Str, int par4, WorldSettings par5WorldSettings, Profiler par6Profiler, ILogAgent par7ILogAgent)
 
void tick ()
 
SpawnListEntry spawnRandomCreature (EnumCreatureType par1EnumCreatureType, int par2, int par3, int par4)
 
void updateAllPlayersSleepingFlag ()
 
boolean areAllPlayersAsleep ()
 
void setSpawnLocation ()
 
boolean isBlockTickScheduled (int par1, int par2, int par3, int par4)
 
void scheduleBlockUpdate (int par1, int par2, int par3, int par4, int par5)
 
void func_82740_a (int par1, int par2, int par3, int par4, int par5, int par6)
 
void scheduleBlockUpdateFromLoad (int par1, int par2, int par3, int par4, int par5, int par6)
 
void updateEntities ()
 
void resetUpdateEntityTick ()
 
boolean tickUpdates (boolean par1)
 
List getPendingBlockUpdates (Chunk par1Chunk, boolean par2)
 
void updateEntityWithOptionalForce (Entity par1Entity, boolean par2)
 
void uncheckedUpdateEntity (Entity par1Entity, boolean par2)
 
List getAllTileEntityInBox (int par1, int par2, int par3, int par4, int par5, int par6)
 
boolean canMineBlock (EntityPlayer par1EntityPlayer, int par2, int par3, int par4)
 
boolean canMineBlockBody (EntityPlayer par1EntityPlayer, int par2, int par3, int par4)
 
ChunkCoordinates getEntrancePortalLocation ()
 
void saveAllChunks (boolean par1, IProgressUpdate par2IProgressUpdate) throws MinecraftException
 
void func_104140_m ()
 
void releaseEntitySkin (Entity par1Entity)
 
Entity getEntityByID (int par1)
 
boolean addWeatherEffect (Entity par1Entity)
 
void setEntityState (Entity par1Entity, byte par2)
 
Explosion newExplosion (Entity par1Entity, double par2, double par4, double par6, float par8, boolean par9, boolean par10)
 
void addBlockEvent (int par1, int par2, int par3, int par4, int par5, int par6)
 
void flush ()
 
MinecraftServer getMinecraftServer ()
 
EntityTracker getEntityTracker ()
 
PlayerManager getPlayerManager ()
 
Teleporter getDefaultTeleporter ()
 
File getChunkSaveLocation ()
 
- Public Member Functions inherited from net.minecraft.world.World
BiomeGenBase getBiomeGenForCoords (int par1, int par2)
 
BiomeGenBase getBiomeGenForCoordsBody (int par1, int par2)
 
WorldChunkManager getWorldChunkManager ()
 
 World (ISaveHandler par1ISaveHandler, String par2Str, WorldProvider par3WorldProvider, WorldSettings par4WorldSettings, Profiler par5Profiler, ILogAgent par6ILogAgent)
 
 World (ISaveHandler par1ISaveHandler, String par2Str, WorldSettings par3WorldSettings, WorldProvider par4WorldProvider, Profiler par5Profiler, ILogAgent par6ILogAgent)
 
void setSpawnLocation ()
 
int getFirstUncoveredBlock (int par1, int par2)
 
int getBlockId (int par1, int par2, int par3)
 
boolean isAirBlock (int par1, int par2, int par3)
 
boolean blockHasTileEntity (int par1, int par2, int par3)
 
int blockGetRenderType (int par1, int par2, int par3)
 
boolean blockExists (int par1, int par2, int par3)
 
boolean doChunksNearChunkExist (int par1, int par2, int par3, int par4)
 
boolean checkChunksExist (int par1, int par2, int par3, int par4, int par5, int par6)
 
Chunk getChunkFromBlockCoords (int par1, int par2)
 
Chunk getChunkFromChunkCoords (int par1, int par2)
 
boolean setBlock (int par1, int par2, int par3, int par4, int par5, int par6)
 
Material getBlockMaterial (int par1, int par2, int par3)
 
int getBlockMetadata (int par1, int par2, int par3)
 
boolean setBlockMetadataWithNotify (int par1, int par2, int par3, int par4, int par5)
 
boolean setBlockToAir (int par1, int par2, int par3)
 
boolean destroyBlock (int par1, int par2, int par3, boolean par4)
 
boolean setBlock (int par1, int par2, int par3, int par4)
 
void markBlockForUpdate (int par1, int par2, int par3)
 
void notifyBlockChange (int par1, int par2, int par3, int par4)
 
void markBlocksDirtyVertical (int par1, int par2, int par3, int par4)
 
void markBlockRangeForRenderUpdate (int par1, int par2, int par3, int par4, int par5, int par6)
 
void notifyBlocksOfNeighborChange (int par1, int par2, int par3, int par4)
 
void notifyBlocksOfNeighborChange (int par1, int par2, int par3, int par4, int par5)
 
void notifyBlockOfNeighborChange (int par1, int par2, int par3, int par4)
 
boolean isBlockTickScheduled (int par1, int par2, int par3, int par4)
 
boolean canBlockSeeTheSky (int par1, int par2, int par3)
 
int getFullBlockLightValue (int par1, int par2, int par3)
 
int getBlockLightValue (int par1, int par2, int par3)
 
int getBlockLightValue_do (int par1, int par2, int par3, boolean par4)
 
int getHeightValue (int par1, int par2)
 
int getChunkHeightMapMinimum (int par1, int par2)
 
int getSkyBlockTypeBrightness (EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4)
 
int getSavedLightValue (EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4)
 
void setLightValue (EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4, int par5)
 
void markBlockForRenderUpdate (int par1, int par2, int par3)
 
int getLightBrightnessForSkyBlocks (int par1, int par2, int par3, int par4)
 
float getBrightness (int par1, int par2, int par3, int par4)
 
float getLightBrightness (int par1, int par2, int par3)
 
boolean isDaytime ()
 
MovingObjectPosition rayTraceBlocks (Vec3 par1Vec3, Vec3 par2Vec3)
 
MovingObjectPosition rayTraceBlocks_do (Vec3 par1Vec3, Vec3 par2Vec3, boolean par3)
 
MovingObjectPosition rayTraceBlocks_do_do (Vec3 par1Vec3, Vec3 par2Vec3, boolean par3, boolean par4)
 
void playSoundAtEntity (Entity par1Entity, String par2Str, float par3, float par4)
 
void playSoundToNearExcept (EntityPlayer par1EntityPlayer, String par2Str, float par3, float par4)
 
void playSoundEffect (double par1, double par3, double par5, String par7Str, float par8, float par9)
 
void playSound (double par1, double par3, double par5, String par7Str, float par8, float par9, boolean par10)
 
void playRecord (String par1Str, int par2, int par3, int par4)
 
void spawnParticle (String par1Str, double par2, double par4, double par6, double par8, double par10, double par12)
 
boolean addWeatherEffect (Entity par1Entity)
 
boolean spawnEntityInWorld (Entity par1Entity)
 
void releaseEntitySkin (Entity par1Entity)
 
void removeEntity (Entity par1Entity)
 
void removePlayerEntityDangerously (Entity par1Entity)
 
void addWorldAccess (IWorldAccess par1IWorldAccess)
 
List getCollidingBoundingBoxes (Entity par1Entity, AxisAlignedBB par2AxisAlignedBB)
 
List getCollidingBlockBounds (AxisAlignedBB par1AxisAlignedBB)
 
int calculateSkylightSubtracted (float par1)
 
void removeWorldAccess (IWorldAccess par1IWorldAccess)
 
float getSunBrightness (float par1)
 
Vec3 getSkyColor (Entity par1Entity, float par2)
 
Vec3 getSkyColorBody (Entity par1Entity, float par2)
 
float getCelestialAngle (float par1)
 
int getMoonPhase ()
 
float getCelestialAngleRadians (float par1)
 
Vec3 getCloudColour (float par1)
 
Vec3 drawCloudsBody (float par1)
 
Vec3 getFogColor (float par1)
 
int getPrecipitationHeight (int par1, int par2)
 
int getTopSolidOrLiquidBlock (int par1, int par2)
 
float getStarBrightness (float par1)
 
float getStarBrightnessBody (float par1)
 
void scheduleBlockUpdate (int par1, int par2, int par3, int par4, int par5)
 
void func_82740_a (int par1, int par2, int par3, int par4, int par5, int par6)
 
void scheduleBlockUpdateFromLoad (int par1, int par2, int par3, int par4, int par5, int par6)
 
void updateEntities ()
 
void addTileEntity (Collection par1Collection)
 
void updateEntity (Entity par1Entity)
 
void updateEntityWithOptionalForce (Entity par1Entity, boolean par2)
 
boolean checkNoEntityCollision (AxisAlignedBB par1AxisAlignedBB)
 
boolean checkNoEntityCollision (AxisAlignedBB par1AxisAlignedBB, Entity par2Entity)
 
boolean checkBlockCollision (AxisAlignedBB par1AxisAlignedBB)
 
boolean isAnyLiquid (AxisAlignedBB par1AxisAlignedBB)
 
boolean isBoundingBoxBurning (AxisAlignedBB par1AxisAlignedBB)
 
boolean handleMaterialAcceleration (AxisAlignedBB par1AxisAlignedBB, Material par2Material, Entity par3Entity)
 
boolean isMaterialInBB (AxisAlignedBB par1AxisAlignedBB, Material par2Material)
 
boolean isAABBInMaterial (AxisAlignedBB par1AxisAlignedBB, Material par2Material)
 
Explosion createExplosion (Entity par1Entity, double par2, double par4, double par6, float par8, boolean par9)
 
Explosion newExplosion (Entity par1Entity, double par2, double par4, double par6, float par8, boolean par9, boolean par10)
 
float getBlockDensity (Vec3 par1Vec3, AxisAlignedBB par2AxisAlignedBB)
 
boolean extinguishFire (EntityPlayer par1EntityPlayer, int par2, int par3, int par4, int par5)
 
String getDebugLoadedEntities ()
 
String getProviderName ()
 
TileEntity getBlockTileEntity (int par1, int par2, int par3)
 
void setBlockTileEntity (int par1, int par2, int par3, TileEntity par4TileEntity)
 
void removeBlockTileEntity (int par1, int par2, int par3)
 
void markTileEntityForDespawn (TileEntity par1TileEntity)
 
boolean isBlockOpaqueCube (int par1, int par2, int par3)
 
boolean isBlockNormalCube (int par1, int par2, int par3)
 
boolean func_85174_u (int par1, int par2, int par3)
 
boolean doesBlockHaveSolidTopSurface (int par1, int par2, int par3)
 
boolean isBlockTopFacingSurfaceSolid (Block par1Block, int par2)
 
boolean isBlockNormalCubeDefault (int par1, int par2, int par3, boolean par4)
 
void calculateInitialSkylight ()
 
void setAllowedSpawnTypes (boolean par1, boolean par2)
 
void tick ()
 
void calculateInitialWeatherBody ()
 
void updateWeatherBody ()
 
void toggleRain ()
 
boolean isBlockFreezable (int par1, int par2, int par3)
 
boolean isBlockFreezableNaturally (int par1, int par2, int par3)
 
boolean canBlockFreeze (int par1, int par2, int par3, boolean par4)
 
boolean canBlockFreezeBody (int par1, int par2, int par3, boolean par4)
 
boolean canSnowAt (int par1, int par2, int par3)
 
boolean canSnowAtBody (int par1, int par2, int par3)
 
void updateAllLightTypes (int par1, int par2, int par3)
 
void updateLightByType (EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4)
 
boolean tickUpdates (boolean par1)
 
List getPendingBlockUpdates (Chunk par1Chunk, boolean par2)
 
List getEntitiesWithinAABBExcludingEntity (Entity par1Entity, AxisAlignedBB par2AxisAlignedBB)
 
List getEntitiesWithinAABBExcludingEntity (Entity par1Entity, AxisAlignedBB par2AxisAlignedBB, IEntitySelector par3IEntitySelector)
 
List getEntitiesWithinAABB (Class par1Class, AxisAlignedBB par2AxisAlignedBB)
 
List selectEntitiesWithinAABB (Class par1Class, AxisAlignedBB par2AxisAlignedBB, IEntitySelector par3IEntitySelector)
 
Entity findNearestEntityWithinAABB (Class par1Class, AxisAlignedBB par2AxisAlignedBB, Entity par3Entity)
 
List getLoadedEntityList ()
 
void updateTileEntityChunkAndDoNothing (int par1, int par2, int par3, TileEntity par4TileEntity)
 
int countEntities (Class par1Class)
 
void addLoadedEntities (List par1List)
 
void unloadEntities (List par1List)
 
boolean canPlaceEntityOnSide (int par1, int par2, int par3, int par4, boolean par5, int par6, Entity par7Entity, ItemStack par8ItemStack)
 
PathEntity getPathEntityToEntity (Entity par1Entity, Entity par2Entity, float par3, boolean par4, boolean par5, boolean par6, boolean par7)
 
PathEntity getEntityPathToXYZ (Entity par1Entity, int par2, int par3, int par4, float par5, boolean par6, boolean par7, boolean par8, boolean par9)
 
int isBlockProvidingPowerTo (int par1, int par2, int par3, int par4)
 
int getBlockPowerInput (int par1, int par2, int par3)
 
boolean getIndirectPowerOutput (int par1, int par2, int par3, int par4)
 
int getIndirectPowerLevelTo (int par1, int par2, int par3, int par4)
 
boolean isBlockIndirectlyGettingPowered (int par1, int par2, int par3)
 
int getStrongestIndirectPower (int par1, int par2, int par3)
 
EntityPlayer getClosestPlayerToEntity (Entity par1Entity, double par2)
 
EntityPlayer getClosestPlayer (double par1, double par3, double par5, double par7)
 
EntityPlayer getClosestVulnerablePlayerToEntity (Entity par1Entity, double par2)
 
EntityPlayer getClosestVulnerablePlayer (double par1, double par3, double par5, double par7)
 
EntityPlayer getPlayerEntityByName (String par1Str)
 
void sendQuittingDisconnectingPacket ()
 
void checkSessionLock () throws MinecraftException
 
void func_82738_a (long par1)
 
long getSeed ()
 
long getTotalWorldTime ()
 
long getWorldTime ()
 
void setWorldTime (long par1)
 
ChunkCoordinates getSpawnPoint ()
 
void setSpawnLocation (int par1, int par2, int par3)
 
void joinEntityInSurroundings (Entity par1Entity)
 
boolean canMineBlock (EntityPlayer par1EntityPlayer, int par2, int par3, int par4)
 
boolean canMineBlockBody (EntityPlayer par1EntityPlayer, int par2, int par3, int par4)
 
void setEntityState (Entity par1Entity, byte par2)
 
IChunkProvider getChunkProvider ()
 
void addBlockEvent (int par1, int par2, int par3, int par4, int par5, int par6)
 
ISaveHandler getSaveHandler ()
 
WorldInfo getWorldInfo ()
 
GameRules getGameRules ()
 
void updateAllPlayersSleepingFlag ()
 
float getWeightedThunderStrength (float par1)
 
float getRainStrength (float par1)
 
void setRainStrength (float par1)
 
boolean isThundering ()
 
boolean isRaining ()
 
boolean canLightningStrikeAt (int par1, int par2, int par3)
 
boolean isBlockHighHumidity (int par1, int par2, int par3)
 
void setItemData (String par1Str, WorldSavedData par2WorldSavedData)
 
WorldSavedData loadItemData (Class par1Class, String par2Str)
 
int getUniqueDataId (String par1Str)
 
void func_82739_e (int par1, int par2, int par3, int par4, int par5)
 
void playAuxSFX (int par1, int par2, int par3, int par4, int par5)
 
void playAuxSFXAtEntity (EntityPlayer par1EntityPlayer, int par2, int par3, int par4, int par5, int par6)
 
int getHeight ()
 
int getActualHeight ()
 
IUpdatePlayerListBox func_82735_a (EntityMinecart par1EntityMinecart)
 
Random setRandomSeed (int par1, int par2, int par3)
 
ChunkPosition findClosestStructure (String par1Str, int par2, int par3, int par4)
 
boolean extendedLevelsInChunkCache ()
 
double getHorizon ()
 
CrashReportCategory addWorldInfoToCrashReport (CrashReport par1CrashReport)
 
void destroyBlockInWorldPartially (int par1, int par2, int par3, int par4, int par5)
 
Vec3Pool getWorldVec3Pool ()
 
Calendar getCurrentDate ()
 
void func_92088_a (double par1, double par3, double par5, double par7, double par9, double par11, NBTTagCompound par13NBTTagCompound)
 
Scoreboard getScoreboard ()
 
void func_96440_m (int par1, int par2, int par3, int par4)
 
ILogAgent getWorldLogAgent ()
 
void addTileEntity (TileEntity entity)
 
boolean isBlockSolidOnSide (int x, int y, int z, ForgeDirection side)
 
boolean isBlockSolidOnSide (int x, int y, int z, ForgeDirection side, boolean _default)
 
ImmutableSetMultimap
< ChunkCoordIntPair, Ticket > 
getPersistentChunks ()
 
int getBlockLightOpacity (int x, int y, int z)
 
int countEntities (EnumCreatureType type, boolean forSpawnCount)
 

Public Attributes

ChunkProviderServer theChunkProviderServer
 
boolean canNotSave
 
boolean allPlayersSleeping
 
List< TeleportercustomTeleporters = new ArrayList<Teleporter>()
 
- Public Attributes inherited from net.minecraft.world.World
final MapStorage perWorldStorage
 
boolean scheduledUpdatesAreImmediate = false
 
List loadedEntityList = new ArrayList()
 
List loadedTileEntityList = new ArrayList()
 
List playerEntities = new ArrayList()
 
List weatherEffects = new ArrayList()
 
int skylightSubtracted = 0
 
float prevRainingStrength
 
float rainingStrength
 
float prevThunderingStrength
 
float thunderingStrength
 
int lastLightningBolt = 0
 
int difficultySetting
 
Random rand = new Random()
 
final WorldProvider provider
 
boolean findingSpawnPoint
 
MapStorage mapStorage
 
VillageCollection villageCollectionObj
 
final Profiler theProfiler
 
Set activeChunkSet = new HashSet()
 
boolean isRemote
 

Static Public Attributes

static final
WeightedRandomChestContent[] 
bonusChestContent = new WeightedRandomChestContent[] {new WeightedRandomChestContent(Item.stick.itemID, 0, 1, 3, 10), new WeightedRandomChestContent(Block.planks.blockID, 0, 1, 3, 10), new WeightedRandomChestContent(Block.wood.blockID, 0, 1, 3, 10), new WeightedRandomChestContent(Item.axeStone.itemID, 0, 1, 1, 3), new WeightedRandomChestContent(Item.axeWood.itemID, 0, 1, 1, 5), new WeightedRandomChestContent(Item.pickaxeStone.itemID, 0, 1, 1, 3), new WeightedRandomChestContent(Item.pickaxeWood.itemID, 0, 1, 1, 5), new WeightedRandomChestContent(Item.appleRed.itemID, 0, 2, 3, 5), new WeightedRandomChestContent(Item.bread.itemID, 0, 2, 3, 3)}
 
- Static Public Attributes inherited from net.minecraft.world.World
static double MAX_ENTITY_RADIUS = 2.0D
 

Protected Member Functions

void wakeAllPlayers ()
 
void tickBlocksAndAmbiance ()
 
IChunkProvider createChunkProvider ()
 
void initialize (WorldSettings par1WorldSettings)
 
void createSpawnPosition (WorldSettings par1WorldSettings)
 
void createBonusChest ()
 
void saveLevel () throws MinecraftException
 
void obtainEntitySkin (Entity par1Entity)
 
void updateWeather ()
 
- Protected Member Functions inherited from net.minecraft.world.World
void finishSetup ()
 
void initialize (WorldSettings par1WorldSettings)
 
boolean chunkExists (int par1, int par2)
 
void obtainEntitySkin (Entity par1Entity)
 
void updateWeather ()
 
void setActivePlayerChunksAndCheckLight ()
 
void moodSoundAndLightCheck (int par1, int par2, Chunk par3Chunk)
 
void tickBlocksAndAmbiance ()
 

Protected Attributes

Set< ChunkCoordIntPairdoneChunks = new HashSet<ChunkCoordIntPair>()
 
- Protected Attributes inherited from net.minecraft.world.World
List unloadedEntityList = new ArrayList()
 
int updateLCG = (new Random()).nextInt()
 
final int DIST_HASH_MAGIC = 1013904223
 
List worldAccesses = new ArrayList()
 
IChunkProvider chunkProvider
 
final ISaveHandler saveHandler
 
WorldInfo worldInfo
 
final VillageSiege villageSiegeObj = new VillageSiege(this)
 
Scoreboard worldScoreboard = new Scoreboard()
 
boolean spawnHostileMobs = true
 
boolean spawnPeacefulMobs = true
 

Constructor & Destructor Documentation

net.minecraft.world.WorldServer.WorldServer ( MinecraftServer  par1MinecraftServer,
ISaveHandler  par2ISaveHandler,
String  par3Str,
int  par4,
WorldSettings  par5WorldSettings,
Profiler  par6Profiler,
ILogAgent  par7ILogAgent 
)

Member Function Documentation

void net.minecraft.world.WorldServer.addBlockEvent ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5,
int  par6 
)

Adds a block event with the given Args to the blockEventCache. During the next tick(), the block specified will have its onBlockEvent handler called with the given parameters. Args: X,Y,Z, BlockID, EventID, EventParameter

boolean net.minecraft.world.WorldServer.addWeatherEffect ( Entity  par1Entity)

adds a lightning bolt to the list of lightning bolts in this world.

boolean net.minecraft.world.WorldServer.areAllPlayersAsleep ( )
boolean net.minecraft.world.WorldServer.canMineBlock ( EntityPlayer  par1EntityPlayer,
int  par2,
int  par3,
int  par4 
)

Called when checking if a certain block can be mined or not. The 'spawn safe zone' check is located here.

boolean net.minecraft.world.WorldServer.canMineBlockBody ( EntityPlayer  par1EntityPlayer,
int  par2,
int  par3,
int  par4 
)
void net.minecraft.world.WorldServer.createBonusChest ( )
protected

Creates the bonus chest in the world.

IChunkProvider net.minecraft.world.WorldServer.createChunkProvider ( )
protectedvirtual

Creates the chunk provider for this world. Called in the constructor. Retrieves provider from worldProvider?

Implements net.minecraft.world.World.

void net.minecraft.world.WorldServer.createSpawnPosition ( WorldSettings  par1WorldSettings)
protected

creates a spawn position at random within 256 blocks of 0,0

void net.minecraft.world.WorldServer.flush ( )

Syncs all changes to disk and wait for completion.

void net.minecraft.world.WorldServer.func_104140_m ( )
void net.minecraft.world.WorldServer.func_82740_a ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5,
int  par6 
)
List net.minecraft.world.WorldServer.getAllTileEntityInBox ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5,
int  par6 
)

pars: min x,y,z , max x,y,z

File net.minecraft.world.WorldServer.getChunkSaveLocation ( )
Teleporter net.minecraft.world.WorldServer.getDefaultTeleporter ( )
Entity net.minecraft.world.WorldServer.getEntityByID ( int  par1)
virtual

Returns the Entity with the given ID, or null if it doesn't exist in this World.

Implements net.minecraft.world.World.

EntityTracker net.minecraft.world.WorldServer.getEntityTracker ( )

Gets the EntityTracker

ChunkCoordinates net.minecraft.world.WorldServer.getEntrancePortalLocation ( )

Gets the hard-coded portal location to use when entering this dimension.

MinecraftServer net.minecraft.world.WorldServer.getMinecraftServer ( )

Gets the MinecraftServer.

List net.minecraft.world.WorldServer.getPendingBlockUpdates ( Chunk  par1Chunk,
boolean  par2 
)
PlayerManager net.minecraft.world.WorldServer.getPlayerManager ( )
void net.minecraft.world.WorldServer.initialize ( WorldSettings  par1WorldSettings)
protected
boolean net.minecraft.world.WorldServer.isBlockTickScheduled ( int  par1,
int  par2,
int  par3,
int  par4 
)

Returns true if the given block will receive a scheduled tick in the future. Args: X, Y, Z, blockID

Explosion net.minecraft.world.WorldServer.newExplosion ( Entity  par1Entity,
double  par2,
double  par4,
double  par6,
float  par8,
boolean  par9,
boolean  par10 
)

returns a new explosion. Does initiation (at time of writing Explosion is not finished)

void net.minecraft.world.WorldServer.obtainEntitySkin ( Entity  par1Entity)
protected

Start the skin for this entity downloading, if necessary, and increment its reference counter

void net.minecraft.world.WorldServer.releaseEntitySkin ( Entity  par1Entity)

Decrement the reference counter for this entity's skin image data

void net.minecraft.world.WorldServer.resetUpdateEntityTick ( )

Resets the updateEntityTick field to 0

void net.minecraft.world.WorldServer.saveAllChunks ( boolean  par1,
IProgressUpdate  par2IProgressUpdate 
) throws MinecraftException

Saves all chunks to disk while updating progress bar.

void net.minecraft.world.WorldServer.saveLevel ( ) throws MinecraftException
protected

Saves the chunks to disk.

void net.minecraft.world.WorldServer.scheduleBlockUpdate ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5 
)

Schedules a tick to a block with a delay (Most commonly the tick rate)

void net.minecraft.world.WorldServer.scheduleBlockUpdateFromLoad ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5,
int  par6 
)

Schedules a block update from the saved information in a chunk. Called when the chunk is loaded.

void net.minecraft.world.WorldServer.setEntityState ( Entity  par1Entity,
byte  par2 
)

sends a Packet 38 (Entity Status) to all tracked players of that entity

void net.minecraft.world.WorldServer.setSpawnLocation ( )

Sets a new spawn location by finding an uncovered block at a random (x,z) location in the chunk.

SpawnListEntry net.minecraft.world.WorldServer.spawnRandomCreature ( EnumCreatureType  par1EnumCreatureType,
int  par2,
int  par3,
int  par4 
)

only spawns creatures allowed by the chunkProvider

void net.minecraft.world.WorldServer.tick ( )

Runs a single tick for the world

void net.minecraft.world.WorldServer.tickBlocksAndAmbiance ( )
protected

plays random cave ambient sounds and runs updateTick on random blocks within each chunk in the vacinity of a player

boolean net.minecraft.world.WorldServer.tickUpdates ( boolean  par1)

Runs through the list of updates to run and ticks them

void net.minecraft.world.WorldServer.uncheckedUpdateEntity ( Entity  par1Entity,
boolean  par2 
)

direct call to super.updateEntityWithOptionalForce

void net.minecraft.world.WorldServer.updateAllPlayersSleepingFlag ( )

Updates the flag that indicates whether or not all players in the world are sleeping.

void net.minecraft.world.WorldServer.updateEntities ( )

Updates (and cleans up) entities and tile entities

void net.minecraft.world.WorldServer.updateEntityWithOptionalForce ( Entity  par1Entity,
boolean  par2 
)

Will update the entity in the world if the chunk the entity is in is currently loaded or its forced to update. Args: entity, forceUpdate

void net.minecraft.world.WorldServer.updateWeather ( )
protected

Updates all weather states.

void net.minecraft.world.WorldServer.wakeAllPlayers ( )
protected

Member Data Documentation

boolean net.minecraft.world.WorldServer.allPlayersSleeping

is false if there are no players

final WeightedRandomChestContent [] net.minecraft.world.WorldServer.bonusChestContent = new WeightedRandomChestContent[] {new WeightedRandomChestContent(Item.stick.itemID, 0, 1, 3, 10), new WeightedRandomChestContent(Block.planks.blockID, 0, 1, 3, 10), new WeightedRandomChestContent(Block.wood.blockID, 0, 1, 3, 10), new WeightedRandomChestContent(Item.axeStone.itemID, 0, 1, 1, 3), new WeightedRandomChestContent(Item.axeWood.itemID, 0, 1, 1, 5), new WeightedRandomChestContent(Item.pickaxeStone.itemID, 0, 1, 1, 3), new WeightedRandomChestContent(Item.pickaxeWood.itemID, 0, 1, 1, 5), new WeightedRandomChestContent(Item.appleRed.itemID, 0, 2, 3, 5), new WeightedRandomChestContent(Item.bread.itemID, 0, 2, 3, 3)}
static
boolean net.minecraft.world.WorldServer.canNotSave

set by CommandServerSave{all,Off,On}

List<Teleporter> net.minecraft.world.WorldServer.customTeleporters = new ArrayList<Teleporter>()
Set<ChunkCoordIntPair> net.minecraft.world.WorldServer.doneChunks = new HashSet<ChunkCoordIntPair>()
protected

Stores the recently processed (lighting) chunks

ChunkProviderServer net.minecraft.world.WorldServer.theChunkProviderServer

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