public class WorldClient extends World
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<ChunkPos> |
viewableChunks |
captureBlockSnapshots, capturedBlockSnapshots, chunkProvider, DIST_HASH_MAGIC, entitiesById, eventListeners, findingSpawnPoint, isRemote, loadedEntityList, loadedTileEntityList, lootTable, mapStorage, MAX_ENTITY_RADIUS, pathListener, perWorldStorage, playerEntities, prevRainingStrength, prevThunderingStrength, provider, rainingStrength, rand, restoringBlockSnapshots, saveHandler, scheduledUpdatesAreImmediate, spawnHostileMobs, spawnPeacefulMobs, theProfiler, thunderingStrength, tickableTileEntities, unloadedEntityList, updateLCG, villageCollectionObj, weatherEffects, worldInfo, worldScoreboard| Constructor and Description |
|---|
WorldClient(NetHandlerPlayClient netHandler,
WorldSettings settings,
int dimension,
EnumDifficulty difficulty,
Profiler profilerIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntityToWorld(int entityID,
Entity entityToSpawn)
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 void |
buildChunkCoordList() |
protected IChunkProvider |
createChunkProvider()
Creates the chunk provider for this world.
|
void |
doPreChunk(int chunkX,
int chunkZ,
boolean loadChunk) |
void |
doVoidFogParticles(int posX,
int posY,
int posZ) |
ChunkProviderClient |
getChunkProvider()
gets the world's chunk provider
|
Entity |
getEntityByID(int id)
Returns the Entity with the given ID, or null if it doesn't exist in this World.
|
void |
invalidateBlockReceiveRegion(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
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 pos,
IBlockState state)
Deprecated.
|
protected boolean |
isChunkLoaded(int x,
int z,
boolean allowEmpty) |
void |
makeFireworks(double x,
double y,
double z,
double motionX,
double motionY,
double motionZ,
NBTTagCompound compund) |
void |
onEntityAdded(Entity entityIn) |
void |
onEntityRemoved(Entity entityIn) |
protected void |
playMoodSoundAndCheckLight(int p_147467_1_,
int p_147467_2_,
Chunk chunkIn) |
void |
playSound(BlockPos pos,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch,
boolean distanceDelay) |
void |
playSound(double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch,
boolean distanceDelay) |
void |
playSound(EntityPlayer player,
double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
void |
removeAllEntities()
also releases skins.
|
void |
removeEntity(Entity entityIn)
Schedule the entity for removal during the next tick.
|
Entity |
removeEntityFromWorld(int entityID) |
void |
sendPacketToServer(Packet<?> packetIn) |
void |
sendQuittingDisconnectingPacket()
If on MP, sends a quitting packet.
|
void |
setWorldScoreboard(Scoreboard scoreboardIn) |
void |
setWorldTime(long time)
Sets the world time.
|
void |
showBarrierParticles(int p_184153_1_,
int p_184153_2_,
int p_184153_3_,
int p_184153_4_,
java.util.Random random,
boolean p_184153_6_,
BlockPos.MutableBlockPos pos) |
boolean |
spawnEntity(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, addEventListener, addTileEntities, addTileEntity, addWeatherEffect, calculateInitialSkylight, calculateInitialWeather, calculateInitialWeatherBody, calculateSkylightSubtracted, canBlockFreeze, canBlockFreezeBody, canBlockFreezeNoWater, canBlockFreezeWater, canBlockSeeSky, canMineBlockBody, canSeeSky, canSnowAt, canSnowAtBody, checkBlockCollision, checkLight, checkLightFor, checkNoEntityCollision, checkNoEntityCollision, checkSessionLock, collidesWithAnyBlock, containsAnyLiquid, countEntities, countEntities, createExplosion, destroyBlock, extinguishFire, findNearestEntityWithinAABB, findNearestStructure, func_191503_g, getActualHeight, getBiome, getBiomeForCoordsBody, getBiomeProvider, getBlockDensity, getBlockLightOpacity, getBlockState, getCapability, getCelestialAngle, getCelestialAngleRadians, getChunkFromBlockCoords, getChunkFromChunkCoords, getChunksLowestHorizon, getClosestPlayer, getClosestPlayer, getClosestPlayerToEntity, getCloudColorBody, getCloudColour, getCollisionBoxes, getCombinedLight, getCurrentDate, getCurrentMoonPhaseFactor, getCurrentMoonPhaseFactorBody, getDebugLoadedEntities, getDifficulty, getDifficultyForLocation, getEntities, getEntitiesInAABBexcluding, getEntitiesWithinAABB, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getFogColor, getGameRules, getGroundAboveSeaLevel, getHeight, getHeight, getHeight, getHorizon, getLastLightningBolt, getLight, getLight, getLightBrightness, getLightFor, getLightFromNeighbors, getLightFromNeighborsFor, getLoadedEntityList, getLootTableManager, getMapStorage, getMinecraftServer, getMoonPhase, getNearestAttackablePlayer, getNearestAttackablePlayer, getNearestAttackablePlayer, getNearestPlayerNotCreative, getPendingBlockUpdates, getPendingBlockUpdates, getPersistentChunkIterable, getPersistentChunks, getPerWorldStorage, getPlayerEntityByName, getPlayerEntityByUUID, getPlayers, getPrecipitationHeight, getProviderName, getRainStrength, getRedstonePower, getSaveHandler, getScoreboard, getSeaLevel, getSeed, getSkyColor, getSkyColorBody, getSkylightSubtracted, getSpawnPoint, getStarBrightness, getStarBrightnessBody, getStrongPower, getStrongPower, getSunBrightness, getSunBrightnessBody, getSunBrightnessFactor, getThunderStrength, getTileEntity, getTopSolidOrLiquidBlock, getTotalWorldTime, getUniqueDataId, getVillageCollection, getWorldBorder, getWorldInfo, getWorldTime, getWorldType, handleMaterialAcceleration, hasCapability, immediateBlockTick, init, initCapabilities, initialize, isAirBlock, isAnyPlayerWithinRangeAt, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockFullCube, isBlockIndirectlyGettingPowered, isBlockinHighHumidity, isBlockLoaded, isBlockLoaded, isBlockModifiable, isBlockNormalCube, isBlockPowered, isBlockTickPending, isChunkGeneratedAt, isDaytime, isFlammableWithin, isMaterialInBB, isOutsideBuildHeight, isRaining, isRainingAt, isSidePowered, isSideSolid, isSideSolid, isSpawnChunk, isThundering, isUpdateScheduled, isValid, joinEntityInSurroundings, loadData, loadEntities, markAndNotifyBlock, markBlockRangeForRenderUpdate, markBlockRangeForRenderUpdate, markBlocksDirtyVertical, markChunkDirty, markTileEntityForRemoval, mayPlace, neighborChanged, newExplosion, notifyBlockUpdate, notifyLightSet, notifyNeighborsOfStateChange, notifyNeighborsOfStateExcept, notifyNeighborsRespectDebug, observedNeighborChanged, playBroadcastSound, playEvent, playEvent, playRecord, playSound, rayTraceBlocks, rayTraceBlocks, rayTraceBlocks, removeEntityDangerously, removeEventListener, removeTileEntity, scheduleBlockUpdate, scheduleUpdate, sendBlockBreakProgress, setAllowedSpawnTypes, setBlockState, setBlockState, setBlockToAir, setData, setEntityState, setInitialSpawnLocation, setLastLightningBolt, setLightFor, setRainStrength, setRandomSeed, setSeaLevel, setSkylightSubtracted, setSpawnPoint, setThunderStrength, setTileEntity, setTotalWorldTime, spawnAlwaysVisibleParticle, spawnParticle, spawnParticle, tickPlayers, tickUpdates, unloadEntities, updateAllPlayersSleepingFlag, updateBlockTick, updateComparatorOutputLevel, updateEntities, updateEntity, updateEntityWithOptionalForce, updateObservingBlocksAt, updateWeatherBodyprotected java.util.Set<ChunkPos> viewableChunks
public WorldClient(NetHandlerPlayClient netHandler, WorldSettings settings, int dimension, EnumDifficulty difficulty, Profiler profilerIn)
public void invalidateBlockReceiveRegion(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
protected IChunkProvider createChunkProvider()
createChunkProvider in class Worldprotected boolean isChunkLoaded(int x,
int z,
boolean allowEmpty)
isChunkLoaded in class Worldprotected void buildChunkCoordList()
protected void updateBlocks()
updateBlocks in class Worldpublic void doPreChunk(int chunkX,
int chunkZ,
boolean loadChunk)
public boolean spawnEntity(Entity entityIn)
spawnEntity 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 entityID,
Entity entityToSpawn)
public Entity getEntityByID(int id)
getEntityByID in class Worldpublic Entity removeEntityFromWorld(int entityID)
@Deprecated public boolean invalidateRegionAndSetBlock(BlockPos pos, IBlockState state)
public void sendQuittingDisconnectingPacket()
sendQuittingDisconnectingPacket in class Worldprotected void updateWeather()
updateWeather in class Worldprotected void playMoodSoundAndCheckLight(int p_147467_1_,
int p_147467_2_,
Chunk chunkIn)
playMoodSoundAndCheckLight in class Worldpublic void doVoidFogParticles(int posX,
int posY,
int posZ)
public void showBarrierParticles(int p_184153_1_,
int p_184153_2_,
int p_184153_3_,
int p_184153_4_,
java.util.Random random,
boolean p_184153_6_,
BlockPos.MutableBlockPos pos)
public void removeAllEntities()
public CrashReportCategory addWorldInfoToCrashReport(CrashReport report)
addWorldInfoToCrashReport in class Worldpublic void playSound(EntityPlayer player, double x, double y, double z, SoundEvent soundIn, SoundCategory category, float volume, float pitch)
public void playSound(BlockPos pos, SoundEvent soundIn, SoundCategory category, float volume, float pitch, boolean distanceDelay)
public void playSound(double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
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 sendPacketToServer(Packet<?> packetIn)
sendPacketToServer in class Worldpublic void setWorldScoreboard(Scoreboard scoreboardIn)
public void setWorldTime(long time)
setWorldTime in class Worldpublic ChunkProviderClient getChunkProvider()
getChunkProvider in class World