Package net.minecraft.src
Class WorldClient
java.lang.Object
net.minecraft.src.World
net.minecraft.src.WorldClient
- All Implemented Interfaces:
IBlockAccess
-
Field Summary
FieldsFields inherited from class net.minecraft.src.World
activeChunksCoordsList, activeChunksCoordsMap, chunkProvider, difficultySetting, DIST_HASH_MAGIC, findingSpawnPoint, isRemote, lastLightningBolt, LOADED_CHUNKS_UPDATE_RANGE, loadedEntityList, loadedTileEntityList, mapStorage, playerEntities, prevRainingStrength, prevThunderingStrength, provider, rainingStrength, rand, saveHandler, scheduledUpdatesAreImmediate, skylightSubtracted, spawnHostileMobs, spawnPeacefulMobs, theProfiler, thunderingStrength, unloadedEntityList, updateLCG, villageCollectionObj, weatherEffects, worldAccesses, worldInfo, worldScoreboard -
Constructor Summary
ConstructorsConstructorDescriptionWorldClient(NetClientHandler par1NetClientHandler, WorldSettings par2WorldSettings, int par3, int par4, Profiler par5Profiler, ILogAgent par6ILogAgent) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntityToWorld(int par1, Entity par2Entity) Add an ID to Entity mapping to entityHashSetaddWorldInfoToCrashReport(CrashReport par1CrashReport) Adds some basic stats of the world to the given crash report.protected IChunkProviderCreates the chunk provider for this world.voiddoPreChunk(int par1, int par2, boolean par3) voiddoVoidFogParticles(int par1, int par2, int par3) voidfunc_92088_a(double par1, double par3, double par5, double par7, double par9, double par11, NBTTagCompound par13NBTTagCompound) voidfunc_96443_a(Scoreboard par1Scoreboard) <T> TgetData(DataEntry.WorldDataEntry<T> entry) getEntityByID(int par1) Returns the Entity with the given ID, or null if it doesn't exist in this World.getMinecartSoundUpdater(EntityMinecart par1EntityMinecart) voidinvalidateBlockReceiveRegion(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.voidmarkTileEntityForDespawn(TileEntity tileEntity) adds tile entity to despawn list (renamed from markEntityForDespawn)protected voidonEntityAdded(Entity par1Entity) protected voidonEntityRemoved(Entity par1Entity) voidplaySound(double par1, double par3, double par5, String par7Str, float par8, float par9, boolean par10) par8 is loudness, all pars passed to minecraftInstance.sndManager.playSoundvoidFCNOTE: This is not accurately named.voidremoveEntity(Entity par1Entity) Schedule the entity for removal during the next tick.removeEntityFromWorld(int par1) voidIf on MP, sends a quitting packet.booleansetBlockAndMetadataAndInvalidate(int par1, int par2, int par3, int par4, int par5) <T> voidsetData(DataEntry.WorldDataEntry<T> entry, T value) voidsetWorldTime(long par1) Sets the world time.booleanspawnEntityInWorld(Entity par1Entity) Called to place all entities as part of a worldvoidtick()Runs a single tick for the worldprotected voidplays random cave ambient sounds and runs updateTick on random blocks within each chunk in the vacinity of a playervoidunloadEntities(List entityList) Adds a list of entities to be unloaded on the next pass of World.updateEntities()protected voidprotected voidUpdates all weather states.Methods inherited from class net.minecraft.src.World
addAreaAroundChunkToActiveChunkMap, addBlockEvent, addEntityToActiveChunkMap, addLoadedEntities, addTileEntity, addToActiveChunkMap, addWeatherEffect, addWorldAccess, blockExists, blockGetRenderType, blockHasTileEntity, calculateInitialSkylight, calculateSkylightSubtracted, canBlockFreeze, canBlockSeeTheSky, canBlockSuffocateEntity, canLightningStrikeAt, canLightningStrikeAtPos, canMineBlock, canPlaceEntityOnSide, canSnowAt, checkBlockCollision, checkChunksExist, checkLocationForMouseOverRayTrace, checkNoEntityCollision, checkNoEntityCollision, checkSessionLock, chunkExists, clearActiveChunkMap, clip, clip, commandToggleDownfall, computeOverworldSunBrightnessWithMoonPhases, countEntitiesThatApplyToSpawnCap, createExplosion, destroyBlock, destroyBlockInWorldPartially, doChunksNearChunkExist, doesBlockHaveSolidTopSurface, extendedLevelsInChunkCache, extinguishFire, findClosestStructure, findClosestStructureAll, findNearestEntityWithinAABB, func_82738_a, func_82739_e, func_96440_m, getActiveChunkRangeInChunks, getActiveChunksCoordsList, getActualHeight, getActualTopSolidOrLiquidBlockHeight, getAmbientBeaconEffectAtLocation, getBiomeGenForCoords, getBlockDensity, getBlockId, getBlockLightValue, getBlockLightValue_do, getBlockLightValueNoSky, getBlockMaterial, getBlockMetadata, getBlockNaturalLightValue, getBlockNaturalLightValueMaximum, getBlockPowerInput, getBlockTileEntity, getBrightness, getCelestialAngle, getCelestialAngleRadians, getChunkFromBlockCoords, getChunkFromChunkCoords, getChunkHeightMapMinimum, getChunkProvider, getClampedViewDistanceInChunks, getClosestEntityMatchingCriteriaWithinRange, getClosestPlayer, getClosestPlayerToEntity, getClosestVulnerablePlayer, getClosestVulnerablePlayerToEntity, getCloudColour, getCollidingBlockBounds, getCollidingBoundingBoxes, getCurrentDate, getCurrentMoonPhaseFactor, getDebugLoadedEntities, getDifficultyParameter, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getEntitiesWithinAABBExcludingEntity, getEntityPathToXYZ, getFirstUncoveredBlock, getFogColor, getFullBlockLightValue, getGameRules, getHeight, getHeightValue, getHorizon, getIndirectPowerLevelTo, getIndirectPowerOutput, getLightBrightness, getLightBrightnessForSkyBlocks, getLoadedEntityList, getLocationTensionFactor, getMobSpawnRangeInChunks, getModifiedPlayerTargetingDistance, getMoonPhase, getNaturalLightBrightness, getNumEntitiesThatApplyToSquidPossessionCap, getPathEntityToEntity, getPendingBlockUpdates, getPlayerEntityByName, getPrecipitationHeight, getProviderName, getRainStrength, getSavedLightValue, getSaveHandler, getScoreboard, getSeed, getSkyBlockTypeBrightness, getSkyColor, getSpawnPoint, getStarBrightness, getStrongestIndirectPower, getSunBrightness, getTensionFactorForBlock, getTopSolidOrLiquidBlock, getTotalWorldTime, getUniqueDataId, getWeightedThunderStrength, getWorldChunkManager, getWorldInfo, getWorldLogAgent, getWorldTime, getWorldVec3Pool, handleMaterialAcceleration, initialize, installationIntegrityTest, isAABBInMaterial, isAirBlock, isAnyLiquid, isBlockFreezable, isBlockFreezableNaturally, isBlockFullCube, isBlockGettingPowered, isBlockHighHumidity, isBlockIndirectlyGettingPowered, isBlockNormalCube, isBlockNormalCubeDefault, isBlockOpaqueCube, isBlockPosActive, isBlockProvidingPowerTo, isBlockRedstoneConductor, isBlockTickScheduledThisTick, isBoundingBoxBurning, isChunkActive, isDaytime, isMaterialInBB, isPrecipitatingAtPos, isPrecipitatingAtPos, isRaining, isRainingAtPos, isSnowingAtPos, isTheEndNigh, isThundering, isUpdatePendingThisTickForBlock, isUpdateScheduledForBlock, joinEntityInSurroundings, loadItemData, markBlockForRenderUpdate, markBlockForUpdate, markBlockRangeForRenderUpdate, markBlocksDirtyVertical, markTileEntityChunkModified, modSpecificTick, moodSoundAndLightCheck, mouseOverRayTrace, newExplosion, newExplosionNoFX, notifyBlockChange, notifyBlockOfNeighborChange, notifyBlocksOfNeighborChange, notifyBlocksOfNeighborChange, notifyNearbyAnimalsOfPlayerBlockAddOrRemove, playAuxSFX, playAuxSFXAtEntity, playRecord, playSound, playSoundAtEntity, playSoundEffect, playSoundToNearExcept, rayTraceBlocks_do_do, removeBlockTileEntity, removePlayerEntityDangerously, removeWorldAccess, scheduleBlockUpdate, scheduleBlockUpdateFromLoad, scheduleBlockUpdateWithPriority, selectEntitiesWithinAABB, setActivePlayerChunksAndCheckLight, setAllowedSpawnTypes, setBlock, setBlock, setBlockAndMetadata, setBlockAndMetadataWithNotify, setBlockMetadata, setBlockMetadataWithClient, setBlockMetadataWithNotify, setBlockMetadataWithNotify, SetBlockMetadataWithNotify, setBlockMetadataWithNotifyNoClient, setBlockTileEntity, setBlockToAir, setBlockWithNotify, setEntityState, setItemData, setLightValue, setRainStrength, setRandomSeed, setSpawnLocation, setSpawnLocation, spawnParticle, tickUpdates, updateAllLightTypes, updateAllPlayersSleepingFlag, updateEntities, updateEntity, updateEntityWithOptionalForce, updateLightByTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.src.IBlockAccess
editClass
-
Field Details
-
prevActiveChunksCoordsList
-
-
Constructor Details
-
WorldClient
public WorldClient(NetClientHandler par1NetClientHandler, WorldSettings par2WorldSettings, int par3, int par4, Profiler par5Profiler, ILogAgent par6ILogAgent)
-
-
Method Details
-
tick
public void tick()Runs a single tick for the world -
invalidateBlockReceiveRegion
public 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. -
createChunkProvider
Creates the chunk provider for this world. Called in the constructor. Retrieves provider from worldProvider?- Specified by:
createChunkProviderin classWorld
-
tickBlocksAndAmbiance
protected void tickBlocksAndAmbiance()plays random cave ambient sounds and runs updateTick on random blocks within each chunk in the vacinity of a player- Overrides:
tickBlocksAndAmbiancein classWorld
-
doPreChunk
public void doPreChunk(int par1, int par2, boolean par3) -
spawnEntityInWorld
Called to place all entities as part of a world- Overrides:
spawnEntityInWorldin classWorld
-
removeEntity
Schedule the entity for removal during the next tick. Marks the entity dead in anticipation.- Overrides:
removeEntityin classWorld
-
onEntityAdded
- Overrides:
onEntityAddedin classWorld
-
onEntityRemoved
- Overrides:
onEntityRemovedin classWorld
-
addEntityToWorld
Add an ID to Entity mapping to entityHashSet -
getEntityByID
Returns the Entity with the given ID, or null if it doesn't exist in this World.- Specified by:
getEntityByIDin classWorld
-
removeEntityFromWorld
-
setBlockAndMetadataAndInvalidate
public boolean setBlockAndMetadataAndInvalidate(int par1, int par2, int par3, int par4, int par5) -
sendQuittingDisconnectingPacket
public void sendQuittingDisconnectingPacket()If on MP, sends a quitting packet.- Overrides:
sendQuittingDisconnectingPacketin classWorld
-
getMinecartSoundUpdater
- Overrides:
getMinecartSoundUpdaterin classWorld
-
updateWeather
protected void updateWeather()Updates all weather states.- Overrides:
updateWeatherin classWorld
-
doVoidFogParticles
public void doVoidFogParticles(int par1, int par2, int par3) -
removeAllEntities
public void removeAllEntities()FCNOTE: This is not accurately named. It only removes all entities in the unload queue, NOT all loaded entities. -
addWorldInfoToCrashReport
Adds some basic stats of the world to the given crash report.- Overrides:
addWorldInfoToCrashReportin classWorld
-
playSound
public 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 -
func_92088_a
public void func_92088_a(double par1, double par3, double par5, double par7, double par9, double par11, NBTTagCompound par13NBTTagCompound) - Overrides:
func_92088_ain classWorld
-
func_96443_a
-
setWorldTime
public void setWorldTime(long par1) Sets the world time.- Overrides:
setWorldTimein classWorld
-
updateActiveChunkMap
protected void updateActiveChunkMap()- Overrides:
updateActiveChunkMapin classWorld
-
unloadEntities
Description copied from class:WorldAdds a list of entities to be unloaded on the next pass of World.updateEntities()- Overrides:
unloadEntitiesin classWorld
-
markTileEntityForDespawn
Description copied from class:Worldadds tile entity to despawn list (renamed from markEntityForDespawn)- Overrides:
markTileEntityForDespawnin classWorld
-
getData
-
setData
-