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) |
CrashReportCategory |
addWorldInfoToCrashReport(CrashReport report) |
protected void |
buildChunkCoordList() |
protected IChunkProvider |
createChunkProvider() |
void |
doPreChunk(int chunkX,
int chunkZ,
boolean loadChunk) |
void |
doVoidFogParticles(int posX,
int posY,
int posZ) |
ChunkProviderClient |
getChunkProvider() |
Entity |
getEntityByID(int id) |
void |
invalidateBlockReceiveRegion(int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
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() |
void |
removeEntity(Entity entityIn) |
Entity |
removeEntityFromWorld(int entityID) |
void |
sendPacketToServer(Packet<?> packetIn) |
void |
sendQuittingDisconnectingPacket() |
void |
setWorldScoreboard(Scoreboard scoreboardIn) |
void |
setWorldTime(long 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 |
spawnEntityInWorld(Entity entityIn) |
void |
tick() |
protected void |
updateBlocks() |
protected void |
updateWeather() |
addBlockEvent, addEventListener, addTileEntities, addTileEntity, addWeatherEffect, calculateInitialSkylight, calculateInitialWeather, calculateInitialWeatherBody, calculateSkylightSubtracted, canBlockBePlaced, canBlockFreeze, canBlockFreezeBody, canBlockFreezeNoWater, canBlockFreezeWater, canBlockSeeSky, canMineBlockBody, canSeeSky, canSnowAt, canSnowAtBody, checkBlockCollision, checkLight, checkLightFor, checkNoEntityCollision, checkNoEntityCollision, checkSessionLock, collidesWithAnyBlock, containsAnyLiquid, countEntities, countEntities, createExplosion, destroyBlock, extendedLevelsInChunkCache, extinguishFire, findNearestEntityWithinAABB, getActualHeight, getBiomeForCoordsBody, getBiomeGenForCoords, getBiomeProvider, getBlockDensity, getBlockLightOpacity, getBlockState, getCelestialAngle, getCelestialAngleRadians, getChunkFromBlockCoords, getChunkFromChunkCoords, getChunksLowestHorizon, getClosestPlayer, getClosestPlayerToEntity, getCloudColorBody, getCloudColour, getCollisionBoxes, getCollisionBoxes, 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, 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, immediateBlockTick, init, initialize, isAABBInMaterial, isAirBlock, isAnyPlayerWithinRangeAt, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockFullCube, isBlockIndirectlyGettingPowered, isBlockinHighHumidity, isBlockLoaded, isBlockLoaded, isBlockModifiable, isBlockNormalCube, isBlockPowered, isBlockTickPending, isDaytime, isFlammableWithin, isInsideBorder, isMaterialInBB, isRaining, isRainingAt, isSidePowered, isSideSolid, isSideSolid, isSpawnChunk, isThundering, isUpdateScheduled, joinEntityInSurroundings, loadEntities, loadItemData, markAndNotifyBlock, markBlockRangeForRenderUpdate, markBlockRangeForRenderUpdate, markBlocksDirtyVertical, markChunkDirty, markTileEntityForRemoval, newExplosion, notifyBlockOfStateChange, notifyBlockUpdate, notifyLightSet, notifyNeighborsOfStateChange, notifyNeighborsOfStateExcept, notifyNeighborsRespectDebug, playBroadcastSound, playEvent, playEvent, playRecord, playSound, rayTraceBlocks, rayTraceBlocks, rayTraceBlocks, removeEntityDangerously, removeEventListener, removeTileEntity, scheduleBlockUpdate, scheduleUpdate, sendBlockBreakProgress, setAllowedSpawnTypes, setBlockState, setBlockState, setBlockToAir, setEntityState, setInitialSpawnLocation, setItemData, setLastLightningBolt, setLightFor, setRainStrength, setRandomSeed, setSeaLevel, setSkylightSubtracted, setSpawnPoint, setThunderStrength, setTileEntity, setTotalWorldTime, spawnParticle, spawnParticle, tickPlayers, tickUpdates, unloadEntities, updateAllPlayersSleepingFlag, updateBlockTick, updateComparatorOutputLevel, updateEntities, updateEntity, updateEntityWithOptionalForce, 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 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 entityID,
Entity entityToSpawn)
@Nullable 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(@Nullable
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,
@Nullable
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