public class WorldClient extends World
Modifier and Type | Field and Description |
---|---|
private int |
ambienceTicks |
private ChunkProviderClient |
clientChunkProvider |
private NetHandlerPlayClient |
connection |
private java.util.Set<Entity> |
entityList |
private java.util.Set<Entity> |
entitySpawnQueue |
private Minecraft |
mc |
private java.util.Set<ChunkPos> |
previousActiveChunkSet |
protected java.util.Set<ChunkPos> |
visibleChunks |
advancementManager, captureBlockSnapshots, capturedBlockSnapshots, chunkProvider, DIST_HASH_MAGIC, entitiesById, eventListeners, findingSpawnPoint, functionManager, isRemote, loadedEntityList, loadedTileEntityList, lootTable, mapStorage, MAX_ENTITY_RADIUS, pathListener, perWorldStorage, playerEntities, prevRainingStrength, prevThunderingStrength, profiler, provider, rainingStrength, rand, restoringBlockSnapshots, saveHandler, scheduledUpdatesAreImmediate, spawnHostileMobs, spawnPeacefulMobs, thunderingStrength, tickableTileEntities, unloadedEntityList, updateLCG, villageCollection, 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 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 compound) |
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) |
protected void |
refreshVisibleChunks() |
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 x,
int y,
int z,
int offset,
java.util.Random random,
boolean holdingBarrier,
BlockPos.MutableBlockPos pos) |
boolean |
spawnEntity(Entity entityIn) |
void |
tick() |
protected void |
updateBlocks() |
protected void |
updateWeather() |
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, 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, isInsideWorldBorder, isMaterialInBB, isOutsideBuildHeight, isRaining, isRainingAt, isSidePowered, isSideSolid, isSideSolid, isSpawnChunk, isThundering, isUpdateScheduled, isValid, joinEntityInSurroundings, loadData, loadEntities, markAndNotifyBlock, markBlockRangeForRenderUpdate, markBlockRangeForRenderUpdate, markBlocksDirtyVertical, markChunkDirty, markTileEntitiesInChunkForRemoval, 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, updateWeatherBody
private final NetHandlerPlayClient connection
private ChunkProviderClient clientChunkProvider
private final java.util.Set<Entity> entityList
private final java.util.Set<Entity> entitySpawnQueue
private final Minecraft mc
private final java.util.Set<ChunkPos> previousActiveChunkSet
private int ambienceTicks
protected java.util.Set<ChunkPos> visibleChunks
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 World
protected boolean isChunkLoaded(int x, int z, boolean allowEmpty)
isChunkLoaded
in class World
protected void refreshVisibleChunks()
protected void updateBlocks()
updateBlocks
in class World
public void doPreChunk(int chunkX, int chunkZ, boolean loadChunk)
public boolean spawnEntity(Entity entityIn)
spawnEntity
in class World
public void removeEntity(Entity entityIn)
removeEntity
in class World
public void onEntityAdded(Entity entityIn)
onEntityAdded
in class World
public void onEntityRemoved(Entity entityIn)
onEntityRemoved
in class World
public void addEntityToWorld(int entityID, Entity entityToSpawn)
@Nullable public Entity getEntityByID(int id)
getEntityByID
in class World
public Entity removeEntityFromWorld(int entityID)
@Deprecated public boolean invalidateRegionAndSetBlock(BlockPos pos, IBlockState state)
public void sendQuittingDisconnectingPacket()
sendQuittingDisconnectingPacket
in class World
protected void updateWeather()
updateWeather
in class World
protected void playMoodSoundAndCheckLight(int p_147467_1_, int p_147467_2_, Chunk chunkIn)
playMoodSoundAndCheckLight
in class World
public void doVoidFogParticles(int posX, int posY, int posZ)
public void showBarrierParticles(int x, int y, int z, int offset, java.util.Random random, boolean holdingBarrier, BlockPos.MutableBlockPos pos)
public void removeAllEntities()
public CrashReportCategory addWorldInfoToCrashReport(CrashReport report)
addWorldInfoToCrashReport
in class World
public 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 compound)
makeFireworks
in class World
public void sendPacketToServer(Packet<?> packetIn)
sendPacketToServer
in class World
public void setWorldScoreboard(Scoreboard scoreboardIn)
public void setWorldTime(long time)
setWorldTime
in class World
public ChunkProviderClient getChunkProvider()
getChunkProvider
in class World