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

Public Member Functions

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)
 
abstract Entity getEntityByID (int i)
 
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

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 double MAX_ENTITY_RADIUS = 2.0D
 

Protected Member Functions

void finishSetup ()
 
abstract IChunkProvider createChunkProvider ()
 
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

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.World.World ( ISaveHandler  par1ISaveHandler,
String  par2Str,
WorldProvider  par3WorldProvider,
WorldSettings  par4WorldSettings,
Profiler  par5Profiler,
ILogAgent  par6ILogAgent 
)
net.minecraft.world.World.World ( ISaveHandler  par1ISaveHandler,
String  par2Str,
WorldSettings  par3WorldSettings,
WorldProvider  par4WorldProvider,
Profiler  par5Profiler,
ILogAgent  par6ILogAgent 
)

Member Function Documentation

void net.minecraft.world.World.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

void net.minecraft.world.World.addLoadedEntities ( List  par1List)

adds entities to the loaded entities list, and loads thier skins.

void net.minecraft.world.World.addTileEntity ( Collection  par1Collection)
void net.minecraft.world.World.addTileEntity ( TileEntity  entity)

Adds a single TileEntity to the world.

Parameters
entityThe TileEntity to be added.
boolean net.minecraft.world.World.addWeatherEffect ( Entity  par1Entity)

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

void net.minecraft.world.World.addWorldAccess ( IWorldAccess  par1IWorldAccess)

Adds a IWorldAccess to the list of worldAccesses

CrashReportCategory net.minecraft.world.World.addWorldInfoToCrashReport ( CrashReport  par1CrashReport)

Adds some basic stats of the world to the given crash report.

boolean net.minecraft.world.World.blockExists ( int  par1,
int  par2,
int  par3 
)

Returns whether a block exists at world coordinates x, y, z

int net.minecraft.world.World.blockGetRenderType ( int  par1,
int  par2,
int  par3 
)

Returns the render type of the block at the given coordinate.

boolean net.minecraft.world.World.blockHasTileEntity ( int  par1,
int  par2,
int  par3 
)

Checks if a block at a given position should have a tile entity.

void net.minecraft.world.World.calculateInitialSkylight ( )

Called on construction of the World class to setup the initial skylight values

void net.minecraft.world.World.calculateInitialWeatherBody ( )
int net.minecraft.world.World.calculateSkylightSubtracted ( float  par1)

Returns the amount of skylight subtracted for the current time

boolean net.minecraft.world.World.canBlockFreeze ( int  par1,
int  par2,
int  par3,
boolean  par4 
)

checks to see if a given block is both water, and cold enough to freeze - if the par4 boolean is set, this will only return true if there is a non-water block immediately adjacent to the specified block

boolean net.minecraft.world.World.canBlockFreezeBody ( int  par1,
int  par2,
int  par3,
boolean  par4 
)
boolean net.minecraft.world.World.canBlockSeeTheSky ( int  par1,
int  par2,
int  par3 
)

Checks if the specified block is able to see the sky

boolean net.minecraft.world.World.canLightningStrikeAt ( int  par1,
int  par2,
int  par3 
)
boolean net.minecraft.world.World.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.World.canMineBlockBody ( EntityPlayer  par1EntityPlayer,
int  par2,
int  par3,
int  par4 
)
boolean net.minecraft.world.World.canPlaceEntityOnSide ( int  par1,
int  par2,
int  par3,
int  par4,
boolean  par5,
int  par6,
Entity  par7Entity,
ItemStack  par8ItemStack 
)

Returns true if the given Entity can be placed on the given side of the given block position.

boolean net.minecraft.world.World.canSnowAt ( int  par1,
int  par2,
int  par3 
)

Tests whether or not snow can be placed at a given location

boolean net.minecraft.world.World.canSnowAtBody ( int  par1,
int  par2,
int  par3 
)
boolean net.minecraft.world.World.checkBlockCollision ( AxisAlignedBB  par1AxisAlignedBB)

Returns true if there are any blocks in the region constrained by an AxisAlignedBB

boolean net.minecraft.world.World.checkChunksExist ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5,
int  par6 
)

Checks between a min and max all the chunks inbetween actually exist. Args: minX, minY, minZ, maxX, maxY, maxZ

boolean net.minecraft.world.World.checkNoEntityCollision ( AxisAlignedBB  par1AxisAlignedBB)

Returns true if there are no solid, live entities in the specified AxisAlignedBB

boolean net.minecraft.world.World.checkNoEntityCollision ( AxisAlignedBB  par1AxisAlignedBB,
Entity  par2Entity 
)

Returns true if there are no solid, live entities in the specified AxisAlignedBB, excluding the given entity

void net.minecraft.world.World.checkSessionLock ( ) throws MinecraftException

Checks whether the session lock file was modified by another process

boolean net.minecraft.world.World.chunkExists ( int  par1,
int  par2 
)
protected

Returns whether a chunk exists at chunk coordinates x, y

int net.minecraft.world.World.countEntities ( Class  par1Class)

Counts how many entities of an entity class exist in the world. Args: entityClass

int net.minecraft.world.World.countEntities ( EnumCreatureType  type,
boolean  forSpawnCount 
)

Returns a count of entities that classify themselves as the specified creature type.

abstract IChunkProvider net.minecraft.world.World.createChunkProvider ( )
protectedpure virtual

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

Implemented in net.minecraft.world.WorldServer, and net.minecraft.client.multiplayer.WorldClient.

Explosion net.minecraft.world.World.createExplosion ( Entity  par1Entity,
double  par2,
double  par4,
double  par6,
float  par8,
boolean  par9 
)

Creates an explosion. Args: entity, x, y, z, strength

boolean net.minecraft.world.World.destroyBlock ( int  par1,
int  par2,
int  par3,
boolean  par4 
)

Destroys a block and optionally drops items. Args: X, Y, Z, dropItems

void net.minecraft.world.World.destroyBlockInWorldPartially ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5 
)

Starts (or continues) destroying a block with given ID at the given coordinates for the given partially destroyed value

boolean net.minecraft.world.World.doChunksNearChunkExist ( int  par1,
int  par2,
int  par3,
int  par4 
)

Checks if any of the chunks within distance (argument 4) blocks of the given block exist

boolean net.minecraft.world.World.doesBlockHaveSolidTopSurface ( int  par1,
int  par2,
int  par3 
)

Returns true if the block at the given coordinate has a solid (buildable) top surface.

Implements net.minecraft.world.IBlockAccess.

Vec3 net.minecraft.world.World.drawCloudsBody ( float  par1)
boolean net.minecraft.world.World.extendedLevelsInChunkCache ( )

set by !chunk.getAreLevelsEmpty

Implements net.minecraft.world.IBlockAccess.

boolean net.minecraft.world.World.extinguishFire ( EntityPlayer  par1EntityPlayer,
int  par2,
int  par3,
int  par4,
int  par5 
)

If the block in the given direction of the given coordinate is fire, extinguish it. Args: Player, X,Y,Z, blockDirection

ChunkPosition net.minecraft.world.World.findClosestStructure ( String  par1Str,
int  par2,
int  par3,
int  par4 
)

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

Entity net.minecraft.world.World.findNearestEntityWithinAABB ( Class  par1Class,
AxisAlignedBB  par2AxisAlignedBB,
Entity  par3Entity 
)
void net.minecraft.world.World.finishSetup ( )
protected
IUpdatePlayerListBox net.minecraft.world.World.func_82735_a ( EntityMinecart  par1EntityMinecart)
void net.minecraft.world.World.func_82738_a ( long  par1)
void net.minecraft.world.World.func_82739_e ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5 
)
void net.minecraft.world.World.func_82740_a ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5,
int  par6 
)
boolean net.minecraft.world.World.func_85174_u ( int  par1,
int  par2,
int  par3 
)
void net.minecraft.world.World.func_92088_a ( double  par1,
double  par3,
double  par5,
double  par7,
double  par9,
double  par11,
NBTTagCompound  par13NBTTagCompound 
)
void net.minecraft.world.World.func_96440_m ( int  par1,
int  par2,
int  par3,
int  par4 
)
int net.minecraft.world.World.getActualHeight ( )

Returns current world height.

BiomeGenBase net.minecraft.world.World.getBiomeGenForCoords ( int  par1,
int  par2 
)

Gets the biome for a given set of x/z coordinates

Implements net.minecraft.world.IBlockAccess.

BiomeGenBase net.minecraft.world.World.getBiomeGenForCoordsBody ( int  par1,
int  par2 
)
float net.minecraft.world.World.getBlockDensity ( Vec3  par1Vec3,
AxisAlignedBB  par2AxisAlignedBB 
)

Gets the percentage of real blocks within within a bounding box, along a specified vector.

int net.minecraft.world.World.getBlockId ( int  par1,
int  par2,
int  par3 
)

Returns the block ID at coords x,y,z

Implements net.minecraft.world.IBlockAccess.

int net.minecraft.world.World.getBlockLightOpacity ( int  x,
int  y,
int  z 
)

Readded as it was removed, very useful helper function

Parameters
xX position
yY Position
zZ Position
Returns
The blocks light opacity
int net.minecraft.world.World.getBlockLightValue ( int  par1,
int  par2,
int  par3 
)

Gets the light value of a block location

int net.minecraft.world.World.getBlockLightValue_do ( int  par1,
int  par2,
int  par3,
boolean  par4 
)

Gets the light value of a block location. This is the actual function that gets the value and has a bool flag that indicates if its a half step block to get the maximum light value of a direct neighboring block (left, right, forward, back, and up)

Material net.minecraft.world.World.getBlockMaterial ( int  par1,
int  par2,
int  par3 
)

Returns the block's material.

Implements net.minecraft.world.IBlockAccess.

int net.minecraft.world.World.getBlockMetadata ( int  par1,
int  par2,
int  par3 
)

Returns the block metadata at coords x,y,z

Implements net.minecraft.world.IBlockAccess.

int net.minecraft.world.World.getBlockPowerInput ( int  par1,
int  par2,
int  par3 
)

Returns the highest redstone signal strength powering the given block. Args: X, Y, Z.

TileEntity net.minecraft.world.World.getBlockTileEntity ( int  par1,
int  par2,
int  par3 
)

Returns the TileEntity associated with a given block in X,Y,Z coordinates, or null if no TileEntity exists

Implements net.minecraft.world.IBlockAccess.

float net.minecraft.world.World.getBrightness ( int  par1,
int  par2,
int  par3,
int  par4 
)
float net.minecraft.world.World.getCelestialAngle ( float  par1)

calls calculateCelestialAngle

float net.minecraft.world.World.getCelestialAngleRadians ( float  par1)

Return getCelestialAngle()*2*PI

Chunk net.minecraft.world.World.getChunkFromBlockCoords ( int  par1,
int  par2 
)

Returns a chunk looked up by block coordinates. Args: x, z

Chunk net.minecraft.world.World.getChunkFromChunkCoords ( int  par1,
int  par2 
)

Returns back a chunk looked up by chunk coordinates Args: x, y

int net.minecraft.world.World.getChunkHeightMapMinimum ( int  par1,
int  par2 
)

Gets the heightMapMinimum field of the given chunk, or 0 if the chunk is not loaded. Coords are in blocks. Args: X, Z

IChunkProvider net.minecraft.world.World.getChunkProvider ( )

gets the IChunkProvider this world uses.

EntityPlayer net.minecraft.world.World.getClosestPlayer ( double  par1,
double  par3,
double  par5,
double  par7 
)

Gets the closest player to the point within the specified distance (distance can be set to less than 0 to not limit the distance). Args: x, y, z, dist

EntityPlayer net.minecraft.world.World.getClosestPlayerToEntity ( Entity  par1Entity,
double  par2 
)

Gets the closest player to the entity within the specified distance (if distance is less than 0 then ignored). Args: entity, dist

EntityPlayer net.minecraft.world.World.getClosestVulnerablePlayer ( double  par1,
double  par3,
double  par5,
double  par7 
)

Returns the closest vulnerable player within the given radius, or null if none is found.

EntityPlayer net.minecraft.world.World.getClosestVulnerablePlayerToEntity ( Entity  par1Entity,
double  par2 
)

Returns the closest vulnerable player to this entity within the given radius, or null if none is found

Vec3 net.minecraft.world.World.getCloudColour ( float  par1)
List net.minecraft.world.World.getCollidingBlockBounds ( AxisAlignedBB  par1AxisAlignedBB)

calculates and returns a list of colliding bounding boxes within a given AABB

List net.minecraft.world.World.getCollidingBoundingBoxes ( Entity  par1Entity,
AxisAlignedBB  par2AxisAlignedBB 
)

Returns a list of bounding boxes that collide with aabb excluding the passed in entity's collision. Args: entity, aabb

Calendar net.minecraft.world.World.getCurrentDate ( )

returns a calendar object containing the current date

String net.minecraft.world.World.getDebugLoadedEntities ( )

This string is 'All: (number of loaded entities)' Viewable by press ing F3

List net.minecraft.world.World.getEntitiesWithinAABB ( Class  par1Class,
AxisAlignedBB  par2AxisAlignedBB 
)

Returns all entities of the specified class type which intersect with the AABB. Args: entityClass, aabb

List net.minecraft.world.World.getEntitiesWithinAABBExcludingEntity ( Entity  par1Entity,
AxisAlignedBB  par2AxisAlignedBB 
)

Will get all entities within the specified AABB excluding the one passed into it. Args: entityToExclude, aabb

List net.minecraft.world.World.getEntitiesWithinAABBExcludingEntity ( Entity  par1Entity,
AxisAlignedBB  par2AxisAlignedBB,
IEntitySelector  par3IEntitySelector 
)
abstract Entity net.minecraft.world.World.getEntityByID ( int  i)
pure virtual

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

Implemented in net.minecraft.world.WorldServer, and net.minecraft.client.multiplayer.WorldClient.

PathEntity net.minecraft.world.World.getEntityPathToXYZ ( Entity  par1Entity,
int  par2,
int  par3,
int  par4,
float  par5,
boolean  par6,
boolean  par7,
boolean  par8,
boolean  par9 
)
int net.minecraft.world.World.getFirstUncoveredBlock ( int  par1,
int  par2 
)

Returns the block ID of the first block at this (x,z) location with air above it, searching from sea level upwards.

Vec3 net.minecraft.world.World.getFogColor ( float  par1)

Returns vector(ish) with R/G/B for fog

int net.minecraft.world.World.getFullBlockLightValue ( int  par1,
int  par2,
int  par3 
)

Does the same as getBlockLightValue_do but without checking if its not a normal block

GameRules net.minecraft.world.World.getGameRules ( )

Gets the GameRules instance.

int net.minecraft.world.World.getHeight ( )

Returns current world height.

Implements net.minecraft.world.IBlockAccess.

int net.minecraft.world.World.getHeightValue ( int  par1,
int  par2 
)

Returns the y coordinate with a block in it at this x, z coordinate

double net.minecraft.world.World.getHorizon ( )

Returns horizon height for use in rendering the sky.

int net.minecraft.world.World.getIndirectPowerLevelTo ( int  par1,
int  par2,
int  par3,
int  par4 
)

Gets the power level from a certain block face. Args: x, y, z, direction

boolean net.minecraft.world.World.getIndirectPowerOutput ( int  par1,
int  par2,
int  par3,
int  par4 
)

Returns the indirect signal strength being outputted by the given block in the opposite of the given direction. Args: X, Y, Z, direction

float net.minecraft.world.World.getLightBrightness ( int  par1,
int  par2,
int  par3 
)

Returns how bright the block is shown as which is the block's light value looked up in a lookup table (light values aren't linear for brightness). Args: x, y, z

Implements net.minecraft.world.IBlockAccess.

int net.minecraft.world.World.getLightBrightnessForSkyBlocks ( int  par1,
int  par2,
int  par3,
int  par4 
)

Any Light rendered on a 1.8 Block goes through here

Implements net.minecraft.world.IBlockAccess.

List net.minecraft.world.World.getLoadedEntityList ( )

Accessor for world Loaded Entity List

int net.minecraft.world.World.getMoonPhase ( )
PathEntity net.minecraft.world.World.getPathEntityToEntity ( Entity  par1Entity,
Entity  par2Entity,
float  par3,
boolean  par4,
boolean  par5,
boolean  par6,
boolean  par7 
)
List net.minecraft.world.World.getPendingBlockUpdates ( Chunk  par1Chunk,
boolean  par2 
)
ImmutableSetMultimap<ChunkCoordIntPair, Ticket> net.minecraft.world.World.getPersistentChunks ( )

Get the persistent chunks for this world

Returns
EntityPlayer net.minecraft.world.World.getPlayerEntityByName ( String  par1Str)

Find a player by name in this world.

int net.minecraft.world.World.getPrecipitationHeight ( int  par1,
int  par2 
)

Gets the height to which rain/snow will fall. Calculates it if not already stored.

String net.minecraft.world.World.getProviderName ( )

Returns the name of the current chunk provider, by calling chunkprovider.makeString()

float net.minecraft.world.World.getRainStrength ( float  par1)

Not sure about this actually. Reverting this one myself.

int net.minecraft.world.World.getSavedLightValue ( EnumSkyBlock  par1EnumSkyBlock,
int  par2,
int  par3,
int  par4 
)

Returns saved light value without taking into account the time of day. Either looks in the sky light map or block light map based on the enumSkyBlock arg.

ISaveHandler net.minecraft.world.World.getSaveHandler ( )

Returns this world's current save handler

Scoreboard net.minecraft.world.World.getScoreboard ( )
long net.minecraft.world.World.getSeed ( )

Retrieve the world seed from level.dat

int net.minecraft.world.World.getSkyBlockTypeBrightness ( EnumSkyBlock  par1EnumSkyBlock,
int  par2,
int  par3,
int  par4 
)

Brightness for SkyBlock.Sky is clear white and (through color computing it is assumed) DEPENDENT ON DAYTIME. Brightness for SkyBlock.Block is yellowish and independent.

Vec3 net.minecraft.world.World.getSkyColor ( Entity  par1Entity,
float  par2 
)

Calculates the color for the skybox

Vec3 net.minecraft.world.World.getSkyColorBody ( Entity  par1Entity,
float  par2 
)
ChunkCoordinates net.minecraft.world.World.getSpawnPoint ( )

Returns the coordinates of the spawn point

float net.minecraft.world.World.getStarBrightness ( float  par1)

How bright are stars in the sky

float net.minecraft.world.World.getStarBrightnessBody ( float  par1)
int net.minecraft.world.World.getStrongestIndirectPower ( int  par1,
int  par2,
int  par3 
)
float net.minecraft.world.World.getSunBrightness ( float  par1)

Returns the sun brightness - checks time of day, rain and thunder

int net.minecraft.world.World.getTopSolidOrLiquidBlock ( int  par1,
int  par2 
)

Finds the highest block on the x, z coordinate that is solid and returns its y coord. Args x, z

long net.minecraft.world.World.getTotalWorldTime ( )
int net.minecraft.world.World.getUniqueDataId ( String  par1Str)

Returns an unique new data id from the MapStorage for the given prefix and saves the idCounts map to the 'idcounts' file.

float net.minecraft.world.World.getWeightedThunderStrength ( float  par1)
WorldChunkManager net.minecraft.world.World.getWorldChunkManager ( )
WorldInfo net.minecraft.world.World.getWorldInfo ( )

Gets the World's WorldInfo instance

ILogAgent net.minecraft.world.World.getWorldLogAgent ( )
long net.minecraft.world.World.getWorldTime ( )
Vec3Pool net.minecraft.world.World.getWorldVec3Pool ( )

Return the Vec3Pool object for this world.

Implements net.minecraft.world.IBlockAccess.

boolean net.minecraft.world.World.handleMaterialAcceleration ( AxisAlignedBB  par1AxisAlignedBB,
Material  par2Material,
Entity  par3Entity 
)

handles the acceleration of an object whilst in water. Not sure if it is used elsewhere.

void net.minecraft.world.World.initialize ( WorldSettings  par1WorldSettings)
protected
boolean net.minecraft.world.World.isAABBInMaterial ( AxisAlignedBB  par1AxisAlignedBB,
Material  par2Material 
)

checks if the given AABB is in the material given. Used while swimming.

boolean net.minecraft.world.World.isAirBlock ( int  par1,
int  par2,
int  par3 
)

Returns true if the block at the specified coordinates is empty

Implements net.minecraft.world.IBlockAccess.

boolean net.minecraft.world.World.isAnyLiquid ( AxisAlignedBB  par1AxisAlignedBB)

Returns if any of the blocks within the aabb are liquids. Args: aabb

boolean net.minecraft.world.World.isBlockFreezable ( int  par1,
int  par2,
int  par3 
)

checks to see if a given block is both water and is cold enough to freeze

boolean net.minecraft.world.World.isBlockFreezableNaturally ( int  par1,
int  par2,
int  par3 
)

checks to see if a given block is both water and has at least one immediately adjacent non-water block

boolean net.minecraft.world.World.isBlockHighHumidity ( int  par1,
int  par2,
int  par3 
)

Checks to see if the biome rainfall values for a given x,y,z coordinate set are extremely high

boolean net.minecraft.world.World.isBlockIndirectlyGettingPowered ( int  par1,
int  par2,
int  par3 
)

Used to see if one of the blocks next to you or your block is getting power from a neighboring block. Used by items like TNT or Doors so they don't have redstone going straight into them. Args: x, y, z

boolean net.minecraft.world.World.isBlockNormalCube ( int  par1,
int  par2,
int  par3 
)

Indicate if a material is a normal solid opaque cube.

Implements net.minecraft.world.IBlockAccess.

boolean net.minecraft.world.World.isBlockNormalCubeDefault ( int  par1,
int  par2,
int  par3,
boolean  par4 
)

Checks if the block is a solid, normal cube. If the chunk does not exist, or is not loaded, it returns the boolean parameter.

boolean net.minecraft.world.World.isBlockOpaqueCube ( int  par1,
int  par2,
int  par3 
)

Returns true if the block at the specified coordinates is an opaque cube. Args: x, y, z

Implements net.minecraft.world.IBlockAccess.

int net.minecraft.world.World.isBlockProvidingPowerTo ( int  par1,
int  par2,
int  par3,
int  par4 
)

Is this block powering in the specified direction Args: x, y, z, direction

Implements net.minecraft.world.IBlockAccess.

boolean net.minecraft.world.World.isBlockSolidOnSide ( int  x,
int  y,
int  z,
ForgeDirection  side 
)

Determine if the given block is considered solid on the specified side. Used by placement logic.

Parameters
xBlock X Position
yBlock Y Position
zBlock Z Position
sideThe Side in question
Returns
True if the side is solid
boolean net.minecraft.world.World.isBlockSolidOnSide ( int  x,
int  y,
int  z,
ForgeDirection  side,
boolean  _default 
)

Determine if the given block is considered solid on the specified side. Used by placement logic.

Parameters
xBlock X Position
yBlock Y Position
zBlock Z Position
sideThe Side in question
_defaultThe defult to return if the block doesn't exist.
Returns
True if the side is solid

Implements net.minecraft.world.IBlockAccess.

boolean net.minecraft.world.World.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

boolean net.minecraft.world.World.isBlockTopFacingSurfaceSolid ( Block  par1Block,
int  par2 
)

Performs check to see if the block is a normal, solid block, or if the metadata of the block indicates that its facing puts its solid side upwards. (inverted stairs, for example)

boolean net.minecraft.world.World.isBoundingBoxBurning ( AxisAlignedBB  par1AxisAlignedBB)

Returns whether or not the given bounding box is on fire or not

boolean net.minecraft.world.World.isDaytime ( )

Checks whether its daytime by seeing if the light subtracted from the skylight is less than 4

boolean net.minecraft.world.World.isMaterialInBB ( AxisAlignedBB  par1AxisAlignedBB,
Material  par2Material 
)

Returns true if the given bounding box contains the given material

boolean net.minecraft.world.World.isRaining ( )

Returns true if the current rain strength is greater than 0.2

boolean net.minecraft.world.World.isThundering ( )

Returns true if the current thunder strength (weighted with the rain strength) is greater than 0.9

void net.minecraft.world.World.joinEntityInSurroundings ( Entity  par1Entity)

spwans an entity and loads surrounding chunks

WorldSavedData net.minecraft.world.World.loadItemData ( Class  par1Class,
String  par2Str 
)

Loads an existing MapDataBase corresponding to the given String id from disk using the MapStorage, instantiating the given Class, or returns null if none such file exists. args: Class to instantiate, String dataid

void net.minecraft.world.World.markBlockForRenderUpdate ( int  par1,
int  par2,
int  par3 
)

On the client, re-renders this block. On the server, does nothing. Used for lighting updates.

void net.minecraft.world.World.markBlockForUpdate ( int  par1,
int  par2,
int  par3 
)

On the client, re-renders the block. On the server, sends the block to the client (which will re-render it), including the tile entity description packet if applicable. Args: x, y, z

void net.minecraft.world.World.markBlockRangeForRenderUpdate ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5,
int  par6 
)

On the client, re-renders all blocks in this range, inclusive. On the server, does nothing. Args: min x, min y, min z, max x, max y, max z

void net.minecraft.world.World.markBlocksDirtyVertical ( int  par1,
int  par2,
int  par3,
int  par4 
)

marks a vertical line of blocks as dirty

void net.minecraft.world.World.markTileEntityForDespawn ( TileEntity  par1TileEntity)

adds tile entity to despawn list (renamed from markEntityForDespawn)

void net.minecraft.world.World.moodSoundAndLightCheck ( int  par1,
int  par2,
Chunk  par3Chunk 
)
protected
Explosion net.minecraft.world.World.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.World.notifyBlockChange ( int  par1,
int  par2,
int  par3,
int  par4 
)

The block type change and need to notify other systems Args: x, y, z, blockID

void net.minecraft.world.World.notifyBlockOfNeighborChange ( int  par1,
int  par2,
int  par3,
int  par4 
)

Notifies a block that one of its neighbor change to the specified type Args: x, y, z, blockID

void net.minecraft.world.World.notifyBlocksOfNeighborChange ( int  par1,
int  par2,
int  par3,
int  par4 
)

Notifies neighboring blocks that this specified block changed Args: x, y, z, blockID

void net.minecraft.world.World.notifyBlocksOfNeighborChange ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5 
)

Calls notifyBlockOfNeighborChange on adjacent blocks, except the one on the given side. Args: X, Y, Z, changingBlockID, side

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

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

void net.minecraft.world.World.playAuxSFX ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5 
)

See description for playAuxSFX.

void net.minecraft.world.World.playAuxSFXAtEntity ( EntityPlayer  par1EntityPlayer,
int  par2,
int  par3,
int  par4,
int  par5,
int  par6 
)

See description for playAuxSFX.

void net.minecraft.world.World.playRecord ( String  par1Str,
int  par2,
int  par3,
int  par4 
)

Plays a record at the specified coordinates of the specified name. Args: recordName, x, y, z

void net.minecraft.world.World.playSound ( double  par1,
double  par3,
double  par5,
String  par7Str,
float  par8,
float  par9,
boolean  par10 
)

par8 is loudness, all pars passed to minecraftInstance.sndManager.playSound

void net.minecraft.world.World.playSoundAtEntity ( Entity  par1Entity,
String  par2Str,
float  par3,
float  par4 
)

Plays a sound at the entity's position. Args: entity, sound, volume (relative to 1.0), and frequency (or pitch, also relative to 1.0).

void net.minecraft.world.World.playSoundEffect ( double  par1,
double  par3,
double  par5,
String  par7Str,
float  par8,
float  par9 
)

Play a sound effect. Many many parameters for this function. Not sure what they do, but a classic call is : (double)i + 0.5D, (double)j + 0.5D, (double)k + 0.5D, 'random.door_open', 1.0F, world.rand.nextFloat() * 0.1F + 0.9F with i,j,k position of the block.

void net.minecraft.world.World.playSoundToNearExcept ( EntityPlayer  par1EntityPlayer,
String  par2Str,
float  par3,
float  par4 
)

Plays sound to all near players except the player reference given

MovingObjectPosition net.minecraft.world.World.rayTraceBlocks ( Vec3  par1Vec3,
Vec3  par2Vec3 
)

ray traces all blocks, including non-collideable ones

MovingObjectPosition net.minecraft.world.World.rayTraceBlocks_do ( Vec3  par1Vec3,
Vec3  par2Vec3,
boolean  par3 
)
MovingObjectPosition net.minecraft.world.World.rayTraceBlocks_do_do ( Vec3  par1Vec3,
Vec3  par2Vec3,
boolean  par3,
boolean  par4 
)
void net.minecraft.world.World.releaseEntitySkin ( Entity  par1Entity)

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

void net.minecraft.world.World.removeBlockTileEntity ( int  par1,
int  par2,
int  par3 
)

Removes the TileEntity for a given block in X,Y,Z coordinates

void net.minecraft.world.World.removeEntity ( Entity  par1Entity)

Schedule the entity for removal during the next tick. Marks the entity dead in anticipation.

void net.minecraft.world.World.removePlayerEntityDangerously ( Entity  par1Entity)

Do NOT use this method to remove normal entities- use normal removeEntity

void net.minecraft.world.World.removeWorldAccess ( IWorldAccess  par1IWorldAccess)

Removes a worldAccess from the worldAccesses object

void net.minecraft.world.World.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.World.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.

List net.minecraft.world.World.selectEntitiesWithinAABB ( Class  par1Class,
AxisAlignedBB  par2AxisAlignedBB,
IEntitySelector  par3IEntitySelector 
)
void net.minecraft.world.World.sendQuittingDisconnectingPacket ( )

If on MP, sends a quitting packet.

void net.minecraft.world.World.setActivePlayerChunksAndCheckLight ( )
protected
void net.minecraft.world.World.setAllowedSpawnTypes ( boolean  par1,
boolean  par2 
)

Set which types of mobs are allowed to spawn (peaceful vs hostile).

boolean net.minecraft.world.World.setBlock ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5,
int  par6 
)

Sets the block ID and metadata at a given location. Args: X, Y, Z, new block ID, new metadata, flags. Flag 1 will cause a block update. Flag 2 will send the change to clients (you almost always want this). Flag 4 prevents the block from being re-rendered, if this is a client world. Flags can be added together.

boolean net.minecraft.world.World.setBlock ( int  par1,
int  par2,
int  par3,
int  par4 
)

Sets a block and notifies relevant systems with the block change Args: x, y, z, blockID

boolean net.minecraft.world.World.setBlockMetadataWithNotify ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5 
)

Sets the blocks metadata and if set will then notify blocks that this block changed, depending on the flag. Args: x, y, z, metadata, flag. See setBlock for flag description

void net.minecraft.world.World.setBlockTileEntity ( int  par1,
int  par2,
int  par3,
TileEntity  par4TileEntity 
)

Sets the TileEntity for a given block in X, Y, Z coordinates

boolean net.minecraft.world.World.setBlockToAir ( int  par1,
int  par2,
int  par3 
)

Sets a block to 0 and notifies relevant systems with the block change Args: x, y, z

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

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

void net.minecraft.world.World.setItemData ( String  par1Str,
WorldSavedData  par2WorldSavedData 
)

Assigns the given String id to the given MapDataBase using the MapStorage, removing any existing ones of the same id.

void net.minecraft.world.World.setLightValue ( EnumSkyBlock  par1EnumSkyBlock,
int  par2,
int  par3,
int  par4,
int  par5 
)

Sets the light value either into the sky map or block map depending on if enumSkyBlock is set to sky or block. Args: enumSkyBlock, x, y, z, lightValue

void net.minecraft.world.World.setRainStrength ( float  par1)
Random net.minecraft.world.World.setRandomSeed ( int  par1,
int  par2,
int  par3 
)

puts the World Random seed to a specific state dependant on the inputs

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

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

void net.minecraft.world.World.setSpawnLocation ( int  par1,
int  par2,
int  par3 
)
void net.minecraft.world.World.setWorldTime ( long  par1)

Sets the world time.

boolean net.minecraft.world.World.spawnEntityInWorld ( Entity  par1Entity)

Called to place all entities as part of a world

void net.minecraft.world.World.spawnParticle ( String  par1Str,
double  par2,
double  par4,
double  par6,
double  par8,
double  par10,
double  par12 
)

Spawns a particle. Args particleName, x, y, z, velX, velY, velZ

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

Runs a single tick for the world

void net.minecraft.world.World.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.World.tickUpdates ( boolean  par1)

Runs through the list of updates to run and ticks them

void net.minecraft.world.World.toggleRain ( )
void net.minecraft.world.World.unloadEntities ( List  par1List)

Adds a list of entities to be unloaded on the next pass of World.updateEntities()

void net.minecraft.world.World.updateAllLightTypes ( int  par1,
int  par2,
int  par3 
)
void net.minecraft.world.World.updateAllPlayersSleepingFlag ( )

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

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

Updates (and cleans up) entities and tile entities

void net.minecraft.world.World.updateEntity ( Entity  par1Entity)

Will update the entity in the world if the chunk the entity is in is currently loaded. Args: entity

void net.minecraft.world.World.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.World.updateLightByType ( EnumSkyBlock  par1EnumSkyBlock,
int  par2,
int  par3,
int  par4 
)
void net.minecraft.world.World.updateTileEntityChunkAndDoNothing ( int  par1,
int  par2,
int  par3,
TileEntity  par4TileEntity 
)

marks the chunk that contains this tilentity as modified and then calls worldAccesses.doNothingWithTileEntity

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

Updates all weather states.

void net.minecraft.world.World.updateWeatherBody ( )

Member Data Documentation

Set net.minecraft.world.World.activeChunkSet = new HashSet()

Positions to update

IChunkProvider net.minecraft.world.World.chunkProvider
protected

Handles chunk operations and caching

int net.minecraft.world.World.difficultySetting

Option > Difficulty setting (0 - 3)

final int net.minecraft.world.World.DIST_HASH_MAGIC = 1013904223
protected

magic number used to generate fast random numbers for 3d distribution within a chunk

boolean net.minecraft.world.World.findingSpawnPoint

Boolean that is set to true when trying to find a spawn point

boolean net.minecraft.world.World.isRemote

This is set to true for client worlds, and false for server worlds.

int net.minecraft.world.World.lastLightningBolt = 0

Set to 2 whenever a lightning bolt is generated in SSP. Decrements if > 0 in updateWeather(). Value appears to be unused.

List net.minecraft.world.World.loadedEntityList = new ArrayList()

A list of all Entities in all currently-loaded chunks

List net.minecraft.world.World.loadedTileEntityList = new ArrayList()

A list of all TileEntities in all currently-loaded chunks

MapStorage net.minecraft.world.World.mapStorage
double net.minecraft.world.World.MAX_ENTITY_RADIUS = 2.0D
static

Used in the getEntitiesWithinAABB functions to expand the search area for entities. Modders should change this variable to a higher value if it is less then the radius of one of there entities.

final MapStorage net.minecraft.world.World.perWorldStorage
List net.minecraft.world.World.playerEntities = new ArrayList()

Array list of players in the world.

float net.minecraft.world.World.prevRainingStrength
float net.minecraft.world.World.prevThunderingStrength
final WorldProvider net.minecraft.world.World.provider

The WorldProvider instance that World uses.

float net.minecraft.world.World.rainingStrength
Random net.minecraft.world.World.rand = new Random()

RNG for World.

final ISaveHandler net.minecraft.world.World.saveHandler
protected
boolean net.minecraft.world.World.scheduledUpdatesAreImmediate = false

boolean; if true updates scheduled by scheduleBlockUpdate happen immediately

int net.minecraft.world.World.skylightSubtracted = 0

How much light is subtracted from full daylight

boolean net.minecraft.world.World.spawnHostileMobs = true
protected

indicates if enemies are spawned or not

boolean net.minecraft.world.World.spawnPeacefulMobs = true
protected

A flag indicating whether we should spawn peaceful mobs.

final Profiler net.minecraft.world.World.theProfiler
float net.minecraft.world.World.thunderingStrength
List net.minecraft.world.World.unloadedEntityList = new ArrayList()
protected
int net.minecraft.world.World.updateLCG = (new Random()).nextInt()
protected

Contains the current Linear Congruential Generator seed for block updates. Used with an A value of 3 and a C value of 0x3c6ef35f, producing a highly planar series of values ill-suited for choosing random blocks in a 16x128x16 field.

VillageCollection net.minecraft.world.World.villageCollectionObj
final VillageSiege net.minecraft.world.World.villageSiegeObj = new VillageSiege(this)
protected
List net.minecraft.world.World.weatherEffects = new ArrayList()

a list of all the lightning entities

List net.minecraft.world.World.worldAccesses = new ArrayList()
protected
WorldInfo net.minecraft.world.World.worldInfo
protected

holds information about a world (size on disk, time, spawn point, seed, ...)

Scoreboard net.minecraft.world.World.worldScoreboard = new Scoreboard()
protected

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