public class WorldClient extends World
activeChunkSet, captureBlockSnapshots, capturedBlockSnapshots, chunkProvider, DIST_HASH_MAGIC, entitiesById, findingSpawnPoint, isRemote, loadedEntityList, loadedTileEntityList, mapStorage, MAX_ENTITY_RADIUS, perWorldStorage, playerEntities, prevRainingStrength, prevThunderingStrength, provider, rainingStrength, rand, restoringBlockSnapshots, saveHandler, scheduledUpdatesAreImmediate, spawnHostileMobs, spawnPeacefulMobs, theProfiler, thunderingStrength, tickableTileEntities, unloadedEntityList, updateLCG, villageCollectionObj, 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 p_73027_1_,
Entity p_73027_2_)
Add an ID to Entity mapping to entityHashSet
|
CrashReportCategory |
addWorldInfoToCrashReport(CrashReport report)
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 p_73025_1_,
int p_73025_2_,
boolean p_73025_3_) |
void |
doVoidFogParticles(int p_73029_1_,
int p_73029_2_,
int p_73029_3_) |
Entity |
getEntityByID(int id)
Returns the Entity with the given ID, or null if it doesn't exist in this World.
|
protected int |
getRenderDistanceChunks() |
void |
invalidateBlockReceiveRegion(int p_73031_1_,
int p_73031_2_,
int p_73031_3_,
int p_73031_4_,
int p_73031_5_,
int p_73031_6_)
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 p_180503_1_,
IBlockState p_180503_2_) |
void |
makeFireworks(double x,
double y,
double z,
double motionX,
double motionY,
double motionZ,
NBTTagCompound compund) |
void |
onEntityAdded(Entity entityIn) |
void |
onEntityRemoved(Entity entityIn) |
void |
playSound(double x,
double y,
double z,
java.lang.String soundName,
float volume,
float pitch,
boolean distanceDelay)
par8 is loudness, all pars passed to minecraftInstance.sndManager.playSound
|
void |
playSoundAtPos(BlockPos p_175731_1_,
java.lang.String p_175731_2_,
float p_175731_3_,
float p_175731_4_,
boolean p_175731_5_)
Plays a sound at the specified position.
|
void |
removeAllEntities()
also releases skins.
|
void |
removeEntity(Entity entityIn)
Schedule the entity for removal during the next tick.
|
Entity |
removeEntityFromWorld(int p_73028_1_) |
void |
sendQuittingDisconnectingPacket()
If on MP, sends a quitting packet.
|
void |
setWorldScoreboard(Scoreboard p_96443_1_) |
void |
setWorldTime(long time)
Sets the world time.
|
boolean |
spawnEntityInWorld(Entity entityIn)
Called when an entity is spawned in the world.
|
void |
tick()
Runs a single tick for the world
|
protected void |
updateBlocks() |
protected void |
updateWeather()
Updates all weather states.
|
addBlockEvent, addTileEntities, addTileEntity, addWeatherEffect, addWorldAccess, calculateInitialSkylight, calculateInitialWeather, calculateInitialWeatherBody, calculateSkylightSubtracted, canBlockBePlaced, canBlockFreeze, canBlockFreezeBody, canBlockFreezeNoWater, canBlockFreezeWater, canBlockSeeSky, canLightningStrike, canMineBlockBody, canSeeSky, canSnowAt, canSnowAtBody, checkBlockCollision, checkLight, checkLightFor, checkNoEntityCollision, checkNoEntityCollision, checkSessionLock, countEntities, countEntities, createExplosion, destroyBlock, doesBlockHaveSolidTopSurface, drawCloudsBody, extendedLevelsInChunkCache, extinguishFire, findNearestEntityWithinAABB, forceBlockUpdateTick, func_147461_a, func_175712_a, getActualHeight, getBiomeGenForCoords, getBiomeGenForCoordsBody, getBlockDensity, getBlockLightOpacity, getBlockState, getCelestialAngle, getCelestialAngleRadians, getChunkFromBlockCoords, getChunkFromChunkCoords, getChunkProvider, getChunksLowestHorizon, getClosestPlayer, getClosestPlayerToEntity, getCloudColour, getCollidingBoundingBoxes, getCombinedLight, getCurrentDate, getCurrentMoonPhaseFactor, getCurrentMoonPhaseFactorBody, getDebugLoadedEntities, getDifficulty, getDifficultyForLocation, getEntities, getEntitiesInAABBexcluding, getEntitiesWithinAABB, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getFogColor, getGameRules, getGroundAboveSeaLevel, getHeight, getHeight, getHorizon, getLastLightningBolt, getLight, getLight, getLightBrightness, getLightFor, getLightFromNeighbors, getLightFromNeighborsFor, getLoadedEntityList, getMapStorage, getMoonPhase, getPendingBlockUpdates, getPersistentChunks, getPerWorldStorage, getPlayerEntityByName, getPlayerEntityByUUID, getPlayers, getPrecipitationHeight, getProviderName, getRainStrength, getRedstonePower, getSaveHandler, getScoreboard, getSeaLevel, getSeed, getSkyColor, getSkyColorBody, getSkylightSubtracted, getSpawnPoint, getStarBrightness, getStarBrightnessBody, getStrongholdPos, getStrongPower, getStrongPower, getSunBrightness, getSunBrightnessBody, getSunBrightnessFactor, getThunderStrength, getTileEntity, getTopSolidOrLiquidBlock, getTotalWorldTime, getUniqueDataId, getVillageCollection, getWorldBorder, getWorldChunkManager, getWorldInfo, getWorldTime, getWorldType, handleMaterialAcceleration, init, initialize, isAABBInMaterial, isAirBlock, isAnyLiquid, isAnyPlayerWithinRangeAt, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockFullCube, isBlockIndirectlyGettingPowered, isBlockinHighHumidity, isBlockLoaded, isBlockLoaded, isBlockModifiable, isBlockNormalCube, isBlockPowered, isBlockTickPending, isChunkLoaded, isDaytime, isFindingSpawnPoint, isFlammableWithin, isInsideBorder, isMaterialInBB, isRaining, isSidePowered, isSideSolid, isSideSolid, isSpawnChunk, isThundering, joinEntityInSurroundings, loadEntities, loadItemData, markAndNotifyBlock, 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, setSeaLevel, setSkylightSubtracted, setSpawnPoint, setThunderStrength, setTileEntity, setTotalWorldTime, spawnParticle, spawnParticle, tickUpdates, unloadEntities, updateAllPlayersSleepingFlag, updateBlockTick, updateComparatorOutputLevel, updateEntities, updateEntity, updateEntityWithOptionalForce, updateWeatherBodypublic 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 p_73031_1_,
int p_73031_2_,
int p_73031_3_,
int p_73031_4_,
int p_73031_5_,
int p_73031_6_)
protected IChunkProvider createChunkProvider()
createChunkProvider in class Worldprotected void updateBlocks()
updateBlocks in class Worldpublic void doPreChunk(int p_73025_1_,
int p_73025_2_,
boolean p_73025_3_)
public boolean spawnEntityInWorld(Entity entityIn)
spawnEntityInWorld in class Worldpublic void removeEntity(Entity entityIn)
removeEntity in class Worldpublic void onEntityAdded(Entity entityIn)
onEntityAdded in class Worldpublic void onEntityRemoved(Entity entityIn)
onEntityRemoved in class Worldpublic void addEntityToWorld(int p_73027_1_,
Entity p_73027_2_)
public Entity getEntityByID(int id)
getEntityByID in class Worldpublic Entity removeEntityFromWorld(int p_73028_1_)
public boolean invalidateRegionAndSetBlock(BlockPos p_180503_1_, IBlockState p_180503_2_)
public void sendQuittingDisconnectingPacket()
sendQuittingDisconnectingPacket in class Worldprotected void updateWeather()
updateWeather in class Worldprotected int getRenderDistanceChunks()
getRenderDistanceChunks in class Worldpublic void doVoidFogParticles(int p_73029_1_,
int p_73029_2_,
int p_73029_3_)
public void removeAllEntities()
public CrashReportCategory addWorldInfoToCrashReport(CrashReport report)
addWorldInfoToCrashReport in class Worldpublic void playSoundAtPos(BlockPos p_175731_1_, java.lang.String p_175731_2_, float p_175731_3_, float p_175731_4_, boolean p_175731_5_)
public void playSound(double x,
double y,
double z,
java.lang.String soundName,
float volume,
float pitch,
boolean distanceDelay)
public void makeFireworks(double x,
double y,
double z,
double motionX,
double motionY,
double motionZ,
NBTTagCompound compund)
makeFireworks in class Worldpublic void setWorldScoreboard(Scoreboard p_96443_1_)
public void setWorldTime(long time)
setWorldTime in class World