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, updateWeatherBody
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCollisionBoxes, getEntitiesWithinAABBExcludingEntity
getCelestialAngle, getChunkDefault, getCurrentMoonPhaseFactor, getDifficulty, getMoonPhase
func_212409_a, func_212410_a, func_212411_a
canBlockSeeSky, 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, isInsideWorldBorder
getMaxLightLevel
getCapability, getCapability
protected 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 World
public boolean isChunkLoaded(int x, int z, boolean allowEmpty)
protected void refreshVisibleChunks()
protected void tickBlocks()
tickBlocks
in class World
public boolean spawnEntity(Entity entityIn)
spawnEntity
in interface IWorldWriter
spawnEntity
in class World
public void removeEntity(Entity entityIn)
removeEntity
in class World
public void removeEntity(Entity entityIn, boolean keepData)
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)
public void invalidateRegionAndSetBlock(BlockPos pos, IBlockState state)
public void sendQuittingDisconnectingPacket()
sendQuittingDisconnectingPacket
in class World
protected void tickWeather()
tickWeather
in class World
protected void playMoodSoundAndCheckLight(int x, int z, Chunk chunkIn)
playMoodSoundAndCheckLight
in class World
public 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 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 RecipeManager getRecipeManager()
getRecipeManager
in class World
public void setScoreboard(Scoreboard scoreboardIn)
public void setDayTime(long time)
setDayTime
in class World
public ChunkProviderClient getChunkProvider()
getChunkProvider
in interface IWorld
getChunkProvider
in class World
public Scoreboard getScoreboard()
getScoreboard
in class World
public NetworkTagManager getTags()