public class WorldClient extends World
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<ChunkPos> |
visibleChunks |
captureBlockSnapshots, capturedBlockSnapshots, chunkProvider, dimension, DIST_HASH_MAGIC, entitiesById, eventListeners, isRemote, loadedEntityList, loadedTileEntityList, LOGGER, pathListener, playerEntities, prevRainingStrength, prevThunderingStrength, profiler, rainingStrength, rand, restoringBlockSnapshots, saveHandler, spawnHostileMobs, spawnPeacefulMobs, thunderingStrength, tickableTileEntities, unloadedEntityList, updateLCG, villageCollection, weatherEffects, worldInfo| Constructor and Description |
|---|
WorldClient(NetHandlerPlayClient p_i49845_1_,
WorldSettings p_i49845_2_,
DimensionType p_i49845_3_,
EnumDifficulty p_i49845_4_,
Profiler p_i49845_5_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntityToWorld(int entityID,
Entity entityToSpawn) |
void |
animateTick(int posX,
int posY,
int posZ) |
void |
animateTick(int x,
int y,
int z,
int offset,
java.util.Random random,
boolean holdingBarrier,
BlockPos.MutableBlockPos pos) |
protected IChunkProvider |
createChunkProvider() |
CrashReportCategory |
fillCrashReport(CrashReport report) |
ChunkProviderClient |
getChunkProvider() |
Entity |
getEntityByID(int id) |
ITickList<Block> |
getPendingBlockTicks() |
ITickList<Fluid> |
getPendingFluidTicks() |
RecipeManager |
getRecipeManager() |
Scoreboard |
getScoreboard() |
NetworkTagManager |
getTags() |
void |
invalidateRegionAndSetBlock(BlockPos pos,
IBlockState state) |
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 x,
int z,
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) |
void |
removeEntity(Entity entityIn,
boolean keepData) |
Entity |
removeEntityFromWorld(int entityID) |
void |
sendPacketToServer(Packet<?> packetIn) |
void |
sendQuittingDisconnectingPacket() |
void |
setDayTime(long time) |
void |
setScoreboard(Scoreboard scoreboardIn) |
boolean |
spawnEntity(Entity entityIn) |
void |
tick(java.util.function.BooleanSupplier p_72835_1_) |
protected void |
tickBlocks() |
protected void |
tickWeather() |
addBlockEvent, addEventListener, addOptionalParticle, addParticle, addTileEntities, addTileEntity, addWeatherEffect, calculateInitialSkylight, calculateInitialWeather, calculateInitialWeatherBody, calculateSkylightSubtracted, canMineBlockBody, canSeeSky, checkBlockCollision, checkLight, checkLightFor, checkNoEntityCollision, checkSessionLock, close, countEntities, countEntities, createExplosion, createExplosion, destroyBlock, extinguishFire, findBlockstateInArea, findNearestEntityWithinAABB, findNearestStructure, func_212392_a, func_212412_ag, func_212414_b, func_212416_f, func_212417_b, func_212419_R, func_212420_a, func_212817_a, getActualHeight, getBiome, getBiomeBody, getBlockDensity, getBlockState, getCelestialAngleRadians, getChunk, getChunk, getChunksLowestHorizon, getClosestPlayer, getCloudColorBody, getCloudColour, getCombinedLight, getDayTime, getDebugLoadedEntities, getDifficultyForLocation, getDimension, getEntities, getEntitiesInAABBexcluding, getEntitiesWithinAABB, getEntitiesWithinAABB, getFluidState, getFogColor, getGameRules, getGameTime, getGroundAboveSeaLevel, getHeight, getHeight, getHorizon, getLastLightningBolt, getLightFor, getLightFromNeighborsFor, getLightSubtracted, getMapStorage, getMaxEntityRadius, getNearestAttackablePlayer, getNearestAttackablePlayer, getNearestAttackablePlayer, getPlayerEntityByName, getPlayerEntityByUUID, getPlayers, getProviderName, getRainStrength, getRandom, getRedstonePower, getRedstonePowerFromNeighbors, getSaveHandler, getSeaLevel, getSeed, getServer, getSkyColor, getSkyColorBody, getSkylightSubtracted, getSpawnPoint, getStarBrightness, getStrongPower, getStrongPower, getSunBrightness, getSunBrightnessBody, getSunBrightnessFactor, getThunderStrength, getTileEntity, getVillageCollection, getWorld, getWorldBorder, getWorldInfo, getWorldType, increaseMaxEntityRadius, initCapabilities, initialize, isAirBlock, isAnyPlayerWithinRangeAt, isBlockFullCube, isBlockinHighHumidity, isBlockModifiable, isBlockPowered, isBlockPresent, isDaytime, isFlammableWithin, isMaterialInBB, isOutsideBuildHeight, isRaining, isRainingAt, isRemote, isSidePowered, isSpawnChunk, isThundering, isTopSolid, isValid, joinEntityInSurroundings, markAndNotifyBlock, markBlockRangeForRenderUpdate, markBlockRangeForRenderUpdate, markBlocksDirtyVertical, markChunkDirty, markTileEntityForRemoval, neighborChanged, newExplosion, notifyBlockUpdate, notifyLightSet, notifyNeighbors, notifyNeighborsOfStateChange, notifyNeighborsOfStateExcept, playBroadcastSound, playEvent, playEvent, playRecord, playSound, rayTraceBlocks, rayTraceBlocks, rayTraceBlocks, removeBlock, removeEntityDangerously, removeEntityDangerously, removeEventListener, removeTileEntity, sendBlockBreakProgress, setAllowedSpawnTypes, setBlockState, setBlockState, setEntityState, setInitialSpawnLocation, setLastLightningBolt, setLightFor, setRainStrength, setSeaLevel, setSkylightSubtracted, setSpawnPoint, setThunderStrength, setTileEntity, setTotalWorldTime, spawnParticle, tickEntities, tickEntity, tickEntity, tickPlayers, unloadEntities, updateAllPlayersSleepingFlag, updateComparatorOutputLevel, updateWeatherBodyareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCollisionBoxes, getEntitiesWithinAABBExcludingEntitygetCelestialAngle, getChunkDefault, getCurrentMoonPhaseFactor, getDifficulty, getMoonPhasefunc_212409_a, func_212410_a, func_212411_acanBlockSeeSky, checkNoEntityCollision, checkNoEntityCollision, containsAnyLiquid, func_212388_b, func_212389_a, func_212391_a, getBrightness, getClosestPlayer, getClosestPlayerToEntity, getCollisionBoxes, getHeight, getLight, getNearestPlayerNotCreative, getNeighborAwareLightSubtracted, hasWater, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoaded, isBlockLoaded, isCollisionBoxesEmpty, isCollisionBoxesEmpty, isInsideWorldBordergetMaxLightLevelgetCapability, getCapabilityprotected java.util.Set<ChunkPos> visibleChunks
public WorldClient(NetHandlerPlayClient p_i49845_1_, WorldSettings p_i49845_2_, DimensionType p_i49845_3_, EnumDifficulty p_i49845_4_, Profiler p_i49845_5_)
protected IChunkProvider createChunkProvider()
createChunkProvider in class Worldpublic boolean isChunkLoaded(int x,
int z,
boolean allowEmpty)
protected void refreshVisibleChunks()
protected void tickBlocks()
tickBlocks in class Worldpublic boolean spawnEntity(Entity entityIn)
spawnEntity in interface IWorldWriterspawnEntity in class Worldpublic void removeEntity(Entity entityIn)
removeEntity in class Worldpublic void removeEntity(Entity entityIn, boolean keepData)
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)
public void invalidateRegionAndSetBlock(BlockPos pos, IBlockState state)
public void sendQuittingDisconnectingPacket()
sendQuittingDisconnectingPacket in class Worldprotected void tickWeather()
tickWeather in class Worldprotected void playMoodSoundAndCheckLight(int x,
int z,
Chunk chunkIn)
playMoodSoundAndCheckLight in class Worldpublic void animateTick(int posX,
int posY,
int posZ)
public void animateTick(int x,
int y,
int z,
int offset,
java.util.Random random,
boolean holdingBarrier,
BlockPos.MutableBlockPos pos)
public void removeAllEntities()
public CrashReportCategory fillCrashReport(CrashReport report)
fillCrashReport 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 compound)
makeFireworks in class Worldpublic void sendPacketToServer(Packet<?> packetIn)
sendPacketToServer in class Worldpublic RecipeManager getRecipeManager()
getRecipeManager in class Worldpublic void setScoreboard(Scoreboard scoreboardIn)
public void setDayTime(long time)
setDayTime in class Worldpublic ChunkProviderClient getChunkProvider()
getChunkProvider in interface IWorldgetChunkProvider in class Worldpublic Scoreboard getScoreboard()
getScoreboard in class Worldpublic NetworkTagManager getTags()