public abstract class World extends java.lang.Object implements IBlockAccess
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set |
activeChunkSet
Positions to update
|
boolean |
captureBlockSnapshots |
java.util.ArrayList<BlockSnapshot> |
capturedBlockSnapshots |
protected IChunkProvider |
chunkProvider
Handles chunk operations and caching
|
EnumDifficulty |
difficultySetting
Option > Difficulty setting (0 - 3)
|
protected int |
DIST_HASH_MAGIC
magic number used to generate fast random numbers for 3d distribution within a chunk
|
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.
|
java.util.List |
loadedEntityList
A list of all Entities in all currently-loaded chunks
|
java.util.List |
loadedTileEntityList
A list of the loaded tile entities in the world
|
MapStorage |
mapStorage |
static double |
MAX_ENTITY_RADIUS
Used in the getEntitiesWithinAABB functions to expand the search area for entities.
|
MapStorage |
perWorldStorage |
java.util.List |
playerEntities
Array list of players in the world.
|
float |
prevRainingStrength |
float |
prevThunderingStrength |
WorldProvider |
provider
The WorldProvider instance that World uses.
|
float |
rainingStrength |
java.util.Random |
rand
RNG for World.
|
boolean |
restoringBlockSnapshots |
protected ISaveHandler |
saveHandler |
boolean |
scheduledUpdatesAreImmediate
boolean; if true updates scheduled by scheduleBlockUpdate happen immediately
|
int |
skylightSubtracted
How much light is subtracted from full daylight
|
protected boolean |
spawnHostileMobs
indicates if enemies are spawned or not
|
protected boolean |
spawnPeacefulMobs
A flag indicating whether we should spawn peaceful mobs.
|
Profiler |
theProfiler |
float |
thunderingStrength |
protected java.util.List |
unloadedEntityList |
protected int |
updateLCG
Contains the current Linear Congruential Generator seed for block updates.
|
VillageCollection |
villageCollectionObj |
protected VillageSiege |
villageSiegeObj |
java.util.List |
weatherEffects
a list of all the lightning entities
|
protected java.util.List |
worldAccesses |
protected WorldInfo |
worldInfo
holds information about a world (size on disk, time, spawn point, seed, ...)
|
protected Scoreboard |
worldScoreboard |
| Constructor and Description |
|---|
World(ISaveHandler p_i45368_1_,
java.lang.String p_i45368_2_,
WorldProvider p_i45368_3_,
WorldSettings p_i45368_4_,
Profiler p_i45368_5_) |
World(ISaveHandler p_i45369_1_,
java.lang.String p_i45369_2_,
WorldSettings p_i45369_3_,
WorldProvider p_i45369_4_,
Profiler p_i45369_5_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockEvent(int p_147452_1_,
int p_147452_2_,
int p_147452_3_,
Block p_147452_4_,
int p_147452_5_,
int p_147452_6_)
Adds a block event with the given Args to the blockEventCache.
|
void |
addLoadedEntities(java.util.List p_72868_1_)
adds entities to the loaded entities list, and loads thier skins.
|
void |
addTileEntity(TileEntity entity)
Adds a single TileEntity to the world.
|
boolean |
addWeatherEffect(Entity p_72942_1_)
adds a lightning bolt to the list of lightning bolts in this world.
|
void |
addWorldAccess(IWorldAccess p_72954_1_)
Adds a IWorldAccess to the list of worldAccesses
|
CrashReportCategory |
addWorldInfoToCrashReport(CrashReport p_72914_1_)
Adds some basic stats of the world to the given crash report.
|
boolean |
blockExists(int p_72899_1_,
int p_72899_2_,
int p_72899_3_)
Returns whether a block exists at world coordinates x, y, z
|
void |
calculateInitialSkylight()
Called on construction of the World class to setup the initial skylight values
|
void |
calculateInitialWeatherBody() |
int |
calculateSkylightSubtracted(float p_72967_1_)
Returns the amount of skylight subtracted for the current time
|
boolean |
canBlockFreeze(int p_72834_1_,
int p_72834_2_,
int p_72834_3_,
boolean p_72834_4_)
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 p_72834_1_,
int p_72834_2_,
int p_72834_3_,
boolean p_72834_4_) |
boolean |
canBlockSeeTheSky(int p_72937_1_,
int p_72937_2_,
int p_72937_3_)
Checks if the specified block is able to see the sky
|
boolean |
canLightningStrikeAt(int p_72951_1_,
int p_72951_2_,
int p_72951_3_) |
boolean |
canMineBlock(EntityPlayer p_72962_1_,
int p_72962_2_,
int p_72962_3_,
int p_72962_4_)
Called when checking if a certain block can be mined or not.
|
boolean |
canMineBlockBody(EntityPlayer par1EntityPlayer,
int par2,
int par3,
int par4) |
boolean |
canPlaceEntityOnSide(Block p_147472_1_,
int p_147472_2_,
int p_147472_3_,
int p_147472_4_,
boolean p_147472_5_,
int p_147472_6_,
Entity p_147472_7_,
ItemStack p_147472_8_)
Returns true if the given Entity can be placed on the given side of the given block position.
|
boolean |
canSnowAtBody(int p_147478_1_,
int p_147478_2_,
int p_147478_3_,
boolean p_147478_4_) |
boolean |
checkBlockCollision(AxisAlignedBB p_72829_1_)
Returns true if there are any blocks in the region constrained by an AxisAlignedBB
|
boolean |
checkChunksExist(int p_72904_1_,
int p_72904_2_,
int p_72904_3_,
int p_72904_4_,
int p_72904_5_,
int p_72904_6_)
Checks between a min and max all the chunks inbetween actually exist.
|
boolean |
checkNoEntityCollision(AxisAlignedBB p_72855_1_)
Returns true if there are no solid, live entities in the specified AxisAlignedBB
|
boolean |
checkNoEntityCollision(AxisAlignedBB p_72917_1_,
Entity p_72917_2_)
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
|
protected boolean |
chunkExists(int p_72916_1_,
int p_72916_2_)
Returns whether a chunk exists at chunk coordinates x, y
|
int |
countEntities(java.lang.Class p_72907_1_)
Counts how many entities of an entity class exist in the world.
|
int |
countEntities(EnumCreatureType type,
boolean forSpawnCount)
Returns a count of entities that classify themselves as the specified creature type.
|
protected abstract IChunkProvider |
createChunkProvider()
Creates the chunk provider for this world.
|
Explosion |
createExplosion(Entity p_72876_1_,
double p_72876_2_,
double p_72876_4_,
double p_72876_6_,
float p_72876_8_,
boolean p_72876_9_)
Creates an explosion.
|
void |
destroyBlockInWorldPartially(int p_147443_1_,
int p_147443_2_,
int p_147443_3_,
int p_147443_4_,
int p_147443_5_)
Starts (or continues) destroying a block with given ID at the given coordinates for the given partially destroyed
value
|
boolean |
doChunksNearChunkExist(int p_72873_1_,
int p_72873_2_,
int p_72873_3_,
int p_72873_4_)
Checks if any of the chunks within distance (argument 4) blocks of the given block exist
|
static boolean |
doesBlockHaveSolidTopSurface(IBlockAccess p_147466_0_,
int p_147466_1_,
int p_147466_2_,
int p_147466_3_)
Returns true if the block at the given coordinate has a solid (buildable) top surface.
|
Vec3 |
drawCloudsBody(float p_72824_1_) |
boolean |
extendedLevelsInChunkCache()
set by !
|
boolean |
extinguishFire(EntityPlayer p_72886_1_,
int p_72886_2_,
int p_72886_3_,
int p_72886_4_,
int p_72886_5_)
If the block in the given direction of the given coordinate is fire, extinguish it.
|
ChunkPosition |
findClosestStructure(java.lang.String p_147440_1_,
int p_147440_2_,
int p_147440_3_,
int p_147440_4_)
Returns the location of the closest structure of the specified type.
|
Entity |
findNearestEntityWithinAABB(java.lang.Class p_72857_1_,
AxisAlignedBB p_72857_2_,
Entity p_72857_3_) |
protected void |
finishSetup() |
void |
func_147446_b(int p_147446_1_,
int p_147446_2_,
int p_147446_3_,
Block p_147446_4_,
int p_147446_5_,
int p_147446_6_) |
MovingObjectPosition |
func_147447_a(Vec3 p_147447_1_,
Vec3 p_147447_2_,
boolean p_147447_3_,
boolean p_147447_4_,
boolean p_147447_5_) |
void |
func_147448_a(java.util.Collection p_147448_1_) |
void |
func_147450_X() |
boolean |
func_147451_t(int p_147451_1_,
int p_147451_2_,
int p_147451_3_) |
void |
func_147453_f(int p_147453_1_,
int p_147453_2_,
int p_147453_3_,
Block p_147453_4_) |
protected void |
func_147456_g() |
void |
func_147457_a(TileEntity p_147457_1_) |
java.util.List |
func_147461_a(AxisAlignedBB p_147461_1_) |
float |
func_147462_b(double p_147462_1_,
double p_147462_3_,
double p_147462_5_) |
protected void |
func_147467_a(int p_147467_1_,
int p_147467_2_,
Chunk p_147467_3_) |
boolean |
func_147469_q(int p_147469_1_,
int p_147469_2_,
int p_147469_3_) |
boolean |
func_147470_e(AxisAlignedBB p_147470_1_) |
float |
func_147473_B(int p_147473_1_,
int p_147473_2_,
int p_147473_3_) |
boolean |
func_147478_e(int p_147478_1_,
int p_147478_2_,
int p_147478_3_,
boolean p_147478_4_) |
void |
func_147479_m(int p_147479_1_,
int p_147479_2_,
int p_147479_3_) |
boolean |
func_147480_a(int p_147480_1_,
int p_147480_2_,
int p_147480_3_,
boolean p_147480_4_) |
EntityPlayer |
func_152378_a(java.util.UUID p_152378_1_) |
protected abstract int |
func_152379_p() |
void |
func_82738_a(long p_82738_1_) |
int |
getActualHeight()
Returns current world height.
|
BiomeGenBase |
getBiomeGenForCoords(int p_72807_1_,
int p_72807_2_)
Gets the biome for a given set of x/z coordinates
|
BiomeGenBase |
getBiomeGenForCoordsBody(int p_72807_1_,
int p_72807_2_) |
Block |
getBlock(int p_147439_1_,
int p_147439_2_,
int p_147439_3_) |
float |
getBlockDensity(Vec3 p_72842_1_,
AxisAlignedBB p_72842_2_)
Gets the percentage of real blocks within within a bounding box, along a specified vector.
|
int |
getBlockLightOpacity(int x,
int y,
int z)
Readded as it was removed, very useful helper function
|
int |
getBlockLightValue_do(int p_72849_1_,
int p_72849_2_,
int p_72849_3_,
boolean p_72849_4_)
Gets the light value of a block location.
|
int |
getBlockLightValue(int p_72957_1_,
int p_72957_2_,
int p_72957_3_)
Gets the light value of a block location
|
int |
getBlockMetadata(int p_72805_1_,
int p_72805_2_,
int p_72805_3_)
Returns the block metadata at coords x,y,z
|
int |
getBlockPowerInput(int p_94577_1_,
int p_94577_2_,
int p_94577_3_)
Returns the highest redstone signal strength powering the given block.
|
float |
getCelestialAngle(float p_72826_1_)
calls calculateCelestialAngle
|
float |
getCelestialAngleRadians(float p_72929_1_)
Return getCelestialAngle()*2*PI
|
Chunk |
getChunkFromBlockCoords(int p_72938_1_,
int p_72938_2_)
Returns a chunk looked up by block coordinates.
|
Chunk |
getChunkFromChunkCoords(int p_72964_1_,
int p_72964_2_)
Returns back a chunk looked up by chunk coordinates Args: x, y
|
int |
getChunkHeightMapMinimum(int p_82734_1_,
int p_82734_2_)
Gets the heightMapMinimum field of the given chunk, or 0 if the chunk is not loaded.
|
IChunkProvider |
getChunkProvider()
gets the IChunkProvider this world uses.
|
EntityPlayer |
getClosestPlayer(double p_72977_1_,
double p_72977_3_,
double p_72977_5_,
double p_72977_7_)
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 p_72890_1_,
double p_72890_2_)
Gets the closest player to the entity within the specified distance (if distance is less than 0 then ignored).
|
EntityPlayer |
getClosestVulnerablePlayer(double p_72846_1_,
double p_72846_3_,
double p_72846_5_,
double p_72846_7_)
Returns the closest vulnerable player within the given radius, or null if none is found.
|
EntityPlayer |
getClosestVulnerablePlayerToEntity(Entity p_72856_1_,
double p_72856_2_)
Returns the closest vulnerable player to this entity within the given radius, or null if none is found
|
Vec3 |
getCloudColour(float p_72824_1_) |
java.util.List |
getCollidingBoundingBoxes(Entity p_72945_1_,
AxisAlignedBB p_72945_2_)
Returns a list of bounding boxes that collide with aabb excluding the passed in entity's collision.
|
java.util.Calendar |
getCurrentDate()
returns a calendar object containing the current date
|
float |
getCurrentMoonPhaseFactor()
gets the current fullness of the moon expressed as a float between 1.0 and 0.0, in steps of .25
|
float |
getCurrentMoonPhaseFactorBody() |
java.lang.String |
getDebugLoadedEntities()
This string is 'All: (number of loaded entities)' Viewable by press ing F3
|
java.util.List |
getEntitiesWithinAABB(java.lang.Class p_72872_1_,
AxisAlignedBB p_72872_2_)
Returns all entities of the specified class type which intersect with the AABB.
|
java.util.List |
getEntitiesWithinAABBExcludingEntity(Entity p_72839_1_,
AxisAlignedBB p_72839_2_)
Will get all entities within the specified AABB excluding the one passed into it.
|
java.util.List |
getEntitiesWithinAABBExcludingEntity(Entity p_94576_1_,
AxisAlignedBB p_94576_2_,
IEntitySelector p_94576_3_) |
abstract Entity |
getEntityByID(int p_73045_1_)
Returns the Entity with the given ID, or null if it doesn't exist in this World.
|
PathEntity |
getEntityPathToXYZ(Entity p_72844_1_,
int p_72844_2_,
int p_72844_3_,
int p_72844_4_,
float p_72844_5_,
boolean p_72844_6_,
boolean p_72844_7_,
boolean p_72844_8_,
boolean p_72844_9_) |
Vec3 |
getFogColor(float p_72948_1_)
Returns vector(ish) with R/G/B for fog
|
int |
getFullBlockLightValue(int p_72883_1_,
int p_72883_2_,
int p_72883_3_)
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 p_72976_1_,
int p_72976_2_)
Returns the y coordinate with a block in it at this x, z coordinate
|
double |
getHorizon()
Returns horizon height for use in rendering the sky.
|
int |
getIndirectPowerLevelTo(int p_72878_1_,
int p_72878_2_,
int p_72878_3_,
int p_72878_4_)
Gets the power level from a certain block face.
|
boolean |
getIndirectPowerOutput(int p_94574_1_,
int p_94574_2_,
int p_94574_3_,
int p_94574_4_)
Returns the indirect signal strength being outputted by the given block in the *opposite* of the given direction.
|
float |
getLightBrightness(int p_72801_1_,
int p_72801_2_,
int p_72801_3_)
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 p_72802_1_,
int p_72802_2_,
int p_72802_3_,
int p_72802_4_)
Any Light rendered on a 1.8 Block goes through here
|
java.util.List |
getLoadedEntityList()
Accessor for world Loaded Entity List
|
int |
getMoonPhase() |
PathEntity |
getPathEntityToEntity(Entity p_72865_1_,
Entity p_72865_2_,
float p_72865_3_,
boolean p_72865_4_,
boolean p_72865_5_,
boolean p_72865_6_,
boolean p_72865_7_) |
java.util.List |
getPendingBlockUpdates(Chunk p_72920_1_,
boolean p_72920_2_) |
com.google.common.collect.ImmutableSetMultimap<ChunkCoordIntPair,ForgeChunkManager.Ticket> |
getPersistentChunks()
Get the persistent chunks for this world
|
EntityPlayer |
getPlayerEntityByName(java.lang.String p_72924_1_)
Find a player by name in this world.
|
int |
getPrecipitationHeight(int p_72874_1_,
int p_72874_2_)
Gets the height to which rain/snow will fall.
|
java.lang.String |
getProviderName()
Returns the name of the current chunk provider, by calling chunkprovider.makeString()
|
float |
getRainStrength(float p_72867_1_)
Not sure about this actually.
|
int |
getSavedLightValue(EnumSkyBlock p_72972_1_,
int p_72972_2_,
int p_72972_3_,
int p_72972_4_)
Returns saved light value without taking into account the time of day.
|
ISaveHandler |
getSaveHandler()
Returns this world's current save handler
|
Scoreboard |
getScoreboard() |
long |
getSeed()
Retrieve the world seed from level.dat
|
int |
getSkyBlockTypeBrightness(EnumSkyBlock p_72925_1_,
int p_72925_2_,
int p_72925_3_,
int p_72925_4_)
Brightness for SkyBlock.Sky is clear white and (through color computing it is assumed) DEPENDENT ON DAYTIME.
|
Vec3 |
getSkyColor(Entity p_72833_1_,
float p_72833_2_)
Calculates the color for the skybox
|
Vec3 |
getSkyColorBody(Entity p_72833_1_,
float p_72833_2_) |
ChunkCoordinates |
getSpawnPoint()
Returns the coordinates of the spawn point
|
float |
getStarBrightness(float p_72880_1_)
How bright are stars in the sky
|
float |
getStarBrightnessBody(float par1) |
int |
getStrongestIndirectPower(int p_94572_1_,
int p_94572_2_,
int p_94572_3_) |
float |
getSunBrightness(float p_72971_1_)
Returns the sun brightness - checks time of day, rain and thunder
|
float |
getSunBrightnessBody(float p_72971_1_) |
float |
getSunBrightnessFactor(float p_72967_1_)
The current sun brightness factor for this dimension.
0.0f means no light at all, and 1.0f means maximum sunlight.
|
TileEntity |
getTileEntity(int p_147438_1_,
int p_147438_2_,
int p_147438_3_) |
Block |
getTopBlock(int p_147474_1_,
int p_147474_2_) |
int |
getTopSolidOrLiquidBlock(int p_72825_1_,
int p_72825_2_)
Finds the highest block on the x, z coordinate that is solid and returns its y coord.
|
long |
getTotalWorldTime() |
int |
getUniqueDataId(java.lang.String p_72841_1_)
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 p_72819_1_) |
WorldChunkManager |
getWorldChunkManager() |
WorldInfo |
getWorldInfo()
Gets the World's WorldInfo instance
|
long |
getWorldTime() |
boolean |
handleMaterialAcceleration(AxisAlignedBB p_72918_1_,
Material p_72918_2_,
Entity p_72918_3_)
handles the acceleration of an object whilst in water.
|
protected void |
initialize(WorldSettings p_72963_1_) |
boolean |
isAABBInMaterial(AxisAlignedBB p_72830_1_,
Material p_72830_2_)
checks if the given AABB is in the material given.
|
boolean |
isAirBlock(int p_147437_1_,
int p_147437_2_,
int p_147437_3_)
Returns true if the block at the specified coordinates is empty
|
boolean |
isAnyLiquid(AxisAlignedBB p_72953_1_)
Returns if any of the blocks within the aabb are liquids.
|
boolean |
isBlockFreezable(int p_72884_1_,
int p_72884_2_,
int p_72884_3_)
checks to see if a given block is both water and is cold enough to freeze
|
boolean |
isBlockFreezableNaturally(int p_72850_1_,
int p_72850_2_,
int p_72850_3_)
checks to see if a given block is both water and has at least one immediately adjacent non-water block
|
boolean |
isBlockHighHumidity(int p_72958_1_,
int p_72958_2_,
int p_72958_3_)
Checks to see if the biome rainfall values for a given x,y,z coordinate set are extremely high
|
boolean |
isBlockIndirectlyGettingPowered(int p_72864_1_,
int p_72864_2_,
int p_72864_3_)
Used to see if one of the blocks next to you or your block is getting power from a neighboring block.
|
boolean |
isBlockNormalCubeDefault(int p_147445_1_,
int p_147445_2_,
int p_147445_3_,
boolean p_147445_4_)
Checks if the block is a solid, normal cube.
|
int |
isBlockProvidingPowerTo(int p_72879_1_,
int p_72879_2_,
int p_72879_3_,
int p_72879_4_)
Is this block powering in the specified direction Args: x, y, z, direction
|
boolean |
isBlockTickScheduledThisTick(int p_147477_1_,
int p_147477_2_,
int p_147477_3_,
Block p_147477_4_)
Returns true if the given block will receive a scheduled tick in this tick.
|
boolean |
isDaytime()
Checks whether its daytime by seeing if the light subtracted from the skylight is less than 4
|
boolean |
isMaterialInBB(AxisAlignedBB p_72875_1_,
Material p_72875_2_)
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 |
isSideSolid(int x,
int y,
int z,
ForgeDirection side)
Determine if the given block is considered solid on the
specified side.
|
boolean |
isSideSolid(int x,
int y,
int z,
ForgeDirection side,
boolean _default)
Determine if the given block is considered solid on the
specified side.
|
boolean |
isThundering()
Returns true if the current thunder strength (weighted with the rain strength) is greater than 0.9
|
void |
joinEntityInSurroundings(Entity p_72897_1_)
spwans an entity and loads surrounding chunks
|
WorldSavedData |
loadItemData(java.lang.Class p_72943_1_,
java.lang.String p_72943_2_)
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 |
makeFireworks(double p_92088_1_,
double p_92088_3_,
double p_92088_5_,
double p_92088_7_,
double p_92088_9_,
double p_92088_11_,
NBTTagCompound p_92088_13_) |
void |
markAndNotifyBlock(int x,
int y,
int z,
Chunk chunk,
Block oldBlock,
Block newBlock,
int flag) |
void |
markBlockForUpdate(int p_147471_1_,
int p_147471_2_,
int p_147471_3_) |
void |
markBlockRangeForRenderUpdate(int p_147458_1_,
int p_147458_2_,
int p_147458_3_,
int p_147458_4_,
int p_147458_5_,
int p_147458_6_) |
void |
markBlocksDirtyVertical(int p_72975_1_,
int p_72975_2_,
int p_72975_3_,
int p_72975_4_)
marks a vertical line of blocks as dirty
|
void |
markTileEntityChunkModified(int p_147476_1_,
int p_147476_2_,
int p_147476_3_,
TileEntity p_147476_4_)
Args: X, Y, Z, tile entity Marks the chunk the tile entity is in as modified.
|
Explosion |
newExplosion(Entity p_72885_1_,
double p_72885_2_,
double p_72885_4_,
double p_72885_6_,
float p_72885_8_,
boolean p_72885_9_,
boolean p_72885_10_)
returns a new explosion.
|
void |
notifyBlockChange(int p_147444_1_,
int p_147444_2_,
int p_147444_3_,
Block p_147444_4_)
The block type change and need to notify other systems Args: x, y, z, blockID
|
void |
notifyBlockOfNeighborChange(int p_147460_1_,
int p_147460_2_,
int p_147460_3_,
Block p_147460_4_)
Notifies a block that one of its neighbor change to the specified type Args: x, y, z, block
|
void |
notifyBlocksOfNeighborChange(int p_147459_1_,
int p_147459_2_,
int p_147459_3_,
Block p_147459_4_) |
void |
notifyBlocksOfNeighborChange(int p_147441_1_,
int p_147441_2_,
int p_147441_3_,
Block p_147441_4_,
int p_147441_5_) |
void |
onEntityAdded(Entity p_72923_1_) |
void |
onEntityRemoved(Entity p_72847_1_) |
void |
playAuxSFX(int p_72926_1_,
int p_72926_2_,
int p_72926_3_,
int p_72926_4_,
int p_72926_5_)
See description for func_72706_a.
|
void |
playAuxSFXAtEntity(EntityPlayer p_72889_1_,
int p_72889_2_,
int p_72889_3_,
int p_72889_4_,
int p_72889_5_,
int p_72889_6_)
See description for playAuxSFX.
|
void |
playBroadcastSound(int p_82739_1_,
int p_82739_2_,
int p_82739_3_,
int p_82739_4_,
int p_82739_5_) |
void |
playRecord(java.lang.String p_72934_1_,
int p_72934_2_,
int p_72934_3_,
int p_72934_4_)
Plays a record at the specified coordinates of the specified name.
|
void |
playSound(double p_72980_1_,
double p_72980_3_,
double p_72980_5_,
java.lang.String p_72980_7_,
float p_72980_8_,
float p_72980_9_,
boolean p_72980_10_)
par8 is loudness, all pars passed to minecraftInstance.sndManager.playSound
|
void |
playSoundAtEntity(Entity p_72956_1_,
java.lang.String p_72956_2_,
float p_72956_3_,
float p_72956_4_)
Plays a sound at the entity's position.
|
void |
playSoundEffect(double p_72908_1_,
double p_72908_3_,
double p_72908_5_,
java.lang.String p_72908_7_,
float p_72908_8_,
float p_72908_9_)
Play a sound effect.
|
void |
playSoundToNearExcept(EntityPlayer p_85173_1_,
java.lang.String p_85173_2_,
float p_85173_3_,
float p_85173_4_)
Plays sound to all near players except the player reference given
|
MovingObjectPosition |
rayTraceBlocks(Vec3 p_72933_1_,
Vec3 p_72933_2_)
Performs a raycast against all blocks in the world except liquids.
|
MovingObjectPosition |
rayTraceBlocks(Vec3 p_72901_1_,
Vec3 p_72901_2_,
boolean p_72901_3_)
Performs a raycast against all blocks in the world, and optionally liquids.
|
void |
removeEntity(Entity p_72900_1_)
Schedule the entity for removal during the next tick.
|
void |
removePlayerEntityDangerously(Entity p_72973_1_)
Do NOT use this method to remove normal entities- use normal removeEntity
|
void |
removeTileEntity(int p_147475_1_,
int p_147475_2_,
int p_147475_3_) |
void |
removeWorldAccess(IWorldAccess p_72848_1_)
Removes a worldAccess from the worldAccesses object
|
void |
scheduleBlockUpdate(int p_147464_1_,
int p_147464_2_,
int p_147464_3_,
Block p_147464_4_,
int p_147464_5_)
Schedules a tick to a block with a delay (Most commonly the tick rate)
|
void |
scheduleBlockUpdateWithPriority(int p_147454_1_,
int p_147454_2_,
int p_147454_3_,
Block p_147454_4_,
int p_147454_5_,
int p_147454_6_) |
java.util.List |
selectEntitiesWithinAABB(java.lang.Class p_82733_1_,
AxisAlignedBB p_82733_2_,
IEntitySelector p_82733_3_) |
void |
sendQuittingDisconnectingPacket()
If on MP, sends a quitting packet.
|
protected void |
setActivePlayerChunksAndCheckLight() |
void |
setAllowedSpawnTypes(boolean p_72891_1_,
boolean p_72891_2_)
Set which types of mobs are allowed to spawn (peaceful vs hostile).
|
boolean |
setBlock(int p_147449_1_,
int p_147449_2_,
int p_147449_3_,
Block p_147449_4_)
Sets a block by a coordinate
|
boolean |
setBlock(int p_147465_1_,
int p_147465_2_,
int p_147465_3_,
Block p_147465_4_,
int p_147465_5_,
int p_147465_6_)
Sets the block ID and metadata at a given location.
|
boolean |
setBlockMetadataWithNotify(int p_72921_1_,
int p_72921_2_,
int p_72921_3_,
int p_72921_4_,
int p_72921_5_)
Sets the blocks metadata and if set will then notify blocks that this block changed, depending on the flag.
|
boolean |
setBlockToAir(int p_147468_1_,
int p_147468_2_,
int p_147468_3_)
Sets a block to 0 and notifies relevant systems with the block change Args: x, y, z
|
void |
setEntityState(Entity p_72960_1_,
byte p_72960_2_)
sends a Packet 38 (Entity Status) to all tracked players of that entity
|
void |
setItemData(java.lang.String p_72823_1_,
WorldSavedData p_72823_2_)
Assigns the given String id to the given MapDataBase using the MapStorage, removing any existing ones of the same
id.
|
void |
setLightValue(EnumSkyBlock p_72915_1_,
int p_72915_2_,
int p_72915_3_,
int p_72915_4_,
int p_72915_5_)
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 p_72894_1_)
Sets the strength of the rain.
|
java.util.Random |
setRandomSeed(int p_72843_1_,
int p_72843_2_,
int p_72843_3_)
puts the World Random seed to a specific state dependant on the inputs
|
void |
setSpawnLocation()
Sets a new spawn location by finding an uncovered block at a random (x,z) location in the chunk.
|
void |
setSpawnLocation(int p_72950_1_,
int p_72950_2_,
int p_72950_3_) |
void |
setThunderStrength(float p_147442_1_)
Sets the strength of the thunder.
|
void |
setTileEntity(int p_147455_1_,
int p_147455_2_,
int p_147455_3_,
TileEntity p_147455_4_) |
void |
setWorldTime(long p_72877_1_)
Sets the world time.
|
boolean |
spawnEntityInWorld(Entity p_72838_1_)
Called to place all entities as part of a world
|
void |
spawnParticle(java.lang.String p_72869_1_,
double p_72869_2_,
double p_72869_4_,
double p_72869_6_,
double p_72869_8_,
double p_72869_10_,
double p_72869_12_)
Spawns a particle.
|
void |
tick()
Runs a single tick for the world
|
boolean |
tickUpdates(boolean p_72955_1_)
Runs through the list of updates to run and ticks them
|
void |
unloadEntities(java.util.List p_72828_1_)
Adds a list of entities to be unloaded on the next pass of World.updateEntities()
|
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 p_72870_1_)
Will update the entity in the world if the chunk the entity is in is currently loaded.
|
void |
updateEntityWithOptionalForce(Entity p_72866_1_,
boolean p_72866_2_)
Will update the entity in the world if the chunk the entity is in is currently loaded or its forced to update.
|
boolean |
updateLightByType(EnumSkyBlock p_147463_1_,
int p_147463_2_,
int p_147463_3_,
int p_147463_4_) |
protected void |
updateWeather()
Updates all weather states.
|
void |
updateWeatherBody() |
public static double MAX_ENTITY_RADIUS
public final MapStorage perWorldStorage
public boolean scheduledUpdatesAreImmediate
public java.util.List loadedEntityList
protected java.util.List unloadedEntityList
public java.util.List loadedTileEntityList
public java.util.List playerEntities
public java.util.List weatherEffects
public int skylightSubtracted
protected int updateLCG
protected final int DIST_HASH_MAGIC
public float prevRainingStrength
public float rainingStrength
public float prevThunderingStrength
public float thunderingStrength
public int lastLightningBolt
public EnumDifficulty difficultySetting
public java.util.Random rand
public final WorldProvider provider
protected java.util.List worldAccesses
protected IChunkProvider chunkProvider
protected final ISaveHandler saveHandler
protected WorldInfo worldInfo
public boolean findingSpawnPoint
public MapStorage mapStorage
public VillageCollection villageCollectionObj
protected final VillageSiege villageSiegeObj
public final Profiler theProfiler
protected Scoreboard worldScoreboard
public boolean isRemote
protected java.util.Set activeChunkSet
protected boolean spawnHostileMobs
protected boolean spawnPeacefulMobs
public boolean restoringBlockSnapshots
public boolean captureBlockSnapshots
public java.util.ArrayList<BlockSnapshot> capturedBlockSnapshots
public World(ISaveHandler p_i45368_1_, java.lang.String p_i45368_2_, WorldProvider p_i45368_3_, WorldSettings p_i45368_4_, Profiler p_i45368_5_)
public World(ISaveHandler p_i45369_1_, java.lang.String p_i45369_2_, WorldSettings p_i45369_3_, WorldProvider p_i45369_4_, Profiler p_i45369_5_)
public BiomeGenBase getBiomeGenForCoords(int p_72807_1_, int p_72807_2_)
getBiomeGenForCoords in interface IBlockAccesspublic BiomeGenBase getBiomeGenForCoordsBody(int p_72807_1_, int p_72807_2_)
public WorldChunkManager getWorldChunkManager()
protected void finishSetup()
protected abstract IChunkProvider createChunkProvider()
protected void initialize(WorldSettings p_72963_1_)
public void setSpawnLocation()
public Block getTopBlock(int p_147474_1_, int p_147474_2_)
public Block getBlock(int p_147439_1_, int p_147439_2_, int p_147439_3_)
getBlock in interface IBlockAccesspublic boolean isAirBlock(int p_147437_1_,
int p_147437_2_,
int p_147437_3_)
isAirBlock in interface IBlockAccesspublic boolean blockExists(int p_72899_1_,
int p_72899_2_,
int p_72899_3_)
public boolean doChunksNearChunkExist(int p_72873_1_,
int p_72873_2_,
int p_72873_3_,
int p_72873_4_)
public boolean checkChunksExist(int p_72904_1_,
int p_72904_2_,
int p_72904_3_,
int p_72904_4_,
int p_72904_5_,
int p_72904_6_)
protected boolean chunkExists(int p_72916_1_,
int p_72916_2_)
public Chunk getChunkFromBlockCoords(int p_72938_1_, int p_72938_2_)
public Chunk getChunkFromChunkCoords(int p_72964_1_, int p_72964_2_)
public boolean setBlock(int p_147465_1_,
int p_147465_2_,
int p_147465_3_,
Block p_147465_4_,
int p_147465_5_,
int p_147465_6_)
public void markAndNotifyBlock(int x,
int y,
int z,
Chunk chunk,
Block oldBlock,
Block newBlock,
int flag)
public int getBlockMetadata(int p_72805_1_,
int p_72805_2_,
int p_72805_3_)
getBlockMetadata in interface IBlockAccesspublic boolean setBlockMetadataWithNotify(int p_72921_1_,
int p_72921_2_,
int p_72921_3_,
int p_72921_4_,
int p_72921_5_)
public boolean setBlockToAir(int p_147468_1_,
int p_147468_2_,
int p_147468_3_)
public boolean func_147480_a(int p_147480_1_,
int p_147480_2_,
int p_147480_3_,
boolean p_147480_4_)
public boolean setBlock(int p_147449_1_,
int p_147449_2_,
int p_147449_3_,
Block p_147449_4_)
public void markBlockForUpdate(int p_147471_1_,
int p_147471_2_,
int p_147471_3_)
public void notifyBlockChange(int p_147444_1_,
int p_147444_2_,
int p_147444_3_,
Block p_147444_4_)
public void markBlocksDirtyVertical(int p_72975_1_,
int p_72975_2_,
int p_72975_3_,
int p_72975_4_)
public void markBlockRangeForRenderUpdate(int p_147458_1_,
int p_147458_2_,
int p_147458_3_,
int p_147458_4_,
int p_147458_5_,
int p_147458_6_)
public void notifyBlocksOfNeighborChange(int p_147459_1_,
int p_147459_2_,
int p_147459_3_,
Block p_147459_4_)
public void notifyBlocksOfNeighborChange(int p_147441_1_,
int p_147441_2_,
int p_147441_3_,
Block p_147441_4_,
int p_147441_5_)
public void notifyBlockOfNeighborChange(int p_147460_1_,
int p_147460_2_,
int p_147460_3_,
Block p_147460_4_)
public boolean isBlockTickScheduledThisTick(int p_147477_1_,
int p_147477_2_,
int p_147477_3_,
Block p_147477_4_)
public boolean canBlockSeeTheSky(int p_72937_1_,
int p_72937_2_,
int p_72937_3_)
public int getFullBlockLightValue(int p_72883_1_,
int p_72883_2_,
int p_72883_3_)
public int getBlockLightValue(int p_72957_1_,
int p_72957_2_,
int p_72957_3_)
public int getBlockLightValue_do(int p_72849_1_,
int p_72849_2_,
int p_72849_3_,
boolean p_72849_4_)
public int getHeightValue(int p_72976_1_,
int p_72976_2_)
public int getChunkHeightMapMinimum(int p_82734_1_,
int p_82734_2_)
public int getSkyBlockTypeBrightness(EnumSkyBlock p_72925_1_, int p_72925_2_, int p_72925_3_, int p_72925_4_)
public int getSavedLightValue(EnumSkyBlock p_72972_1_, int p_72972_2_, int p_72972_3_, int p_72972_4_)
public void setLightValue(EnumSkyBlock p_72915_1_, int p_72915_2_, int p_72915_3_, int p_72915_4_, int p_72915_5_)
public void func_147479_m(int p_147479_1_,
int p_147479_2_,
int p_147479_3_)
public int getLightBrightnessForSkyBlocks(int p_72802_1_,
int p_72802_2_,
int p_72802_3_,
int p_72802_4_)
getLightBrightnessForSkyBlocks in interface IBlockAccesspublic float getLightBrightness(int p_72801_1_,
int p_72801_2_,
int p_72801_3_)
public boolean isDaytime()
public MovingObjectPosition rayTraceBlocks(Vec3 p_72933_1_, Vec3 p_72933_2_)
public MovingObjectPosition rayTraceBlocks(Vec3 p_72901_1_, Vec3 p_72901_2_, boolean p_72901_3_)
public MovingObjectPosition func_147447_a(Vec3 p_147447_1_, Vec3 p_147447_2_, boolean p_147447_3_, boolean p_147447_4_, boolean p_147447_5_)
public void playSoundAtEntity(Entity p_72956_1_, java.lang.String p_72956_2_, float p_72956_3_, float p_72956_4_)
public void playSoundToNearExcept(EntityPlayer p_85173_1_, java.lang.String p_85173_2_, float p_85173_3_, float p_85173_4_)
public void playSoundEffect(double p_72908_1_,
double p_72908_3_,
double p_72908_5_,
java.lang.String p_72908_7_,
float p_72908_8_,
float p_72908_9_)
public void playSound(double p_72980_1_,
double p_72980_3_,
double p_72980_5_,
java.lang.String p_72980_7_,
float p_72980_8_,
float p_72980_9_,
boolean p_72980_10_)
public void playRecord(java.lang.String p_72934_1_,
int p_72934_2_,
int p_72934_3_,
int p_72934_4_)
public void spawnParticle(java.lang.String p_72869_1_,
double p_72869_2_,
double p_72869_4_,
double p_72869_6_,
double p_72869_8_,
double p_72869_10_,
double p_72869_12_)
public boolean addWeatherEffect(Entity p_72942_1_)
public boolean spawnEntityInWorld(Entity p_72838_1_)
public void onEntityAdded(Entity p_72923_1_)
public void onEntityRemoved(Entity p_72847_1_)
public void removeEntity(Entity p_72900_1_)
public void removePlayerEntityDangerously(Entity p_72973_1_)
public void addWorldAccess(IWorldAccess p_72954_1_)
public java.util.List getCollidingBoundingBoxes(Entity p_72945_1_, AxisAlignedBB p_72945_2_)
public java.util.List func_147461_a(AxisAlignedBB p_147461_1_)
public int calculateSkylightSubtracted(float p_72967_1_)
public float getSunBrightnessFactor(float p_72967_1_)
public void removeWorldAccess(IWorldAccess p_72848_1_)
public float getSunBrightness(float p_72971_1_)
public float getSunBrightnessBody(float p_72971_1_)
public Vec3 getSkyColor(Entity p_72833_1_, float p_72833_2_)
public float getCelestialAngle(float p_72826_1_)
public int getMoonPhase()
public float getCurrentMoonPhaseFactor()
public float getCurrentMoonPhaseFactorBody()
public float getCelestialAngleRadians(float p_72929_1_)
public Vec3 getCloudColour(float p_72824_1_)
public Vec3 drawCloudsBody(float p_72824_1_)
public Vec3 getFogColor(float p_72948_1_)
public int getPrecipitationHeight(int p_72874_1_,
int p_72874_2_)
public int getTopSolidOrLiquidBlock(int p_72825_1_,
int p_72825_2_)
public float getStarBrightness(float p_72880_1_)
public float getStarBrightnessBody(float par1)
public void scheduleBlockUpdate(int p_147464_1_,
int p_147464_2_,
int p_147464_3_,
Block p_147464_4_,
int p_147464_5_)
public void scheduleBlockUpdateWithPriority(int p_147454_1_,
int p_147454_2_,
int p_147454_3_,
Block p_147454_4_,
int p_147454_5_,
int p_147454_6_)
public void func_147446_b(int p_147446_1_,
int p_147446_2_,
int p_147446_3_,
Block p_147446_4_,
int p_147446_5_,
int p_147446_6_)
public void updateEntities()
public void func_147448_a(java.util.Collection p_147448_1_)
public void updateEntity(Entity p_72870_1_)
public void updateEntityWithOptionalForce(Entity p_72866_1_, boolean p_72866_2_)
public boolean checkNoEntityCollision(AxisAlignedBB p_72855_1_)
public boolean checkNoEntityCollision(AxisAlignedBB p_72917_1_, Entity p_72917_2_)
public boolean checkBlockCollision(AxisAlignedBB p_72829_1_)
public boolean isAnyLiquid(AxisAlignedBB p_72953_1_)
public boolean func_147470_e(AxisAlignedBB p_147470_1_)
public boolean handleMaterialAcceleration(AxisAlignedBB p_72918_1_, Material p_72918_2_, Entity p_72918_3_)
public boolean isMaterialInBB(AxisAlignedBB p_72875_1_, Material p_72875_2_)
public boolean isAABBInMaterial(AxisAlignedBB p_72830_1_, Material p_72830_2_)
public Explosion createExplosion(Entity p_72876_1_, double p_72876_2_, double p_72876_4_, double p_72876_6_, float p_72876_8_, boolean p_72876_9_)
public Explosion newExplosion(Entity p_72885_1_, double p_72885_2_, double p_72885_4_, double p_72885_6_, float p_72885_8_, boolean p_72885_9_, boolean p_72885_10_)
public float getBlockDensity(Vec3 p_72842_1_, AxisAlignedBB p_72842_2_)
public boolean extinguishFire(EntityPlayer p_72886_1_, int p_72886_2_, int p_72886_3_, int p_72886_4_, int p_72886_5_)
public java.lang.String getDebugLoadedEntities()
public java.lang.String getProviderName()
public TileEntity getTileEntity(int p_147438_1_, int p_147438_2_, int p_147438_3_)
getTileEntity in interface IBlockAccesspublic void setTileEntity(int p_147455_1_,
int p_147455_2_,
int p_147455_3_,
TileEntity p_147455_4_)
public void removeTileEntity(int p_147475_1_,
int p_147475_2_,
int p_147475_3_)
public void func_147457_a(TileEntity p_147457_1_)
public boolean func_147469_q(int p_147469_1_,
int p_147469_2_,
int p_147469_3_)
public static boolean doesBlockHaveSolidTopSurface(IBlockAccess p_147466_0_, int p_147466_1_, int p_147466_2_, int p_147466_3_)
public boolean isBlockNormalCubeDefault(int p_147445_1_,
int p_147445_2_,
int p_147445_3_,
boolean p_147445_4_)
public void calculateInitialSkylight()
public void setAllowedSpawnTypes(boolean p_72891_1_,
boolean p_72891_2_)
public void tick()
public void calculateInitialWeatherBody()
protected void updateWeather()
public void updateWeatherBody()
protected void setActivePlayerChunksAndCheckLight()
protected abstract int func_152379_p()
protected void func_147467_a(int p_147467_1_,
int p_147467_2_,
Chunk p_147467_3_)
protected void func_147456_g()
public boolean isBlockFreezable(int p_72884_1_,
int p_72884_2_,
int p_72884_3_)
public boolean isBlockFreezableNaturally(int p_72850_1_,
int p_72850_2_,
int p_72850_3_)
public boolean canBlockFreeze(int p_72834_1_,
int p_72834_2_,
int p_72834_3_,
boolean p_72834_4_)
public boolean canBlockFreezeBody(int p_72834_1_,
int p_72834_2_,
int p_72834_3_,
boolean p_72834_4_)
public boolean func_147478_e(int p_147478_1_,
int p_147478_2_,
int p_147478_3_,
boolean p_147478_4_)
public boolean canSnowAtBody(int p_147478_1_,
int p_147478_2_,
int p_147478_3_,
boolean p_147478_4_)
public boolean func_147451_t(int p_147451_1_,
int p_147451_2_,
int p_147451_3_)
public boolean updateLightByType(EnumSkyBlock p_147463_1_, int p_147463_2_, int p_147463_3_, int p_147463_4_)
public boolean tickUpdates(boolean p_72955_1_)
public java.util.List getPendingBlockUpdates(Chunk p_72920_1_, boolean p_72920_2_)
public java.util.List getEntitiesWithinAABBExcludingEntity(Entity p_72839_1_, AxisAlignedBB p_72839_2_)
public java.util.List getEntitiesWithinAABBExcludingEntity(Entity p_94576_1_, AxisAlignedBB p_94576_2_, IEntitySelector p_94576_3_)
public java.util.List getEntitiesWithinAABB(java.lang.Class p_72872_1_,
AxisAlignedBB p_72872_2_)
public java.util.List selectEntitiesWithinAABB(java.lang.Class p_82733_1_,
AxisAlignedBB p_82733_2_,
IEntitySelector p_82733_3_)
public Entity findNearestEntityWithinAABB(java.lang.Class p_72857_1_, AxisAlignedBB p_72857_2_, Entity p_72857_3_)
public abstract Entity getEntityByID(int p_73045_1_)
public java.util.List getLoadedEntityList()
public void markTileEntityChunkModified(int p_147476_1_,
int p_147476_2_,
int p_147476_3_,
TileEntity p_147476_4_)
public int countEntities(java.lang.Class p_72907_1_)
public void addLoadedEntities(java.util.List p_72868_1_)
public void unloadEntities(java.util.List p_72828_1_)
public boolean canPlaceEntityOnSide(Block p_147472_1_, int p_147472_2_, int p_147472_3_, int p_147472_4_, boolean p_147472_5_, int p_147472_6_, Entity p_147472_7_, ItemStack p_147472_8_)
public PathEntity getPathEntityToEntity(Entity p_72865_1_, Entity p_72865_2_, float p_72865_3_, boolean p_72865_4_, boolean p_72865_5_, boolean p_72865_6_, boolean p_72865_7_)
public PathEntity getEntityPathToXYZ(Entity p_72844_1_, int p_72844_2_, int p_72844_3_, int p_72844_4_, float p_72844_5_, boolean p_72844_6_, boolean p_72844_7_, boolean p_72844_8_, boolean p_72844_9_)
public int isBlockProvidingPowerTo(int p_72879_1_,
int p_72879_2_,
int p_72879_3_,
int p_72879_4_)
isBlockProvidingPowerTo in interface IBlockAccesspublic int getBlockPowerInput(int p_94577_1_,
int p_94577_2_,
int p_94577_3_)
public boolean getIndirectPowerOutput(int p_94574_1_,
int p_94574_2_,
int p_94574_3_,
int p_94574_4_)
public int getIndirectPowerLevelTo(int p_72878_1_,
int p_72878_2_,
int p_72878_3_,
int p_72878_4_)
public boolean isBlockIndirectlyGettingPowered(int p_72864_1_,
int p_72864_2_,
int p_72864_3_)
public int getStrongestIndirectPower(int p_94572_1_,
int p_94572_2_,
int p_94572_3_)
public EntityPlayer getClosestPlayerToEntity(Entity p_72890_1_, double p_72890_2_)
public EntityPlayer getClosestPlayer(double p_72977_1_, double p_72977_3_, double p_72977_5_, double p_72977_7_)
public EntityPlayer getClosestVulnerablePlayerToEntity(Entity p_72856_1_, double p_72856_2_)
public EntityPlayer getClosestVulnerablePlayer(double p_72846_1_, double p_72846_3_, double p_72846_5_, double p_72846_7_)
public EntityPlayer getPlayerEntityByName(java.lang.String p_72924_1_)
public EntityPlayer func_152378_a(java.util.UUID p_152378_1_)
public void sendQuittingDisconnectingPacket()
public void checkSessionLock()
throws MinecraftException
MinecraftExceptionpublic void func_82738_a(long p_82738_1_)
public long getSeed()
public long getTotalWorldTime()
public long getWorldTime()
public void setWorldTime(long p_72877_1_)
public ChunkCoordinates getSpawnPoint()
public void setSpawnLocation(int p_72950_1_,
int p_72950_2_,
int p_72950_3_)
public void joinEntityInSurroundings(Entity p_72897_1_)
public boolean canMineBlock(EntityPlayer p_72962_1_, int p_72962_2_, int p_72962_3_, int p_72962_4_)
public boolean canMineBlockBody(EntityPlayer par1EntityPlayer, int par2, int par3, int par4)
public void setEntityState(Entity p_72960_1_, byte p_72960_2_)
public IChunkProvider getChunkProvider()
public void addBlockEvent(int p_147452_1_,
int p_147452_2_,
int p_147452_3_,
Block p_147452_4_,
int p_147452_5_,
int p_147452_6_)
public ISaveHandler getSaveHandler()
public WorldInfo getWorldInfo()
public GameRules getGameRules()
public void updateAllPlayersSleepingFlag()
public float getWeightedThunderStrength(float p_72819_1_)
public void setThunderStrength(float p_147442_1_)
public float getRainStrength(float p_72867_1_)
public void setRainStrength(float p_72894_1_)
public boolean isThundering()
public boolean isRaining()
public boolean canLightningStrikeAt(int p_72951_1_,
int p_72951_2_,
int p_72951_3_)
public boolean isBlockHighHumidity(int p_72958_1_,
int p_72958_2_,
int p_72958_3_)
public void setItemData(java.lang.String p_72823_1_,
WorldSavedData p_72823_2_)
public WorldSavedData loadItemData(java.lang.Class p_72943_1_, java.lang.String p_72943_2_)
public int getUniqueDataId(java.lang.String p_72841_1_)
public void playBroadcastSound(int p_82739_1_,
int p_82739_2_,
int p_82739_3_,
int p_82739_4_,
int p_82739_5_)
public void playAuxSFX(int p_72926_1_,
int p_72926_2_,
int p_72926_3_,
int p_72926_4_,
int p_72926_5_)
public void playAuxSFXAtEntity(EntityPlayer p_72889_1_, int p_72889_2_, int p_72889_3_, int p_72889_4_, int p_72889_5_, int p_72889_6_)
public int getHeight()
getHeight in interface IBlockAccesspublic int getActualHeight()
public java.util.Random setRandomSeed(int p_72843_1_,
int p_72843_2_,
int p_72843_3_)
public ChunkPosition findClosestStructure(java.lang.String p_147440_1_, int p_147440_2_, int p_147440_3_, int p_147440_4_)
public boolean extendedLevelsInChunkCache()
extendedLevelsInChunkCache in interface IBlockAccesspublic double getHorizon()
public CrashReportCategory addWorldInfoToCrashReport(CrashReport p_72914_1_)
public void destroyBlockInWorldPartially(int p_147443_1_,
int p_147443_2_,
int p_147443_3_,
int p_147443_4_,
int p_147443_5_)
public java.util.Calendar getCurrentDate()
public void makeFireworks(double p_92088_1_,
double p_92088_3_,
double p_92088_5_,
double p_92088_7_,
double p_92088_9_,
double p_92088_11_,
NBTTagCompound p_92088_13_)
public Scoreboard getScoreboard()
public void func_147453_f(int p_147453_1_,
int p_147453_2_,
int p_147453_3_,
Block p_147453_4_)
public float func_147462_b(double p_147462_1_,
double p_147462_3_,
double p_147462_5_)
public float func_147473_B(int p_147473_1_,
int p_147473_2_,
int p_147473_3_)
public void func_147450_X()
public void addTileEntity(TileEntity entity)
entity - The TileEntity to be added.public boolean isSideSolid(int x,
int y,
int z,
ForgeDirection side)
x - Block X Positiony - Block Y Positionz - Block Z Positionside - The Side in questionpublic boolean isSideSolid(int x,
int y,
int z,
ForgeDirection side,
boolean _default)
isSideSolid in interface IBlockAccessx - Block X Positiony - Block Y Positionz - Block Z Positionside - The Side in question_default - The default to return if the block doesn't exist.public com.google.common.collect.ImmutableSetMultimap<ChunkCoordIntPair,ForgeChunkManager.Ticket> getPersistentChunks()
public int getBlockLightOpacity(int x,
int y,
int z)
x - X positiony - Y Positionz - Z Positionpublic int countEntities(EnumCreatureType type, boolean forSpawnCount)