|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.world.World
public abstract class World
Field Summary | |
---|---|
Set |
activeChunkSet
Positions to update |
int |
difficultySetting
Option > Difficulty setting (0 - 3) |
boolean |
editingBlocks
true while the world is editing blocks |
boolean |
findingSpawnPoint
Boolean that is set to true when trying to find a spawn point |
boolean |
isRemote
This is set to true for client worlds, and false for server worlds. |
int |
lastLightningBolt
Set to 2 whenever a lightning bolt is generated in SSP. |
List |
loadedEntityList
A list of all Entities in all currently-loaded chunks |
List |
loadedTileEntityList
A list of all TileEntities in all currently-loaded chunks |
MapStorage |
mapStorage
|
static double |
MAX_ENTITY_RADIUS
Used in the getEntitiesWithinAABB functions to expand the search area for entities. |
MapStorage |
perWorldStorage
|
List |
playerEntities
Array list of players in the world. |
float |
prevRainingStrength
|
float |
prevThunderingStrength
|
WorldProvider |
provider
The WorldProvider instance that World uses. |
float |
rainingStrength
|
Random |
rand
RNG for World. |
boolean |
scheduledUpdatesAreImmediate
boolean; if true updates scheduled by scheduleBlockUpdate happen immediately |
int |
skylightSubtracted
How much light is subtracted from full daylight |
Profiler |
theProfiler
|
float |
thunderingStrength
|
VillageCollection |
villageCollectionObj
|
List |
weatherEffects
a list of all the lightning entities |
Constructor Summary | |
---|---|
World(ISaveHandler par1ISaveHandler,
String par2Str,
WorldProvider par3WorldProvider,
WorldSettings par4WorldSettings,
Profiler par5Profiler)
|
|
World(ISaveHandler par1ISaveHandler,
String par2Str,
WorldSettings par3WorldSettings,
WorldProvider par4WorldProvider,
Profiler par5Profiler)
|
Method Summary | |
---|---|
void |
addBlockEvent(int par1,
int par2,
int par3,
int par4,
int par5,
int par6)
Adds a block event with the given Args to the blockEventCache. |
void |
addLoadedEntities(List par1List)
adds entities to the loaded entities list, and loads thier skins. |
void |
addTileEntity(Collection par1Collection)
|
void |
addTileEntity(TileEntity entity)
Adds a single TileEntity to the world. |
boolean |
addWeatherEffect(Entity par1Entity)
adds a lightning bolt to the list of lightning bolts in this world. |
void |
addWorldAccess(IWorldAccess par1IWorldAccess)
Adds a IWorldAccess to the list of worldAccesses |
CrashReportCategory |
addWorldInfoToCrashReport(CrashReport par1CrashReport)
Adds some basic stats of the world to the given crash report. |
boolean |
blockExists(int par1,
int par2,
int par3)
Returns whether a block exists at world coordinates x, y, z |
boolean |
blockHasTileEntity(int par1,
int par2,
int par3)
Checks if a block at a given position should have a tile entity. |
void |
calculateInitialSkylight()
Called on construction of the World class to setup the initial skylight values |
void |
calculateInitialWeatherBody()
|
int |
calculateSkylightSubtracted(float par1)
Returns the amount of skylight subtracted for the current time |
boolean |
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 |
canBlockFreezeBody(int par1,
int par2,
int par3,
boolean par4)
|
boolean |
canBlockSeeTheSky(int par1,
int par2,
int par3)
Checks if the specified block is able to see the sky |
boolean |
canLightningStrikeAt(int par1,
int par2,
int par3)
|
boolean |
canMineBlock(EntityPlayer par1EntityPlayer,
int par2,
int par3,
int par4)
Called when checking if a certain block can be mined or not. |
boolean |
canMineBlockBody(EntityPlayer par1EntityPlayer,
int par2,
int par3,
int par4)
|
boolean |
canPlaceEntityOnSide(int par1,
int par2,
int par3,
int par4,
boolean par5,
int par6,
Entity par7Entity)
Returns true if the given Entity can be placed on the given side of the given block position. |
boolean |
canSnowAt(int par1,
int par2,
int par3)
Tests whether or not snow can be placed at a given location |
boolean |
canSnowAtBody(int par1,
int par2,
int par3)
|
boolean |
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. |
boolean |
checkIfAABBIsClear(AxisAlignedBB par1AxisAlignedBB)
Returns true if there are no solid, live entities in the specified AxisAlignedBB |
boolean |
checkIfAABBIsClearExcludingEntity(AxisAlignedBB par1AxisAlignedBB,
Entity par2Entity)
Returns true if there are no solid, live entities in the specified AxisAlignedBB, excluding the given entity |
void |
checkSessionLock()
Checks whether the session lock file was modified by another process |
int |
countEntities(Class par1Class)
Counts how many entities of an entity class exist in the world. |
Explosion |
createExplosion(Entity par1Entity,
double par2,
double par4,
double par6,
float par8,
boolean par9)
Creates an explosion. |
void |
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 |
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 |
doesBlockHaveSolidTopSurface(int par1,
int par2,
int par3)
Returns true if the block at the given coordinate has a solid (buildable) top surface. |
Vec3 |
drawClouds(float par1)
|
Vec3 |
drawCloudsBody(float par1)
|
boolean |
extendedLevelsInChunkCache()
|
boolean |
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. |
ChunkPosition |
findClosestStructure(String par1Str,
int par2,
int par3,
int par4)
Returns the location of the closest structure of the specified type. |
Entity |
findNearestEntityWithinAABB(Class par1Class,
AxisAlignedBB par2AxisAlignedBB,
Entity par3Entity)
|
int |
func_82734_g(int par1,
int par2)
|
IUpdatePlayerListBox |
func_82735_a(EntityMinecart par1EntityMinecart)
|
void |
func_82738_a(long par1)
|
void |
func_82739_e(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)
|
boolean |
func_85174_u(int par1,
int par2,
int par3)
|
int |
func_85175_e(int par1,
int par2,
int par3)
|
void |
func_92088_a(double par1,
double par3,
double par5,
double par7,
double par9,
double par11,
NBTTagCompound par13NBTTagCompound)
|
int |
getActualHeight()
Returns current world height. |
List |
getAllCollidingBoundingBoxes(AxisAlignedBB par1AxisAlignedBB)
calculates and returns a list of colliding bounding boxes within a given AABB |
BiomeGenBase |
getBiomeGenForCoords(int par1,
int par2)
Gets the biome for a given set of x/z coordinates |
BiomeGenBase |
getBiomeGenForCoordsBody(int par1,
int par2)
|
float |
getBlockDensity(Vec3 par1Vec3,
AxisAlignedBB par2AxisAlignedBB)
Gets the percentage of real blocks within within a bounding box, along a specified vector. |
int |
getBlockId(int par1,
int par2,
int par3)
Returns the block ID at coords x,y,z |
int |
getBlockLightOpacity(int par1,
int par2,
int par3)
|
int |
getBlockLightValue_do(int par1,
int par2,
int par3,
boolean par4)
Gets the light value of a block location. |
int |
getBlockLightValue(int par1,
int par2,
int par3)
Gets the light value of a block location |
Material |
getBlockMaterial(int par1,
int par2,
int par3)
Returns the block's material. |
int |
getBlockMetadata(int par1,
int par2,
int par3)
Returns the block metadata at coords x,y,z |
TileEntity |
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 |
float |
getBrightness(int par1,
int par2,
int par3,
int par4)
|
float |
getCelestialAngle(float par1)
calls calculateCelestialAngle |
float |
getCelestialAngleRadians(float par1)
|
Chunk |
getChunkFromBlockCoords(int par1,
int par2)
Returns a chunk looked up by block coordinates. |
Chunk |
getChunkFromChunkCoords(int par1,
int par2)
Returns back a chunk looked up by chunk coordinates Args: x, y |
IChunkProvider |
getChunkProvider()
gets the IChunkProvider this world uses. |
EntityPlayer |
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). |
EntityPlayer |
getClosestPlayerToEntity(Entity par1Entity,
double par2)
Gets the closest player to the entity within the specified distance (if distance is less than 0 then ignored). |
EntityPlayer |
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 |
getClosestVulnerablePlayerToEntity(Entity par1Entity,
double par2)
Returns the closest vulnerable player to this entity within the given radius, or null if none is found |
List |
getCollidingBoundingBoxes(Entity par1Entity,
AxisAlignedBB par2AxisAlignedBB)
Returns a list of bounding boxes that collide with aabb excluding the passed in entity's collision. |
Calendar |
getCurrentDate()
returns a calendar object containing the current date |
String |
getDebugLoadedEntities()
|
List |
getEntitiesWithinAABB(Class par1Class,
AxisAlignedBB par2AxisAlignedBB)
Returns all entities of the specified class type which intersect with the AABB. |
List |
getEntitiesWithinAABBExcludingEntity(Entity par1Entity,
AxisAlignedBB par2AxisAlignedBB)
Will get all entities within the specified AABB excluding the one passed into it. |
abstract Entity |
getEntityByID(int var1)
Returns the Entity with the given ID, or null if it doesn't exist in this World. |
PathEntity |
getEntityPathToXYZ(Entity par1Entity,
int par2,
int par3,
int par4,
float par5,
boolean par6,
boolean par7,
boolean par8,
boolean par9)
|
int |
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 |
getFogColor(float par1)
|
int |
getFullBlockLightValue(int par1,
int par2,
int par3)
Does the same as getBlockLightValue_do but without checking if its not a normal block |
GameRules |
getGameRules()
Gets the GameRules instance. |
int |
getHeight()
Returns current world height. |
int |
getHeightValue(int par1,
int par2)
Returns the y coordinate with a block in it at this x, z coordinate |
double |
getHorizon()
|
float |
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). |
int |
getLightBrightnessForSkyBlocks(int par1,
int par2,
int par3,
int par4)
|
List |
getLoadedEntityList()
|
int |
getMoonPhase(float par1)
|
PathEntity |
getPathEntityToEntity(Entity par1Entity,
Entity par2Entity,
float par3,
boolean par4,
boolean par5,
boolean par6,
boolean par7)
|
List |
getPendingBlockUpdates(Chunk par1Chunk,
boolean par2)
|
com.google.common.collect.ImmutableSetMultimap<ChunkCoordIntPair,ForgeChunkManager.Ticket> |
getPersistentChunks()
Get the persistent chunks for this world |
EntityPlayer |
getPlayerEntityByName(String par1Str)
Find a player by name in this world. |
int |
getPrecipitationHeight(int par1,
int par2)
Gets the height to which rain/snow will fall. |
String |
getProviderName()
|
float |
getRainStrength(float par1)
Not sure about this actually. |
int |
getSavedLightValue(EnumSkyBlock par1EnumSkyBlock,
int par2,
int par3,
int par4)
Returns saved light value without taking into account the time of day. |
ISaveHandler |
getSaveHandler()
Returns this world's current save handler |
long |
getSeed()
Retrieve the world seed from level.dat |
int |
getSkyBlockTypeBrightness(EnumSkyBlock par1EnumSkyBlock,
int par2,
int par3,
int par4)
|
Vec3 |
getSkyColor(Entity par1Entity,
float par2)
|
Vec3 |
getSkyColorBody(Entity par1Entity,
float par2)
|
ChunkCoordinates |
getSpawnPoint()
Returns the coordinates of the spawn point |
float |
getStarBrightness(float par1)
|
float |
getStarBrightnessBody(float par1)
|
float |
getSunBrightness(float par1)
|
int |
getTopSolidOrLiquidBlock(int par1,
int par2)
Finds the highest block on the x, z coordinate that is solid and returns its y coord. |
long |
getTotalWorldTime()
|
int |
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 |
getWeightedThunderStrength(float par1)
|
WorldChunkManager |
getWorldChunkManager()
|
WorldInfo |
getWorldInfo()
Gets the World's WorldInfo instance |
long |
getWorldTime()
|
Vec3Pool |
getWorldVec3Pool()
Return the Vec3Pool object for this world. |
boolean |
handleMaterialAcceleration(AxisAlignedBB par1AxisAlignedBB,
Material par2Material,
Entity par3Entity)
handles the acceleration of an object whilst in water. |
boolean |
isAABBInMaterial(AxisAlignedBB par1AxisAlignedBB,
Material par2Material)
checks if the given AABB is in the material given. |
boolean |
isAABBNonEmpty(AxisAlignedBB par1AxisAlignedBB)
Returns true if there are any blocks in the region constrained by an AxisAlignedBB |
boolean |
isAirBlock(int par1,
int par2,
int par3)
Returns true if the block at the specified coordinates is empty |
boolean |
isAnyLiquid(AxisAlignedBB par1AxisAlignedBB)
Returns if any of the blocks within the aabb are liquids. |
boolean |
isBlockFreezable(int par1,
int par2,
int par3)
checks to see if a given block is both water and is cold enough to freeze |
boolean |
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 |
isBlockGettingPowered(int par1,
int par2,
int par3)
Whether one of the neighboring blocks is putting power into this block. |
boolean |
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 |
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. |
boolean |
isBlockIndirectlyProvidingPowerTo(int par1,
int par2,
int par3,
int par4)
Is a block next to you getting powered (if its an attachable block) or is it providing power directly to you. |
boolean |
isBlockNormalCube(int par1,
int par2,
int par3)
Indicate if a material is a normal solid opaque cube. |
boolean |
isBlockNormalCubeDefault(int par1,
int par2,
int par3,
boolean par4)
Checks if the block is a solid, normal cube. |
boolean |
isBlockOpaqueCube(int par1,
int par2,
int par3)
Returns true if the block at the specified coordinates is an opaque cube. |
boolean |
isBlockProvidingPowerTo(int par1,
int par2,
int par3,
int par4)
Is this block powering in the specified direction Args: x, y, z, direction |
boolean |
isBlockSolidOnSide(int x,
int y,
int z,
ForgeDirection side)
Determine if the given block is considered solid on the specified side. |
boolean |
isBlockSolidOnSide(int x,
int y,
int z,
ForgeDirection side,
boolean _default)
Determine if the given block is considered solid on the specified side. |
boolean |
isBoundingBoxBurning(AxisAlignedBB par1AxisAlignedBB)
Returns whether or not the given bounding box is on fire or not |
boolean |
isDaytime()
Checks whether its daytime by seeing if the light subtracted from the skylight is less than 4 |
boolean |
isMaterialInBB(AxisAlignedBB par1AxisAlignedBB,
Material par2Material)
Returns true if the given bounding box contains the given material |
boolean |
isRaining()
Returns true if the current rain strength is greater than 0.2 |
boolean |
isThundering()
Returns true if the current thunder strength (weighted with the rain strength) is greater than 0.9 |
void |
joinEntityInSurroundings(Entity par1Entity)
|
WorldSavedData |
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. |
void |
markBlockForRenderUpdate(int par1,
int par2,
int par3)
On the client, re-renders this block. |
void |
markBlockForRenderUpdate2(int par1,
int par2,
int par3)
On the client, re-renders this block. |
void |
markBlockForUpdate(int par1,
int par2,
int par3)
On the client, re-renders the block. |
void |
markBlockRangeForRenderUpdate(int par1,
int par2,
int par3,
int par4,
int par5,
int par6)
On the client, re-renders all blocks in this range, inclusive. |
void |
markBlocksDirtyVertical(int par1,
int par2,
int par3,
int par4)
marks a vertical line of blocks as dirty |
void |
markTileEntityForDespawn(TileEntity par1TileEntity)
adds tile entity to despawn list (renamed from markEntityForDespawn) |
Explosion |
newExplosion(Entity par1Entity,
double par2,
double par4,
double par6,
float par8,
boolean par9,
boolean par10)
returns a new explosion. |
void |
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 |
notifyBlocksOfNeighborChange(int par1,
int par2,
int par3,
int par4)
Notifies neighboring blocks that this specified block changed Args: x, y, z, blockID |
void |
playAuxSFX(int par1,
int par2,
int par3,
int par4,
int par5)
See description for playAuxSFX. |
void |
playAuxSFXAtEntity(EntityPlayer par1EntityPlayer,
int par2,
int par3,
int par4,
int par5,
int par6)
See description for playAuxSFX. |
void |
playRecord(String par1Str,
int par2,
int par3,
int par4)
Plays a record at the specified coordinates of the specified name. |
void |
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 |
playSoundAtEntity(Entity par1Entity,
String par2Str,
float par3,
float par4)
Plays a sound at the entity's position. |
void |
playSoundEffect(double par1,
double par3,
double par5,
String par7Str,
float par8,
float par9)
Play a sound effect. |
void |
playSoundToNearExcept(EntityPlayer par1EntityPlayer,
String par2Str,
float par3,
float par4)
Plays sound to all near players except the player reference given |
MovingObjectPosition |
rayTraceBlocks_do_do(Vec3 par1Vec3,
Vec3 par2Vec3,
boolean par3,
boolean par4)
|
MovingObjectPosition |
rayTraceBlocks_do(Vec3 par1Vec3,
Vec3 par2Vec3,
boolean par3)
|
MovingObjectPosition |
rayTraceBlocks(Vec3 par1Vec3,
Vec3 par2Vec3)
ray traces all blocks, including non-collideable ones |
void |
releaseEntitySkin(Entity par1Entity)
Decrement the reference counter for this entity's skin image data |
void |
removeBlockTileEntity(int par1,
int par2,
int par3)
Removes the TileEntity for a given block in X,Y,Z coordinates |
void |
removeEntity(Entity par1Entity)
remove dat player from dem servers |
void |
removeWorldAccess(IWorldAccess par1IWorldAccess)
|
void |
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 |
scheduleBlockUpdateFromLoad(int par1,
int par2,
int par3,
int par4,
int par5)
Schedules a block update from the saved information in a chunk. |
List |
selectEntitiesWithinAABB(Class par1Class,
AxisAlignedBB par2AxisAlignedBB,
IEntitySelector par3IEntitySelector)
|
void |
sendQuittingDisconnectingPacket()
|
void |
setAllowedSpawnTypes(boolean par1,
boolean par2)
Set which types of mobs are allowed to spawn (peaceful vs hostile). |
boolean |
setBlock(int par1,
int par2,
int par3,
int par4)
Sets the block to the specified blockID at the block coordinates Args x, y, z, blockID |
boolean |
setBlockAndMetadata(int par1,
int par2,
int par3,
int par4,
int par5)
Sets the block ID and metadata of a block in global coordinates |
boolean |
setBlockAndMetadataWithNotify(int par1,
int par2,
int par3,
int par4,
int par5)
Sets the block ID and metadata, then notifies neighboring blocks of the change Params: x, y, z, BlockID, Metadata |
boolean |
setBlockAndMetadataWithUpdate(int par1,
int par2,
int par3,
int par4,
int par5,
boolean par6)
Sets the block ID and metadata of a block, optionally marking it as needing update. |
boolean |
setBlockMetadata(int par1,
int par2,
int par3,
int par4)
Set the metadata of a block in global coordinates |
void |
setBlockMetadataWithNotify(int par1,
int par2,
int par3,
int par4)
Sets the blocks metadata and if set will then notify blocks that this block changed. |
void |
setBlockTileEntity(int par1,
int par2,
int par3,
TileEntity par4TileEntity)
Sets the TileEntity for a given block in X, Y, Z coordinates |
boolean |
setBlockWithNotify(int par1,
int par2,
int par3,
int par4)
Sets a block and notifies relevant systems with the block change Args: x, y, z, blockID |
void |
setEntityDead(Entity par1Entity)
Dismounts the entity (and anything riding the entity), sets the dead flag, and removes the player entity from the player entity list. |
void |
setEntityState(Entity par1Entity,
byte par2)
sends a Packet 38 (Entity Status) to all tracked players of that entity |
void |
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 |
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. |
void |
setRainStrength(float par1)
|
Random |
setRandomSeed(int par1,
int par2,
int par3)
puts the World Random seed to a specific state dependant on the inputs |
void |
setSpawnLocation()
|
void |
setSpawnLocation(int par1,
int par2,
int par3)
|
void |
setWorldTime(long par1)
Sets the world time. |
boolean |
spawnEntityInWorld(Entity par1Entity)
Called to place all entities as part of a world |
void |
spawnParticle(String par1Str,
double par2,
double par4,
double par6,
double par8,
double par10,
double par12)
Spawns a particle. |
void |
tick()
Runs a single tick for the world |
boolean |
tickUpdates(boolean par1)
Runs through the list of updates to run and ticks them |
void |
toggleRain()
|
void |
unloadEntities(List par1List)
Adds a list of entities to be unloaded on the next pass of World.updateEntities() |
void |
updateAllLightTypes(int par1,
int par2,
int par3)
|
void |
updateAllPlayersSleepingFlag()
Updates the flag that indicates whether or not all players in the world are sleeping. |
void |
updateEntities()
Updates (and cleans up) entities and tile entities |
void |
updateEntity(Entity par1Entity)
Will update the entity in the world if the chunk the entity is in is currently loaded. |
void |
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. |
void |
updateLightByType(EnumSkyBlock par1EnumSkyBlock,
int par2,
int par3,
int par4)
|
void |
updateTileEntityChunkAndDoNothing(int par1,
int par2,
int par3,
TileEntity par4TileEntity)
marks the chunk that contains this tilentity as modified and then calls worldAccesses.doNothingWithTileEntity |
void |
updateWeatherBody()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double MAX_ENTITY_RADIUS
public final MapStorage perWorldStorage
public boolean scheduledUpdatesAreImmediate
public List loadedEntityList
public List loadedTileEntityList
public List playerEntities
public List weatherEffects
public int skylightSubtracted
public float prevRainingStrength
public float rainingStrength
public float prevThunderingStrength
public float thunderingStrength
public int lastLightningBolt
public boolean editingBlocks
public int difficultySetting
public Random rand
public final WorldProvider provider
public boolean findingSpawnPoint
public MapStorage mapStorage
public VillageCollection villageCollectionObj
public final Profiler theProfiler
public Set activeChunkSet
public boolean isRemote
Constructor Detail |
---|
public World(ISaveHandler par1ISaveHandler, String par2Str, WorldProvider par3WorldProvider, WorldSettings par4WorldSettings, Profiler par5Profiler)
public World(ISaveHandler par1ISaveHandler, String par2Str, WorldSettings par3WorldSettings, WorldProvider par4WorldProvider, Profiler par5Profiler)
Method Detail |
---|
public BiomeGenBase getBiomeGenForCoords(int par1, int par2)
getBiomeGenForCoords
in interface IBlockAccess
public BiomeGenBase getBiomeGenForCoordsBody(int par1, int par2)
public WorldChunkManager getWorldChunkManager()
public void setSpawnLocation()
public int getFirstUncoveredBlock(int par1, int par2)
public int getBlockId(int par1, int par2, int par3)
getBlockId
in interface IBlockAccess
public int getBlockLightOpacity(int par1, int par2, int par3)
public boolean isAirBlock(int par1, int par2, int par3)
isAirBlock
in interface IBlockAccess
public boolean blockHasTileEntity(int par1, int par2, int par3)
public int func_85175_e(int par1, int par2, int par3)
public boolean blockExists(int par1, int par2, int par3)
public boolean doChunksNearChunkExist(int par1, int par2, int par3, int par4)
public boolean checkChunksExist(int par1, int par2, int par3, int par4, int par5, int par6)
public Chunk getChunkFromBlockCoords(int par1, int par2)
public Chunk getChunkFromChunkCoords(int par1, int par2)
public boolean setBlockAndMetadata(int par1, int par2, int par3, int par4, int par5)
public boolean setBlockAndMetadataWithUpdate(int par1, int par2, int par3, int par4, int par5, boolean par6)
public boolean setBlock(int par1, int par2, int par3, int par4)
public Material getBlockMaterial(int par1, int par2, int par3)
getBlockMaterial
in interface IBlockAccess
public int getBlockMetadata(int par1, int par2, int par3)
getBlockMetadata
in interface IBlockAccess
public void setBlockMetadataWithNotify(int par1, int par2, int par3, int par4)
public boolean setBlockMetadata(int par1, int par2, int par3, int par4)
public boolean setBlockWithNotify(int par1, int par2, int par3, int par4)
public boolean setBlockAndMetadataWithNotify(int par1, int par2, int par3, int par4, int par5)
public void markBlockForUpdate(int par1, int par2, int par3)
public void notifyBlockChange(int par1, int par2, int par3, int par4)
public void markBlocksDirtyVertical(int par1, int par2, int par3, int par4)
public void markBlockForRenderUpdate2(int par1, int par2, int par3)
public void markBlockRangeForRenderUpdate(int par1, int par2, int par3, int par4, int par5, int par6)
public void notifyBlocksOfNeighborChange(int par1, int par2, int par3, int par4)
public boolean canBlockSeeTheSky(int par1, int par2, int par3)
public int getFullBlockLightValue(int par1, int par2, int par3)
public int getBlockLightValue(int par1, int par2, int par3)
public int getBlockLightValue_do(int par1, int par2, int par3, boolean par4)
public int getHeightValue(int par1, int par2)
public int func_82734_g(int par1, int par2)
public int getSkyBlockTypeBrightness(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4)
public int getSavedLightValue(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4)
public void setLightValue(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4, int par5)
public void markBlockForRenderUpdate(int par1, int par2, int par3)
public int getLightBrightnessForSkyBlocks(int par1, int par2, int par3, int par4)
getLightBrightnessForSkyBlocks
in interface IBlockAccess
public float getBrightness(int par1, int par2, int par3, int par4)
getBrightness
in interface IBlockAccess
public float getLightBrightness(int par1, int par2, int par3)
getLightBrightness
in interface IBlockAccess
public boolean isDaytime()
public MovingObjectPosition rayTraceBlocks(Vec3 par1Vec3, Vec3 par2Vec3)
public MovingObjectPosition rayTraceBlocks_do(Vec3 par1Vec3, Vec3 par2Vec3, boolean par3)
public MovingObjectPosition rayTraceBlocks_do_do(Vec3 par1Vec3, Vec3 par2Vec3, boolean par3, boolean par4)
public void playSoundAtEntity(Entity par1Entity, String par2Str, float par3, float par4)
public void playSoundToNearExcept(EntityPlayer par1EntityPlayer, String par2Str, float par3, float par4)
public void playSoundEffect(double par1, double par3, double par5, String par7Str, float par8, float par9)
public void playSound(double par1, double par3, double par5, String par7Str, float par8, float par9, boolean par10)
public void playRecord(String par1Str, int par2, int par3, int par4)
public void spawnParticle(String par1Str, double par2, double par4, double par6, double par8, double par10, double par12)
public boolean addWeatherEffect(Entity par1Entity)
public boolean spawnEntityInWorld(Entity par1Entity)
public void releaseEntitySkin(Entity par1Entity)
public void setEntityDead(Entity par1Entity)
public void removeEntity(Entity par1Entity)
public void addWorldAccess(IWorldAccess par1IWorldAccess)
public List getCollidingBoundingBoxes(Entity par1Entity, AxisAlignedBB par2AxisAlignedBB)
public List getAllCollidingBoundingBoxes(AxisAlignedBB par1AxisAlignedBB)
public int calculateSkylightSubtracted(float par1)
public void removeWorldAccess(IWorldAccess par1IWorldAccess)
public float getSunBrightness(float par1)
public Vec3 getSkyColor(Entity par1Entity, float par2)
public Vec3 getSkyColorBody(Entity par1Entity, float par2)
public float getCelestialAngle(float par1)
public int getMoonPhase(float par1)
public float getCelestialAngleRadians(float par1)
public Vec3 drawClouds(float par1)
public Vec3 drawCloudsBody(float par1)
public Vec3 getFogColor(float par1)
public int getPrecipitationHeight(int par1, int par2)
public int getTopSolidOrLiquidBlock(int par1, int par2)
public float getStarBrightness(float par1)
public float getStarBrightnessBody(float par1)
public void scheduleBlockUpdate(int par1, int par2, int par3, int par4, int par5)
public void func_82740_a(int par1, int par2, int par3, int par4, int par5, int par6)
public void scheduleBlockUpdateFromLoad(int par1, int par2, int par3, int par4, int par5)
public void updateEntities()
public void addTileEntity(Collection par1Collection)
public void updateEntity(Entity par1Entity)
public void updateEntityWithOptionalForce(Entity par1Entity, boolean par2)
public boolean checkIfAABBIsClear(AxisAlignedBB par1AxisAlignedBB)
public boolean checkIfAABBIsClearExcludingEntity(AxisAlignedBB par1AxisAlignedBB, Entity par2Entity)
public boolean isAABBNonEmpty(AxisAlignedBB par1AxisAlignedBB)
public boolean isAnyLiquid(AxisAlignedBB par1AxisAlignedBB)
public boolean isBoundingBoxBurning(AxisAlignedBB par1AxisAlignedBB)
public boolean handleMaterialAcceleration(AxisAlignedBB par1AxisAlignedBB, Material par2Material, Entity par3Entity)
public boolean isMaterialInBB(AxisAlignedBB par1AxisAlignedBB, Material par2Material)
public boolean isAABBInMaterial(AxisAlignedBB par1AxisAlignedBB, Material par2Material)
public Explosion createExplosion(Entity par1Entity, double par2, double par4, double par6, float par8, boolean par9)
public Explosion newExplosion(Entity par1Entity, double par2, double par4, double par6, float par8, boolean par9, boolean par10)
public float getBlockDensity(Vec3 par1Vec3, AxisAlignedBB par2AxisAlignedBB)
public boolean extinguishFire(EntityPlayer par1EntityPlayer, int par2, int par3, int par4, int par5)
public String getDebugLoadedEntities()
public String getProviderName()
public TileEntity getBlockTileEntity(int par1, int par2, int par3)
getBlockTileEntity
in interface IBlockAccess
public void setBlockTileEntity(int par1, int par2, int par3, TileEntity par4TileEntity)
public void removeBlockTileEntity(int par1, int par2, int par3)
public void markTileEntityForDespawn(TileEntity par1TileEntity)
public boolean isBlockOpaqueCube(int par1, int par2, int par3)
isBlockOpaqueCube
in interface IBlockAccess
public boolean isBlockNormalCube(int par1, int par2, int par3)
isBlockNormalCube
in interface IBlockAccess
public boolean func_85174_u(int par1, int par2, int par3)
public boolean doesBlockHaveSolidTopSurface(int par1, int par2, int par3)
doesBlockHaveSolidTopSurface
in interface IBlockAccess
public boolean isBlockNormalCubeDefault(int par1, int par2, int par3, boolean par4)
public void calculateInitialSkylight()
public void setAllowedSpawnTypes(boolean par1, boolean par2)
public void tick()
public void calculateInitialWeatherBody()
public void updateWeatherBody()
public void toggleRain()
public boolean isBlockFreezable(int par1, int par2, int par3)
public boolean isBlockFreezableNaturally(int par1, int par2, int par3)
public boolean canBlockFreeze(int par1, int par2, int par3, boolean par4)
public boolean canBlockFreezeBody(int par1, int par2, int par3, boolean par4)
public boolean canSnowAt(int par1, int par2, int par3)
public boolean canSnowAtBody(int par1, int par2, int par3)
public void updateAllLightTypes(int par1, int par2, int par3)
public void updateLightByType(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4)
public boolean tickUpdates(boolean par1)
public List getPendingBlockUpdates(Chunk par1Chunk, boolean par2)
public List getEntitiesWithinAABBExcludingEntity(Entity par1Entity, AxisAlignedBB par2AxisAlignedBB)
public List getEntitiesWithinAABB(Class par1Class, AxisAlignedBB par2AxisAlignedBB)
public List selectEntitiesWithinAABB(Class par1Class, AxisAlignedBB par2AxisAlignedBB, IEntitySelector par3IEntitySelector)
public Entity findNearestEntityWithinAABB(Class par1Class, AxisAlignedBB par2AxisAlignedBB, Entity par3Entity)
public abstract Entity getEntityByID(int var1)
public List getLoadedEntityList()
public void updateTileEntityChunkAndDoNothing(int par1, int par2, int par3, TileEntity par4TileEntity)
public int countEntities(Class par1Class)
public void addLoadedEntities(List par1List)
public void unloadEntities(List par1List)
public boolean canPlaceEntityOnSide(int par1, int par2, int par3, int par4, boolean par5, int par6, Entity par7Entity)
public PathEntity getPathEntityToEntity(Entity par1Entity, Entity par2Entity, float par3, boolean par4, boolean par5, boolean par6, boolean par7)
public PathEntity getEntityPathToXYZ(Entity par1Entity, int par2, int par3, int par4, float par5, boolean par6, boolean par7, boolean par8, boolean par9)
public boolean isBlockProvidingPowerTo(int par1, int par2, int par3, int par4)
isBlockProvidingPowerTo
in interface IBlockAccess
public boolean isBlockGettingPowered(int par1, int par2, int par3)
public boolean isBlockIndirectlyProvidingPowerTo(int par1, int par2, int par3, int par4)
public boolean isBlockIndirectlyGettingPowered(int par1, int par2, int par3)
public EntityPlayer getClosestPlayerToEntity(Entity par1Entity, double par2)
public EntityPlayer getClosestPlayer(double par1, double par3, double par5, double par7)
public EntityPlayer getClosestVulnerablePlayerToEntity(Entity par1Entity, double par2)
public EntityPlayer getClosestVulnerablePlayer(double par1, double par3, double par5, double par7)
public EntityPlayer getPlayerEntityByName(String par1Str)
public void sendQuittingDisconnectingPacket()
public void checkSessionLock() throws MinecraftException
MinecraftException
public void func_82738_a(long par1)
public long getSeed()
public long getTotalWorldTime()
public long getWorldTime()
public void setWorldTime(long par1)
public ChunkCoordinates getSpawnPoint()
public void setSpawnLocation(int par1, int par2, int par3)
public void joinEntityInSurroundings(Entity par1Entity)
public boolean canMineBlock(EntityPlayer par1EntityPlayer, int par2, int par3, int par4)
public boolean canMineBlockBody(EntityPlayer par1EntityPlayer, int par2, int par3, int par4)
public void setEntityState(Entity par1Entity, byte par2)
public IChunkProvider getChunkProvider()
public void addBlockEvent(int par1, int par2, int par3, int par4, int par5, int par6)
public ISaveHandler getSaveHandler()
public WorldInfo getWorldInfo()
public GameRules getGameRules()
public void updateAllPlayersSleepingFlag()
public float getWeightedThunderStrength(float par1)
public float getRainStrength(float par1)
public void setRainStrength(float par1)
public boolean isThundering()
public boolean isRaining()
public boolean canLightningStrikeAt(int par1, int par2, int par3)
public boolean isBlockHighHumidity(int par1, int par2, int par3)
public void setItemData(String par1Str, WorldSavedData par2WorldSavedData)
public WorldSavedData loadItemData(Class par1Class, String par2Str)
public int getUniqueDataId(String par1Str)
public void func_82739_e(int par1, int par2, int par3, int par4, int par5)
public void playAuxSFX(int par1, int par2, int par3, int par4, int par5)
public void playAuxSFXAtEntity(EntityPlayer par1EntityPlayer, int par2, int par3, int par4, int par5, int par6)
public int getHeight()
getHeight
in interface IBlockAccess
public int getActualHeight()
public IUpdatePlayerListBox func_82735_a(EntityMinecart par1EntityMinecart)
public Random setRandomSeed(int par1, int par2, int par3)
public ChunkPosition findClosestStructure(String par1Str, int par2, int par3, int par4)
public boolean extendedLevelsInChunkCache()
extendedLevelsInChunkCache
in interface IBlockAccess
public double getHorizon()
public CrashReportCategory addWorldInfoToCrashReport(CrashReport par1CrashReport)
public void destroyBlockInWorldPartially(int par1, int par2, int par3, int par4, int par5)
public Vec3Pool getWorldVec3Pool()
getWorldVec3Pool
in interface IBlockAccess
public Calendar getCurrentDate()
public void func_92088_a(double par1, double par3, double par5, double par7, double par9, double par11, NBTTagCompound par13NBTTagCompound)
public void addTileEntity(TileEntity entity)
entity
- The TileEntity to be added.public boolean isBlockSolidOnSide(int x, int y, int z, ForgeDirection side)
x
- Block X Positiony
- Block Y Positionz
- Block Z Positionside
- The Side in question
public boolean isBlockSolidOnSide(int x, int y, int z, ForgeDirection side, boolean _default)
x
- Block X Positiony
- Block Y Positionz
- Block Z Positionside
- The Side in question_default
- The defult to return if the block doesn't exist.
public com.google.common.collect.ImmutableSetMultimap<ChunkCoordIntPair,ForgeChunkManager.Ticket> getPersistentChunks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |