public class WorldClient extends World
activeChunkSet, chunkProvider, difficultySetting, DIST_HASH_MAGIC, findingSpawnPoint, isRemote, lastLightningBolt, loadedEntityList, loadedTileEntityList, mapStorage, MAX_ENTITY_RADIUS, perWorldStorage, playerEntities, prevRainingStrength, prevThunderingStrength, provider, rainingStrength, rand, saveHandler, scheduledUpdatesAreImmediate, skylightSubtracted, spawnHostileMobs, spawnPeacefulMobs, theProfiler, thunderingStrength, unloadedEntityList, updateLCG, villageCollectionObj, villageSiegeObj, weatherEffects, worldAccesses, worldInfo, worldScoreboard
Constructor and Description |
---|
WorldClient(NetHandlerPlayClient p_i45063_1_,
WorldSettings p_i45063_2_,
int p_i45063_3_,
EnumDifficulty p_i45063_4_,
Profiler p_i45063_5_) |
Modifier and Type | Method and Description |
---|---|
void |
addEntityToWorld(int par1,
Entity par2Entity)
Add an ID to Entity mapping to entityHashSet
|
CrashReportCategory |
addWorldInfoToCrashReport(CrashReport par1CrashReport)
Adds some basic stats of the world to the given crash report.
|
protected IChunkProvider |
createChunkProvider()
Creates the chunk provider for this world.
|
void |
doPreChunk(int par1,
int par2,
boolean par3) |
void |
doVoidFogParticles(int par1,
int par2,
int par3) |
protected void |
func_147456_g() |
boolean |
func_147492_c(int p_147492_1_,
int p_147492_2_,
int p_147492_3_,
Block p_147492_4_,
int p_147492_5_) |
Entity |
getEntityByID(int par1)
Returns the Entity with the given ID, or null if it doesn't exist in this World.
|
void |
invalidateBlockReceiveRegion(int par1,
int par2,
int par3,
int par4,
int par5,
int par6)
Invalidates an AABB region of blocks from the receive queue, in the event that the block has been modified
client-side in the intervening 80 receive ticks.
|
void |
makeFireworks(double par1,
double par3,
double par5,
double par7,
double par9,
double par11,
NBTTagCompound par13NBTTagCompound) |
protected void |
onEntityAdded(Entity par1Entity) |
protected void |
onEntityRemoved(Entity par1Entity) |
void |
playSound(double par1,
double par3,
double par5,
java.lang.String par7Str,
float par8,
float par9,
boolean par10)
par8 is loudness, all pars passed to minecraftInstance.sndManager.playSound
|
void |
removeAllEntities()
also releases skins.
|
void |
removeEntity(Entity par1Entity)
Schedule the entity for removal during the next tick.
|
Entity |
removeEntityFromWorld(int par1) |
void |
sendQuittingDisconnectingPacket()
If on MP, sends a quitting packet.
|
void |
setWorldScoreboard(Scoreboard par1Scoreboard) |
void |
setWorldTime(long par1)
Sets the world time.
|
boolean |
spawnEntityInWorld(Entity par1Entity)
Called to place all entities as part of a world
|
void |
tick()
Runs a single tick for the world
|
protected void |
updateWeather()
Updates all weather states.
|
void |
updateWeatherBody() |
addBlockEvent, addLoadedEntities, addTileEntity, addWeatherEffect, addWorldAccess, blockExists, calculateInitialSkylight, calculateInitialWeatherBody, calculateSkylightSubtracted, canBlockFreeze, canBlockFreezeBody, canBlockSeeTheSky, canLightningStrikeAt, canMineBlock, canMineBlockBody, canPlaceEntityOnSide, canSnowAtBody, checkBlockCollision, checkChunksExist, checkNoEntityCollision, checkNoEntityCollision, checkSessionLock, chunkExists, countEntities, countEntities, createExplosion, destroyBlockInWorldPartially, doChunksNearChunkExist, doesBlockHaveSolidTopSurface, drawCloudsBody, extendedLevelsInChunkCache, extinguishFire, findClosestStructure, findNearestEntityWithinAABB, finishSetup, func_147446_b, func_147447_a, func_147448_a, func_147450_X, func_147451_t, func_147453_f, func_147457_a, func_147461_a, func_147462_b, func_147467_a, func_147469_q, func_147470_e, func_147473_B, func_147478_e, func_147479_m, func_147480_a, func_82738_a, getActualHeight, getBiomeGenForCoords, getBiomeGenForCoordsBody, getBlock, getBlockDensity, getBlockLightOpacity, getBlockLightValue_do, getBlockLightValue, getBlockMetadata, getBlockPowerInput, getCelestialAngle, getCelestialAngleRadians, getChunkFromBlockCoords, getChunkFromChunkCoords, getChunkHeightMapMinimum, getChunkProvider, getClosestPlayer, getClosestPlayerToEntity, getClosestVulnerablePlayer, getClosestVulnerablePlayerToEntity, getCloudColour, getCollidingBoundingBoxes, getCurrentDate, getCurrentMoonPhaseFactor, getDebugLoadedEntities, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getEntitiesWithinAABBExcludingEntity, getEntityPathToXYZ, getFogColor, getFullBlockLightValue, getGameRules, getHeight, getHeightValue, getHorizon, getIndirectPowerLevelTo, getIndirectPowerOutput, getLightBrightness, getLightBrightnessForSkyBlocks, getLoadedEntityList, getMoonPhase, getPathEntityToEntity, getPendingBlockUpdates, getPersistentChunks, getPlayerEntityByName, getPrecipitationHeight, getProviderName, getRainStrength, getSavedLightValue, getSaveHandler, getScoreboard, getSeed, getSkyBlockTypeBrightness, getSkyColor, getSkyColorBody, getSpawnPoint, getStarBrightness, getStarBrightnessBody, getStrongestIndirectPower, getSunBrightness, getTileEntity, getTopBlock, getTopSolidOrLiquidBlock, getTotalWorldTime, getUniqueDataId, getWeightedThunderStrength, getWorldChunkManager, getWorldInfo, getWorldTime, getWorldVec3Pool, handleMaterialAcceleration, initialize, isAABBInMaterial, isAirBlock, isAnyLiquid, isBlockFreezable, isBlockFreezableNaturally, isBlockHighHumidity, isBlockIndirectlyGettingPowered, isBlockNormalCubeDefault, isBlockProvidingPowerTo, isBlockTickScheduledThisTick, isDaytime, isMaterialInBB, isRaining, isSideSolid, isSideSolid, isThundering, joinEntityInSurroundings, loadItemData, markBlockForUpdate, markBlockRangeForRenderUpdate, markBlocksDirtyVertical, markTileEntityChunkModified, newExplosion, notifyBlockChange, notifyBlockOfNeighborChange, notifyBlocksOfNeighborChange, notifyBlocksOfNeighborChange, playAuxSFX, playAuxSFXAtEntity, playBroadcastSound, playRecord, playSoundAtEntity, playSoundEffect, playSoundToNearExcept, rayTraceBlocks, rayTraceBlocks, removePlayerEntityDangerously, removeTileEntity, removeWorldAccess, scheduleBlockUpdate, scheduleBlockUpdateWithPriority, selectEntitiesWithinAABB, setActivePlayerChunksAndCheckLight, setAllowedSpawnTypes, setBlock, setBlock, setBlockMetadataWithNotify, setBlockToAir, setEntityState, setItemData, setLightValue, setRainStrength, setRandomSeed, setSpawnLocation, setSpawnLocation, setThunderStrength, setTileEntity, spawnParticle, tickUpdates, unloadEntities, updateAllPlayersSleepingFlag, updateEntities, updateEntity, updateEntityWithOptionalForce, updateLightByType
public WorldClient(NetHandlerPlayClient p_i45063_1_, WorldSettings p_i45063_2_, int p_i45063_3_, EnumDifficulty p_i45063_4_, Profiler p_i45063_5_)
public void invalidateBlockReceiveRegion(int par1, int par2, int par3, int par4, int par5, int par6)
protected IChunkProvider createChunkProvider()
createChunkProvider
in class World
protected void func_147456_g()
func_147456_g
in class World
public void doPreChunk(int par1, int par2, boolean par3)
public boolean spawnEntityInWorld(Entity par1Entity)
spawnEntityInWorld
in class World
public void removeEntity(Entity par1Entity)
removeEntity
in class World
protected void onEntityAdded(Entity par1Entity)
onEntityAdded
in class World
protected void onEntityRemoved(Entity par1Entity)
onEntityRemoved
in class World
public void addEntityToWorld(int par1, Entity par2Entity)
public Entity getEntityByID(int par1)
getEntityByID
in class World
public Entity removeEntityFromWorld(int par1)
public boolean func_147492_c(int p_147492_1_, int p_147492_2_, int p_147492_3_, Block p_147492_4_, int p_147492_5_)
public void sendQuittingDisconnectingPacket()
sendQuittingDisconnectingPacket
in class World
protected void updateWeather()
updateWeather
in class World
public void updateWeatherBody()
updateWeatherBody
in class World
public void doVoidFogParticles(int par1, int par2, int par3)
public void removeAllEntities()
public CrashReportCategory addWorldInfoToCrashReport(CrashReport par1CrashReport)
addWorldInfoToCrashReport
in class World
public void playSound(double par1, double par3, double par5, java.lang.String par7Str, float par8, float par9, boolean par10)
public void makeFireworks(double par1, double par3, double par5, double par7, double par9, double par11, NBTTagCompound par13NBTTagCompound)
makeFireworks
in class World
public void setWorldScoreboard(Scoreboard par1Scoreboard)
public void setWorldTime(long par1)
setWorldTime
in class World