Package net.minecraft.client.multiplayer
Class ClientLevel
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Level>
net.minecraft.world.level.Level
net.minecraft.client.multiplayer.ClientLevel
- All Implemented Interfaces:
AutoCloseable,BiomeManager.NoiseBiomeSource,BlockAndTintGetter,BlockGetter,CollisionGetter,CommonLevelAccessor,EntityGetter,LevelAccessor,LevelHeightAccessor,LevelReader,LevelSimulatedReader,LevelSimulatedRW,LevelTimeAccess,LevelWriter,ICapabilityProvider,IForgeLevel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ClientChunkCacheprivate ClientLevel.ClientLevelDataprivate static longprivate ClientPacketListenerprivate DimensionSpecialEffectsprivate TransientEntitySectionManager<Entity>private static doubleprivate LevelRendererprivate Map<String,MapItemSavedData>private Minecraft(package private) List<AbstractClientPlayer>private Scoreboardprivate int(package private) EntityTickListprivate it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver,BlockTintCache>Fields inherited from class net.minecraft.world.level.Level
addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, LOGGER, LONG_PARTICLE_CLIP_RANGE, MAX_BRIGHTNESS, MAX_ENTITY_SPAWN_Y, MAX_LEVEL_SIZE, MIN_ENTITY_SPAWN_Y, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, restoringBlockSnapshots, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAY -
Constructor Summary
ConstructorsConstructorDescriptionClientLevel(ClientPacketListener p_104568_, ClientLevel.ClientLevelData p_104569_, ResourceKey<Level> p_104570_, DimensionType p_104571_, int p_104572_, Supplier<ProfilerFiller> p_104573_, LevelRenderer p_104574_, boolean p_104575_, long p_104576_) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlwaysVisibleParticle(ParticleOptions p_104774_, boolean p_104775_, double p_104776_, double p_104777_, double p_104778_, double p_104779_, double p_104780_, double p_104781_)voidaddAlwaysVisibleParticle(ParticleOptions p_104766_, double p_104767_, double p_104768_, double p_104769_, double p_104770_, double p_104771_, double p_104772_)voidaddDestroyBlockEffect(BlockPos p_171667_, BlockState p_171668_)private voidprotected voidaddMapData(Map<String,MapItemSavedData> p_171673_)voidaddParticle(ParticleOptions p_104714_, boolean p_104715_, double p_104716_, double p_104717_, double p_104718_, double p_104719_, double p_104720_, double p_104721_)voidaddParticle(ParticleOptions p_104706_, double p_104707_, double p_104708_, double p_104709_, double p_104710_, double p_104711_, double p_104712_)voidaddPlayer(int p_104631_, AbstractClientPlayer p_104632_)voidanimateTick(int p_104785_, int p_104786_, int p_104787_)intcalculateBlockTint(BlockPos p_104763_, ColorResolver p_104764_)voidvoidcreateFireworks(double p_104585_, double p_104586_, double p_104587_, double p_104588_, double p_104589_, double p_104590_, CompoundTag p_104591_)voiddestroyBlockProgress(int p_104634_, BlockPos p_104635_, int p_104636_)voidvoiddoAnimateTick(int p_171635_, int p_171636_, int p_171637_, int p_171638_, Random p_171639_, ClientLevel.MarkerParticleStatus p_171640_, BlockPos.MutableBlockPos p_171641_)effects()fillReportDetails(CrashReport p_104729_)voidprotected Map<String,MapItemSavedData>intgetBlockTint(BlockPos p_104700_, ColorResolver p_104701_)getCloudColor(float p_104809_)protected LevelEntityGetter<Entity>getEntity(int p_104609_)intintgetMapData(String p_104725_)private ClientLevel.MarkerParticleStatusfloatfloatgetSkyColor(Vec3 p_171661_, float p_171662_)floatgetSkyDarken(float p_104806_)intfloatgetStarBrightness(float p_104812_)getUncachedNoiseBiome(int p_104611_, int p_104612_, int p_104613_)voidglobalLevelEvent(int p_104743_, BlockPos p_104744_, int p_104745_)booleanhasChunk(int p_104737_, int p_104738_)voidlevelEvent(Player p_104654_, int p_104655_, BlockPos p_104656_, int p_104657_)voidonChunkLoaded(ChunkPos p_171650_)players()voidplayLocalSound(double p_104600_, double p_104601_, double p_104602_, SoundEvent p_104603_, SoundSource p_104604_, float p_104605_, float p_104606_, boolean p_104607_)voidplayLocalSound(BlockPos p_104678_, SoundEvent p_104679_, SoundSource p_104680_, float p_104681_, float p_104682_, boolean p_104683_)voidplaySound(Player p_104645_, double p_104646_, double p_104647_, double p_104648_, SoundEvent p_104649_, SoundSource p_104650_, float p_104651_, float p_104652_)voidplaySound(Player p_104659_, Entity p_104660_, SoundEvent p_104661_, SoundSource p_104662_, float p_104663_, float p_104664_)voidputNonPlayerEntity(int p_104628_, Entity p_104629_)voidremoveEntity(int p_171643_, Entity.RemovalReason p_171644_)voidsendBlockUpdated(BlockPos p_104685_, BlockState p_104686_, BlockState p_104687_, int p_104688_)voidsendPacketToServer(Packet<?> p_104734_)voidsetBlocksDirty(BlockPos p_104759_, BlockState p_104760_, BlockState p_104761_)voidsetDayTime(long p_104747_)voidsetDefaultSpawnPos(BlockPos p_104753_, float p_104754_)voidsetGameTime(long p_104638_)voidsetKnownState(BlockPos p_104756_, BlockState p_104757_)voidsetMapData(String p_171670_, MapItemSavedData p_171671_)voidsetScoreboard(Scoreboard p_104670_)voidsetSectionDirtyWithNeighbors(int p_104794_, int p_104795_, int p_104796_)voidsetSkyFlashTime(int p_104783_)private voidspawnFluidParticle(double p_104593_, double p_104594_, double p_104595_, double p_104596_, double p_104597_, ParticleOptions p_104598_)private voidspawnParticle(BlockPos p_104695_, ParticleOptions p_104696_, VoxelShape p_104697_, double p_104698_)voidtick(BooleanSupplier p_104727_)voidvoidtickNonPassenger(Entity p_104640_)private voidtickPassenger(Entity p_104642_, Entity p_104643_)private voidtickTime()toString()private voidtrySpawnDripParticles(BlockPos p_104690_, BlockState p_104691_, ParticleOptions p_104692_, boolean p_104693_)voidunload(LevelChunk p_104666_)Methods inherited from class net.minecraft.world.level.Level
addBlockEntityTicker, addFreshBlockEntities, blockEntityChanged, blockEvent, broadcastEntityEvent, close, destroyBlock, dimension, dimensionType, explode, explode, explode, getBestNeighborSignal, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getDirectSignalTo, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLightEngine, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSignal, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, guardEntityTick, hasNeighborSignal, hasSignal, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isHumidAt, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, noSave, onBlockStateChange, playSound, postGameEventInRadius, prepareWeather, removeBlock, removeBlockEntity, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setRainLevel, setSpawnSettings, setThunderLevel, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightnessMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource
getPrimaryBiomeMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
findFreePosition, getBlockCollisions, getBlockCollisions, getCollisions, getEntityCollisions, hasBlockCollision, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBiomeName, getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, getDifficulty, getLogicalHeight, levelEventMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getBrightness, getChunk, getChunk, getDirectSignal, getHeight, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isAreaLoaded, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock
-
Field Details
-
FLUID_PARTICLE_SPAWN_OFFSET
private static final double FLUID_PARTICLE_SPAWN_OFFSET- See Also:
- Constant Field Values
-
tickingEntities
-
entityStorage
-
connection
-
levelRenderer
-
clientLevelData
-
effects
-
minecraft
-
players
-
scoreboard
-
mapData
-
CLOUD_COLOR
private static final long CLOUD_COLOR- See Also:
- Constant Field Values
-
skyFlashTime
private int skyFlashTime -
tintCaches
private final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver,BlockTintCache> tintCaches -
chunkSource
-
-
Constructor Details
-
ClientLevel
public ClientLevel(ClientPacketListener p_104568_, ClientLevel.ClientLevelData p_104569_, ResourceKey<Level> p_104570_, DimensionType p_104571_, int p_104572_, Supplier<ProfilerFiller> p_104573_, LevelRenderer p_104574_, boolean p_104575_, long p_104576_)
-
-
Method Details
-
effects
-
tick
-
tickTime
private void tickTime() -
setGameTime
public void setGameTime(long p_104638_) -
setDayTime
public void setDayTime(long p_104747_) -
entitiesForRendering
-
tickEntities
public void tickEntities() -
tickNonPassenger
-
tickPassenger
-
unload
-
onChunkLoaded
-
clearTintCaches
public void clearTintCaches() -
hasChunk
public boolean hasChunk(int p_104737_, int p_104738_) -
getEntityCount
public int getEntityCount() -
addPlayer
-
putNonPlayerEntity
-
addEntity
-
removeEntity
-
getEntity
-
setKnownState
-
disconnect
public void disconnect()- Overrides:
disconnectin classLevel
-
animateTick
public void animateTick(int p_104785_, int p_104786_, int p_104787_) -
getMarkerParticleStatus
-
doAnimateTick
public void doAnimateTick(int p_171635_, int p_171636_, int p_171637_, int p_171638_, Random p_171639_, @Nullable ClientLevel.MarkerParticleStatus p_171640_, BlockPos.MutableBlockPos p_171641_) -
trySpawnDripParticles
private void trySpawnDripParticles(BlockPos p_104690_, BlockState p_104691_, ParticleOptions p_104692_, boolean p_104693_) -
spawnParticle
private void spawnParticle(BlockPos p_104695_, ParticleOptions p_104696_, VoxelShape p_104697_, double p_104698_) -
spawnFluidParticle
private void spawnFluidParticle(double p_104593_, double p_104594_, double p_104595_, double p_104596_, double p_104597_, ParticleOptions p_104598_) -
fillReportDetails
- Overrides:
fillReportDetailsin classLevel
-
playSound
public void playSound(@Nullable Player p_104645_, double p_104646_, double p_104647_, double p_104648_, SoundEvent p_104649_, SoundSource p_104650_, float p_104651_, float p_104652_) -
playSound
public void playSound(@Nullable Player p_104659_, Entity p_104660_, SoundEvent p_104661_, SoundSource p_104662_, float p_104663_, float p_104664_) -
playLocalSound
public void playLocalSound(BlockPos p_104678_, SoundEvent p_104679_, SoundSource p_104680_, float p_104681_, float p_104682_, boolean p_104683_) -
playLocalSound
public void playLocalSound(double p_104600_, double p_104601_, double p_104602_, SoundEvent p_104603_, SoundSource p_104604_, float p_104605_, float p_104606_, boolean p_104607_)- Overrides:
playLocalSoundin classLevel
-
createFireworks
public void createFireworks(double p_104585_, double p_104586_, double p_104587_, double p_104588_, double p_104589_, double p_104590_, @Nullable CompoundTag p_104591_)- Overrides:
createFireworksin classLevel
-
sendPacketToServer
- Overrides:
sendPacketToServerin classLevel
-
getRecipeManager
- Specified by:
getRecipeManagerin classLevel
-
setScoreboard
-
getBlockTicks
-
getLiquidTicks
-
getChunkSource
-
getMapData
- Specified by:
getMapDatain classLevel
-
setMapData
- Specified by:
setMapDatain classLevel
-
getFreeMapId
public int getFreeMapId()- Specified by:
getFreeMapIdin classLevel
-
getScoreboard
- Specified by:
getScoreboardin classLevel
-
getTagManager
- Specified by:
getTagManagerin classLevel
-
registryAccess
-
sendBlockUpdated
public void sendBlockUpdated(BlockPos p_104685_, BlockState p_104686_, BlockState p_104687_, int p_104688_)- Specified by:
sendBlockUpdatedin classLevel
-
setBlocksDirty
- Overrides:
setBlocksDirtyin classLevel
-
setSectionDirtyWithNeighbors
public void setSectionDirtyWithNeighbors(int p_104794_, int p_104795_, int p_104796_) -
destroyBlockProgress
- Specified by:
destroyBlockProgressin classLevel
-
globalLevelEvent
- Overrides:
globalLevelEventin classLevel
-
levelEvent
-
addParticle
public void addParticle(ParticleOptions p_104706_, double p_104707_, double p_104708_, double p_104709_, double p_104710_, double p_104711_, double p_104712_)- Specified by:
addParticlein interfaceLevelAccessor- Overrides:
addParticlein classLevel
-
addParticle
public void addParticle(ParticleOptions p_104714_, boolean p_104715_, double p_104716_, double p_104717_, double p_104718_, double p_104719_, double p_104720_, double p_104721_)- Overrides:
addParticlein classLevel
-
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions p_104766_, double p_104767_, double p_104768_, double p_104769_, double p_104770_, double p_104771_, double p_104772_)- Overrides:
addAlwaysVisibleParticlein classLevel
-
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions p_104774_, boolean p_104775_, double p_104776_, double p_104777_, double p_104778_, double p_104779_, double p_104780_, double p_104781_)- Overrides:
addAlwaysVisibleParticlein classLevel
-
players
-
getUncachedNoiseBiome
-
getSkyDarken
public float getSkyDarken(float p_104806_) -
getSkyColor
-
getCloudColor
-
getStarBrightness
public float getStarBrightness(float p_104812_) -
getSkyFlashTime
public int getSkyFlashTime() -
setSkyFlashTime
public void setSkyFlashTime(int p_104783_)- Overrides:
setSkyFlashTimein classLevel
-
getShade
-
getBlockTint
-
calculateBlockTint
-
setDefaultSpawnPos
-
toString
-
getLevelData
- Specified by:
getLevelDatain interfaceLevelAccessor- Overrides:
getLevelDatain classLevel
-
gameEvent
-
getAllMapData
-
addMapData
-
getEntities
- Specified by:
getEntitiesin classLevel
-
gatherChunkSourceStats
- Specified by:
gatherChunkSourceStatsin classLevel
-
addDestroyBlockEffect
- Overrides:
addDestroyBlockEffectin classLevel
-