Package net.minecraft.client.multiplayer
Class WorldClient
- java.lang.Object
-
- net.minecraft.world.World
-
- net.minecraft.client.multiplayer.WorldClient
-
- All Implemented Interfaces:
IBlockAccess
public class WorldClient extends World
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
-
Fields inherited from class net.minecraft.world.World
activeChunkSet, chunkProvider, DIST_HASH_MAGIC, entitiesById, findingSpawnPoint, loadedEntityList, loadedTileEntityList, mapStorage, playerEntities, prevRainingStrength, prevThunderingStrength, provider, rainingStrength, rand, saveHandler, scheduledUpdatesAreImmediate, spawnHostileMobs, spawnPeacefulMobs, theProfiler, thunderingStrength, tickableTileEntities, unloadedEntityList, updateLCG, weatherEffects, worldAccesses, worldInfo, worldScoreboard
-
-
Constructor Summary
Constructors Constructor Description WorldClient(NetHandlerPlayClient parNetHandlerPlayClient, WorldSettings parWorldSettings, int parInt1, EnumDifficulty parEnumDifficulty, Profiler parProfiler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntityToWorld(int parInt1, Entity parEntity)+ Add an ID to Entity mapping to entityHashSetCrashReportCategoryaddWorldInfoToCrashReport(CrashReport crashreport)+ Adds some basic stats of the world to the given crash report.protected IChunkProvidercreateChunkProvider()+ Creates the chunk provider for this world.voiddoPreChunk(int parInt1, int parInt2, boolean parFlag)voiddoVoidFogParticles(int parInt1, int parInt2, int parInt3)EntitygetEntityByID(int i)+ Returns the Entity with the given ID, or null if it doesn't exist in this World.protected intgetRenderDistanceChunks()voidinvalidateBlockReceiveRegion(int parInt1, int parInt2, int parInt3, int parInt4, int parInt5, int parInt6)+ 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.booleaninvalidateRegionAndSetBlock(BlockPos parBlockPos, IBlockState parIBlockState)voidmakeFireworks(double d0, double d1, double d2, double d3, double d4, double d5, NBTTagCompound nbttagcompound)protected voidonEntityAdded(Entity entity)protected voidonEntityRemoved(Entity entity)voidplaySound(double d0, double d1, double d2, java.lang.String s, float f, float f1, boolean flag)+ par8 is loudness, all pars passed to minecraftInstance.sndManager.playSoundvoidplaySoundAtPos(BlockPos parBlockPos, java.lang.String parString1, float parFloat1, float parFloat2, boolean parFlag)+ Plays a sound at the specified position.voidremoveAllEntities()+ also releases skins.voidremoveEntity(Entity entity)+ Schedule the entity for removal during the next tick.EntityremoveEntityFromWorld(int parInt1)voidsendQuittingDisconnectingPacket()+ If on MP, sends a quitting packet.voidsetWorldScoreboard(Scoreboard parScoreboard)voidsetWorldTime(long i)+ Sets the world time.booleanspawnEntityInWorld(Entity entity)+ Called when an entity is spawned in the world.voidtick()+ Runs a single tick for the worldprotected voidupdateBlocks()protected voidupdateWeather()+ Updates all weather states.-
Methods inherited from class net.minecraft.world.World
addBlockEvent, addTileEntities, addTileEntity, addWeatherEffect, addWorldAccess, calculateInitialSkylight, calculateInitialWeather, calculateSkylightSubtracted, canBlockBePlaced, canBlockFreeze, canBlockFreezeNoWater, canBlockFreezeWater, canBlockSeeSky, canLightningStrike, canSeeSky, canSnowAt, checkBlockCollision, checkLight, checkLightFor, checkNoEntityCollision, checkNoEntityCollision, checkSessionLock, countEntities, createExplosion, destroyBlock, doesBlockHaveSolidTopSurface, extendedLevelsInChunkCache, extinguishFire, findNearestEntityWithinAABB, forceBlockUpdateTick, func_147461_a, func_181544_b, func_181545_F, getActualHeight, getBiomeGenForCoords, getBlock, getBlockDensity, getBlockState, getCelestialAngle, getCelestialAngleRadians, getChunkFromBlockCoords, getChunkFromChunkCoords, getChunkProvider, getChunksLowestHorizon, getClosestPlayer, getClosestPlayerToEntity, getCloudColour, getCollidingBoundingBoxes, getCombinedLight, getCurrentDate, getCurrentMoonPhaseFactor, getDebugLoadedEntities, getDifficulty, getDifficultyForLocation, getEntities, getEntitiesInAABBexcluding, getEntitiesWithinAABB, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getEntityByUUID, getFogColor, getGameRules, getGroundAboveSeaLevel, getHeight, getHeight, getHorizon, getLastLightningBolt, getLight, getLight, getLightBrightness, getLightFor, getLightFromNeighbors, getLightFromNeighborsFor, getLoadedEntityList, getMapStorage, getMoonPhase, getPendingBlockUpdates, getPlayerEntityByName, getPlayerEntityByUUID, getPlayers, getPrecipitationHeight, getProviderName, getRainStrength, getRedstonePower, getSaveHandler, getScoreboard, getSeed, getSkyColor, getSkylightSubtracted, getSpawnPoint, getStarBrightness, getStrongholdPos, getStrongPower, getStrongPower, getSunBrightness, getThunderStrength, getTileEntity, getTopSolidOrLiquidBlock, getTotalWorldTime, getUniqueDataId, getWorldBorder, getWorldInfo, getWorldTime, getWorldType, handleMaterialAcceleration, init, initialize, isAABBInMaterial, isAirBlock, isAnyLiquid, isAnyPlayerWithinRangeAt, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockFullCube, isBlockIndirectlyGettingPowered, isBlockinHighHumidity, isBlockLoaded, isBlockLoaded, isBlockModifiable, isBlockNormalCube, isBlockPowered, isBlockTickPending, isChunkLoaded, isDaytime, isFindingSpawnPoint, isFlammableWithin, isInsideBorder, isMaterialInBB, isRaining, isSidePowered, isSpawnChunk, isThundering, joinEntityInSurroundings, loadEntities, loadItemData, markBlockForUpdate, markBlockRangeForRenderUpdate, markBlockRangeForRenderUpdate, markBlocksDirtyVertical, markChunkDirty, markTileEntityForRemoval, newExplosion, notifyBlockOfStateChange, notifyLightSet, notifyNeighborsOfStateChange, notifyNeighborsOfStateExcept, notifyNeighborsRespectDebug, playAuxSFX, playAuxSFXAtEntity, playBroadcastSound, playMoodSoundAndCheckLight, playRecord, playSoundAtEntity, playSoundEffect, playSoundToNearExcept, rayTraceBlocks, rayTraceBlocks, rayTraceBlocks, removePlayerEntityDangerously, removeTileEntity, removeWorldAccess, scheduleBlockUpdate, scheduleUpdate, sendBlockBreakProgress, setActivePlayerChunksAndCheckLight, setAllowedSpawnTypes, setBlockState, setBlockState, setBlockToAir, setEntityState, setInitialSpawnLocation, setItemData, setLastLightningBolt, setLightFor, setRainStrength, setRandomSeed, setSkylightSubtracted, setSpawnPoint, setThunderStrength, setTileEntity, setTotalWorldTime, spawnParticle, spawnParticle, tickUpdates, unloadEntities, updateAllPlayersSleepingFlag, updateBlockTick, updateComparatorOutputLevel, updateEntities, updateEntity, updateEntityWithOptionalForce
-
-
-
-
Constructor Detail
-
WorldClient
public WorldClient(NetHandlerPlayClient parNetHandlerPlayClient, WorldSettings parWorldSettings, int parInt1, EnumDifficulty parEnumDifficulty, Profiler parProfiler)
-
-
Method Detail
-
invalidateBlockReceiveRegion
public void invalidateBlockReceiveRegion(int parInt1, int parInt2, int parInt3, int parInt4, int parInt5, int parInt6)+ 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
protected IChunkProvider createChunkProvider()
+ Creates the chunk provider for this world. Called in the constructor. Retrieves provider from worldProvider?- Specified by:
createChunkProviderin classWorld
-
updateBlocks
protected void updateBlocks()
- Overrides:
updateBlocksin classWorld
-
doPreChunk
public void doPreChunk(int parInt1, int parInt2, boolean parFlag)
-
spawnEntityInWorld
public boolean spawnEntityInWorld(Entity entity)
+ Called when an entity is spawned in the world. This includes players.- Overrides:
spawnEntityInWorldin classWorld
-
removeEntity
public void removeEntity(Entity entity)
+ Schedule the entity for removal during the next tick. Marks the entity dead in anticipation.- Overrides:
removeEntityin classWorld
-
onEntityAdded
protected void onEntityAdded(Entity entity)
- Overrides:
onEntityAddedin classWorld
-
onEntityRemoved
protected void onEntityRemoved(Entity entity)
- Overrides:
onEntityRemovedin classWorld
-
addEntityToWorld
public void addEntityToWorld(int parInt1, Entity parEntity)+ Add an ID to Entity mapping to entityHashSet
-
getEntityByID
public Entity getEntityByID(int i)
+ Returns the Entity with the given ID, or null if it doesn't exist in this World.- Overrides:
getEntityByIDin classWorld
-
removeEntityFromWorld
public Entity removeEntityFromWorld(int parInt1)
-
invalidateRegionAndSetBlock
public boolean invalidateRegionAndSetBlock(BlockPos parBlockPos, IBlockState parIBlockState)
-
sendQuittingDisconnectingPacket
public void sendQuittingDisconnectingPacket()
+ If on MP, sends a quitting packet.- Overrides:
sendQuittingDisconnectingPacketin classWorld
-
updateWeather
protected void updateWeather()
+ Updates all weather states.- Overrides:
updateWeatherin classWorld
-
getRenderDistanceChunks
protected int getRenderDistanceChunks()
- Specified by:
getRenderDistanceChunksin classWorld
-
doVoidFogParticles
public void doVoidFogParticles(int parInt1, int parInt2, int parInt3)
-
removeAllEntities
public void removeAllEntities()
+ also releases skins.
-
addWorldInfoToCrashReport
public CrashReportCategory addWorldInfoToCrashReport(CrashReport crashreport)
+ Adds some basic stats of the world to the given crash report.- Overrides:
addWorldInfoToCrashReportin classWorld
-
playSoundAtPos
public void playSoundAtPos(BlockPos parBlockPos, java.lang.String parString1, float parFloat1, float parFloat2, boolean parFlag)
+ Plays a sound at the specified position.
-
playSound
public void playSound(double d0, double d1, double d2, java.lang.String s, float f, float f1, boolean flag)+ par8 is loudness, all pars passed to minecraftInstance.sndManager.playSound
-
makeFireworks
public void makeFireworks(double d0, double d1, double d2, double d3, double d4, double d5, NBTTagCompound nbttagcompound)- Overrides:
makeFireworksin classWorld
-
setWorldScoreboard
public void setWorldScoreboard(Scoreboard parScoreboard)
-
setWorldTime
public void setWorldTime(long i)
+ Sets the world time.- Overrides:
setWorldTimein classWorld
-
-