public class ClientWorld extends World
| Modifier and Type | Field and Description |
|---|---|
private int |
ambienceTicks |
private it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver,ColorCache> |
colorCaches |
private ClientPlayNetHandler |
connection |
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity> |
entitiesById |
private java.util.List<Entity> |
globalEntities |
private java.util.Map<java.lang.String,MapData> |
maps |
private Minecraft |
mc |
private java.util.List<AbstractClientPlayerEntity> |
players |
private Scoreboard |
scoreboard |
private int |
timeLightningFlash |
private WorldRenderer |
worldRenderer |
addedTileEntityList, captureBlockSnapshots, capturedBlockSnapshots, chunkProvider, dimension, DIST_HASH_MAGIC, isRemote, loadedTileEntityList, LOGGER, prevRainingStrength, prevThunderingStrength, processingLoadedTiles, rainingStrength, rand, restoringBlockSnapshots, thunderingStrength, tickableTileEntities, tileEntitiesToBeRemoved, updateLCG, worldInfo| Constructor and Description |
|---|
ClientWorld(ClientPlayNetHandler netHandler,
WorldSettings worldSettingsIn,
DimensionType dimType,
int viewDistance,
IProfiler profilerIn,
WorldRenderer worldRendererIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntitiesToChunk(Chunk chunkIn) |
void |
addEntity(int entityIdIn,
Entity entityToSpawn) |
private void |
addEntityImpl(int entityIdIn,
Entity entityToSpawn) |
void |
addLightning(LightningBoltEntity entityIn) |
void |
addOptionalParticle(IParticleData particleData,
boolean ignoreRange,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addOptionalParticle(IParticleData particleData,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addParticle(IParticleData particleData,
boolean forceAlwaysRender,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addParticle(IParticleData particleData,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addPlayer(int playerId,
AbstractClientPlayerEntity playerEntityIn) |
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.Mutable pos) |
void |
checkChunk(Entity entityIn) |
boolean |
chunkExists(int chunkX,
int chunkZ) |
void |
clearColorCaches() |
CrashReportCategory |
fillCrashReport(CrashReport report) |
java.lang.Iterable<Entity> |
getAllEntities() |
int |
getBlockColor(BlockPos blockPosIn,
ColorResolver colorResolverIn) |
int |
getBlockColorRaw(BlockPos blockPosIn,
ColorResolver colorResolverIn) |
ClientChunkProvider |
getChunkProvider() |
Vec3d |
getCloudColor(float partialTicks) |
int |
getCountLoadedEntities() |
Entity |
getEntityByID(int id) |
Vec3d |
getFogColor(float partialTicks) |
double |
getHorizonHeight() |
MapData |
getMapData(java.lang.String mapName) |
int |
getNextMapId() |
Biome |
getNoiseBiomeRaw(int x,
int y,
int z) |
ITickList<Block> |
getPendingBlockTicks() |
ITickList<Fluid> |
getPendingFluidTicks() |
java.util.List<AbstractClientPlayerEntity> |
getPlayers() |
RecipeManager |
getRecipeManager() |
Scoreboard |
getScoreboard() |
Vec3d |
getSkyColor(BlockPos blockPosIn,
float partialTicks) |
float |
getStarBrightness(float partialTicks) |
float |
getSunBrightness(float partialTicks) |
NetworkTagManager |
getTags() |
int |
getTimeLightningFlash() |
void |
invalidateRegionAndSetBlock(BlockPos pos,
BlockState state) |
void |
makeFireworks(double x,
double y,
double z,
double motionX,
double motionY,
double motionZ,
CompoundNBT compound) |
void |
markBlockRangeForRenderUpdate(BlockPos blockPosIn,
BlockState oldState,
BlockState newState) |
void |
markSurroundingsForRerender(int sectionX,
int sectionY,
int sectionZ) |
void |
notifyBlockUpdate(BlockPos pos,
BlockState oldState,
BlockState newState,
int flags) |
void |
onChunkLoaded(int chunkX,
int chunkZ) |
void |
onChunkUnloaded(Chunk chunkIn) |
void |
playBroadcastSound(int id,
BlockPos pos,
int data) |
void |
playEvent(PlayerEntity player,
int type,
BlockPos pos,
int data) |
private void |
playMoodSoundAndCheckLight() |
void |
playMovingSound(PlayerEntity playerIn,
Entity entityIn,
SoundEvent eventIn,
SoundCategory categoryIn,
float volume,
float pitch) |
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(PlayerEntity player,
double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
void |
registerMapData(MapData mapDataIn) |
void |
removeAllEntities() |
private void |
removeEntity(Entity entityIn) |
void |
removeEntityFromWorld(int eid) |
void |
sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress) |
void |
sendPacketToServer(IPacket<?> packetIn) |
void |
sendQuittingDisconnectingPacket() |
void |
setDayTime(long time) |
void |
setScoreboard(Scoreboard scoreboardIn) |
void |
setTimeLightningFlash(int timeFlashIn) |
private void |
spawnFluidParticle(BlockPos blockPosIn,
BlockState blockStateIn,
IParticleData particleDataIn,
boolean shapeDownSolid) |
private void |
spawnParticle(BlockPos posIn,
IParticleData particleDataIn,
VoxelShape voxelShapeIn,
double y) |
private void |
spawnParticle(double xStart,
double xEnd,
double zStart,
double zEnd,
double y,
IParticleData particleDataIn) |
void |
tick(java.util.function.BooleanSupplier hasTimeLeft) |
void |
tickEntities() |
void |
updateEntity(Entity entityIn) |
void |
updateEntityRidden(Entity p_217420_1_,
Entity p_217420_2_) |
addBlockEvent, addTileEntities, addTileEntity, advanceTime, calculateInitialSkylight, calculateInitialWeather, calculateInitialWeatherBody, canMineBlockBody, checkBlockCollision, close, createExplosion, createExplosion, createExplosion, destroyBlock, extinguishFire, findBlockstateInArea, getActualHeight, getBiomeManager, getBlockRandomPos, getBlockReader, getBlockState, getCelestialAngleRadians, getChunk, getChunk, getChunkAt, getDayTime, getDifficultyForLocation, getDimension, getEntitiesInAABBexcluding, getEntitiesWithinAABB, getEntitiesWithinAABB, getFluidState, getGameRules, getGameTime, getGroundAboveSeaLevel, getHeight, getLightManager, getLoadedEntitiesWithinAABB, getMaxEntityRadius, getProfiler, getProviderName, getRainStrength, getRandom, getRedstonePower, getRedstonePowerFromNeighbors, getSeaLevel, getSeed, getServer, getSkylightSubtracted, getSpawnPoint, getStrongPower, getThunderStrength, getTileEntity, getWorld, getWorldBorder, getWorldInfo, getWorldType, guardEntityTick, hasBlockState, increaseMaxEntityRadius, isBlockinHighHumidity, isBlockModifiable, isBlockPowered, isBlockPresent, isDaytime, isFlammableWithin, isMaterialInBB, isNightTime, isOutsideBuildHeight, isRaining, isRainingAt, isRemote, isSaveDisabled, isSidePowered, isThundering, isTopSolid, isValid, isYOutOfBounds, markAndNotifyBlock, markChunkDirty, neighborChanged, notifyNeighbors, notifyNeighborsOfStateChange, notifyNeighborsOfStateExcept, onBlockStateChange, playSound, removeBlock, removeTileEntity, setAllowedSpawnTypes, setBlockState, setBlockState, setEntityState, setGameTime, setInitialSpawnLocation, setRainStrength, setSpawnPoint, setThunderStrength, setTileEntity, tickBlockEntities, updateComparatorOutputLevelareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckNoEntityCollision, getCelestialAngle, getCurrentMoonPhaseFactor, getDifficulty, getEmptyCollisionShapes, getHeight, getMoonPhase, playEventfunc_225318_b, getClosestEntity, getClosestEntityWithinAABB, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getLoadedEntitiesWithinAABB, getPlayerByUuid, getTargettableEntitiesWithinAABB, getTargettablePlayersWithinAABB, isPlayerWithincanBlockSeeSky, containsAnyLiquid, getBiome, getBrightness, getChunk, getChunk, getLight, getNeighborAwareLightSubtracted, getNoiseBiome, getStrongPower, hasWater, isAirBlock, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoadedcanSeeSky, getLightFor, getLightSubtractedcheckNoEntityCollision, func_226663_a_, getCollisionShapes, getCollisionShapes, hasNoCollisions, hasNoCollisions, hasNoCollisions, hasNoCollisionsfunc_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocks, rayTraceBlocksgetMaxHeightaddEntity, destroyBlockgetCapability, getCapabilityprivate final java.util.List<Entity> globalEntities
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity> entitiesById
private final ClientPlayNetHandler connection
private final WorldRenderer worldRenderer
private final Minecraft mc
private final java.util.List<AbstractClientPlayerEntity> players
private int ambienceTicks
private Scoreboard scoreboard
private final java.util.Map<java.lang.String,MapData> maps
private int timeLightningFlash
private final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver,ColorCache> colorCaches
public ClientWorld(ClientPlayNetHandler netHandler, WorldSettings worldSettingsIn, DimensionType dimType, int viewDistance, IProfiler profilerIn, WorldRenderer worldRendererIn)
public void tick(java.util.function.BooleanSupplier hasTimeLeft)
public java.lang.Iterable<Entity> getAllEntities()
public void tickEntities()
public void updateEntity(Entity entityIn)
public void checkChunk(Entity entityIn)
public void onChunkUnloaded(Chunk chunkIn)
public void onChunkLoaded(int chunkX,
int chunkZ)
public void clearColorCaches()
public boolean chunkExists(int chunkX,
int chunkZ)
private void playMoodSoundAndCheckLight()
public int getCountLoadedEntities()
public void addLightning(LightningBoltEntity entityIn)
public void addPlayer(int playerId,
AbstractClientPlayerEntity playerEntityIn)
public void addEntity(int entityIdIn,
Entity entityToSpawn)
private void addEntityImpl(int entityIdIn,
Entity entityToSpawn)
public void removeEntityFromWorld(int eid)
private void removeEntity(Entity entityIn)
public void addEntitiesToChunk(Chunk chunkIn)
@Nullable public Entity getEntityByID(int id)
getEntityByID in class Worldpublic void invalidateRegionAndSetBlock(BlockPos pos, BlockState state)
public void sendQuittingDisconnectingPacket()
sendQuittingDisconnectingPacket 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.Mutable pos)
private void spawnFluidParticle(BlockPos blockPosIn, BlockState blockStateIn, IParticleData particleDataIn, boolean shapeDownSolid)
private void spawnParticle(BlockPos posIn, IParticleData particleDataIn, VoxelShape voxelShapeIn, double y)
private void spawnParticle(double xStart,
double xEnd,
double zStart,
double zEnd,
double y,
IParticleData particleDataIn)
public void removeAllEntities()
public CrashReportCategory fillCrashReport(CrashReport report)
fillCrashReport in class Worldpublic void playSound(@Nullable
PlayerEntity player,
double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch)
public void playMovingSound(@Nullable
PlayerEntity playerIn,
Entity entityIn,
SoundEvent eventIn,
SoundCategory categoryIn,
float volume,
float pitch)
playMovingSound in class Worldpublic 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
CompoundNBT compound)
makeFireworks in class Worldpublic void sendPacketToServer(IPacket<?> packetIn)
sendPacketToServer in class Worldpublic RecipeManager getRecipeManager()
getRecipeManager in class Worldpublic void setScoreboard(Scoreboard scoreboardIn)
public void setDayTime(long time)
setDayTime in class Worldpublic ClientChunkProvider getChunkProvider()
getChunkProvider in interface IWorldgetChunkProvider in class World@Nullable public MapData getMapData(java.lang.String mapName)
getMapData in class Worldpublic void registerMapData(MapData mapDataIn)
registerMapData in class Worldpublic int getNextMapId()
getNextMapId in class Worldpublic Scoreboard getScoreboard()
getScoreboard in class Worldpublic NetworkTagManager getTags()
public void notifyBlockUpdate(BlockPos pos, BlockState oldState, BlockState newState, int flags)
notifyBlockUpdate in class Worldpublic void markBlockRangeForRenderUpdate(BlockPos blockPosIn, BlockState oldState, BlockState newState)
markBlockRangeForRenderUpdate in class Worldpublic void markSurroundingsForRerender(int sectionX,
int sectionY,
int sectionZ)
public void sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress)
sendBlockBreakProgress in class Worldpublic void playBroadcastSound(int id,
BlockPos pos,
int data)
playBroadcastSound in class Worldpublic void playEvent(@Nullable
PlayerEntity player,
int type,
BlockPos pos,
int data)
public void addParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addParticle in interface IWorldaddParticle in class Worldpublic void addParticle(IParticleData particleData, boolean forceAlwaysRender, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addParticle in class Worldpublic void addOptionalParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addOptionalParticle in class Worldpublic void addOptionalParticle(IParticleData particleData, boolean ignoreRange, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addOptionalParticle in class Worldpublic java.util.List<AbstractClientPlayerEntity> getPlayers()
public Biome getNoiseBiomeRaw(int x, int y, int z)
public float getSunBrightness(float partialTicks)
public Vec3d getCloudColor(float partialTicks)
public Vec3d getFogColor(float partialTicks)
public float getStarBrightness(float partialTicks)
public double getHorizonHeight()
public int getTimeLightningFlash()
public void setTimeLightningFlash(int timeFlashIn)
setTimeLightningFlash in class Worldpublic int getBlockColor(BlockPos blockPosIn, ColorResolver colorResolverIn)
public int getBlockColorRaw(BlockPos blockPosIn, ColorResolver colorResolverIn)