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 void
addEntityToWorld(int parInt1, Entity parEntity)
+ Add an ID to Entity mapping to entityHashSetCrashReportCategory
addWorldInfoToCrashReport(CrashReport crashreport)
+ 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 parInt1, int parInt2, boolean parFlag)
void
doVoidFogParticles(int parInt1, int parInt2, int parInt3)
Entity
getEntityByID(int i)
+ Returns the Entity with the given ID, or null if it doesn't exist in this World.protected int
getRenderDistanceChunks()
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.boolean
invalidateRegionAndSetBlock(BlockPos parBlockPos, IBlockState parIBlockState)
void
makeFireworks(double d0, double d1, double d2, double d3, double d4, double d5, NBTTagCompound nbttagcompound)
protected void
onEntityAdded(Entity entity)
protected void
onEntityRemoved(Entity entity)
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.playSoundvoid
playSoundAtPos(BlockPos parBlockPos, java.lang.String parString1, float parFloat1, float parFloat2, boolean parFlag)
+ Plays a sound at the specified position.void
removeAllEntities()
+ also releases skins.void
removeEntity(Entity entity)
+ Schedule the entity for removal during the next tick.Entity
removeEntityFromWorld(int parInt1)
void
sendQuittingDisconnectingPacket()
+ If on MP, sends a quitting packet.void
setWorldScoreboard(Scoreboard parScoreboard)
void
setWorldTime(long i)
+ Sets the world time.boolean
spawnEntityInWorld(Entity entity)
+ Called when an entity is spawned in the world.void
tick()
+ Runs a single tick for the worldprotected void
updateBlocks()
protected void
updateWeather()
+ 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:
createChunkProvider
in classWorld
-
updateBlocks
protected void updateBlocks()
- Overrides:
updateBlocks
in 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:
spawnEntityInWorld
in classWorld
-
removeEntity
public void removeEntity(Entity entity)
+ Schedule the entity for removal during the next tick. Marks the entity dead in anticipation.- Overrides:
removeEntity
in classWorld
-
onEntityAdded
protected void onEntityAdded(Entity entity)
- Overrides:
onEntityAdded
in classWorld
-
onEntityRemoved
protected void onEntityRemoved(Entity entity)
- Overrides:
onEntityRemoved
in 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:
getEntityByID
in 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:
sendQuittingDisconnectingPacket
in classWorld
-
updateWeather
protected void updateWeather()
+ Updates all weather states.- Overrides:
updateWeather
in classWorld
-
getRenderDistanceChunks
protected int getRenderDistanceChunks()
- Specified by:
getRenderDistanceChunks
in 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:
addWorldInfoToCrashReport
in 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:
makeFireworks
in classWorld
-
setWorldScoreboard
public void setWorldScoreboard(Scoreboard parScoreboard)
-
setWorldTime
public void setWorldTime(long i)
+ Sets the world time.- Overrides:
setWorldTime
in classWorld
-
-