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,- SignalGetter,- IForgeBlockAndTintGetter,- ICapabilityProvider,- ICapabilityProviderImpl<Level>,- IForgeBlockGetter,- IForgeLevel
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic class(package private) final classNested classes/interfaces inherited from class net.minecraft.world.level.LevelLevel.ExplosionInteractionNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BlockStatePredictionHandlerprivate final ClientChunkCacheprivate final ClientLevel.ClientLevelDataprivate static final longprivate final ClientPacketListenerprivate final DimensionSpecialEffectsprivate final TransientEntitySectionManager<Entity>private static final doubleprivate final LevelRendererprivate static final intprivate static final org.slf4j.Loggerprivate final Map<String,MapItemSavedData> private final Minecraftprivate final ModelDataManagerprivate static final intprivate final it.unimi.dsi.fastutil.ints.Int2ObjectMap<PartEntity<?>>(package private) final List<AbstractClientPlayer>private Scoreboardprivate intprivate int(package private) final EntityTickListprivate final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver,BlockTintCache> Fields inherited from class net.minecraft.world.level.Leveladdend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, LONG_PARTICLE_CLIP_RANGE, MAX_BRIGHTNESS, MAX_ENTITY_SPAWN_Y, MAX_LEVEL_SIZE, MIN_ENTITY_SPAWN_Y, neighborUpdater, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, restoringBlockSnapshots, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAYFields inherited from interface net.minecraft.world.level.SignalGetterDIRECTIONS
- 
Constructor SummaryConstructorsConstructorDescriptionClientLevel(ClientPacketListener p_205505_, ClientLevel.ClientLevelData p_205506_, ResourceKey<Level> p_205507_, Holder<DimensionType> p_205508_, int p_205509_, int p_205510_, Supplier<ProfilerFiller> p_205511_, LevelRenderer p_205512_, boolean p_205513_, long p_205514_) 
- 
Method SummaryModifier 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_) 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_) 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_233613_, int p_233614_, int p_233615_, int p_233616_, RandomSource p_233617_, Block p_233618_, BlockPos.MutableBlockPos p_233619_) effects()fillReportDetails(CrashReport p_104729_) voidgameEvent(GameEvent p_233639_, Vec3 p_233640_, GameEvent.Context p_233641_) protected Map<String,MapItemSavedData> (package private) BlockStatePredictionHandlerintgetBlockTint(BlockPos p_104700_, ColorResolver p_104701_) getCloudColor(float p_104809_) protected LevelEntityGetter<Entity>getEntity(int p_104609_) intintgetMapData(String p_104725_) private BlockRetrieves the model data manager for this level.Collection<PartEntity<?>>All part entities in this world.intfloatgetShade(float normalX, float normalY, float normalZ, boolean shade) Computes the shade for a given normal.floatgetSkyColor(Vec3 p_171661_, float p_171662_) floatgetSkyDarken(float p_104806_) intfloatgetStarBrightness(float p_104812_) getUncachedNoiseBiome(int p_205516_, int p_205517_, int p_205518_) voidglobalLevelEvent(int p_104743_, BlockPos p_104744_, int p_104745_) voidhandleBlockChangedAck(int p_233652_) booleanhasChunk(int p_104737_, int p_104738_) booleanvoidlevelEvent(Player p_104654_, int p_104655_, BlockPos p_104656_, int p_104657_) voidonChunkLoaded(ChunkPos p_171650_) voidoverrideMapData(String p_259652_, MapItemSavedData p_259308_) 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_) voidplaySeededSound(Player p_263381_, double p_263372_, double p_263404_, double p_263365_, Holder<SoundEvent> p_263335_, SoundSource p_263417_, float p_263416_, float p_263349_, long p_263408_) voidplaySeededSound(Player p_263514_, Entity p_263536_, Holder<SoundEvent> p_263518_, SoundSource p_263487_, float p_263538_, float p_263524_, long p_263509_) private voidplaySound(double p_233603_, double p_233604_, double p_233605_, SoundEvent p_233606_, SoundSource p_233607_, float p_233608_, float p_233609_, boolean p_233610_, long p_233611_) voidvoidqueueLightUpdate(Runnable p_194172_) 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_) booleansetBlock(BlockPos p_233643_, BlockState p_233644_, int p_233645_, int p_233646_) 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_) voidsetMapData(String p_171670_, MapItemSavedData p_171671_) voidsetScoreboard(Scoreboard p_104670_) voidsetSectionDirtyWithNeighbors(int p_104794_, int p_104795_, int p_104796_) voidsetServerSimulationDistance(int p_194175_) voidsetServerVerifiedBlockState(BlockPos p_233654_, BlockState p_233655_, int p_233656_) voidsetSkyFlashTime(int p_104783_) booleanshouldTickDeath(Entity p_194185_) 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_) voidsyncBlockState(BlockPos p_233648_, BlockState p_233649_, Vec3 p_233650_) 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.LeveladdBlockEntityTicker, addFreshBlockEntities, blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, close, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeId, dimensionTypeRegistration, explode, explode, explode, explode, explode, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLightEngine, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, guardEntityTick, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playSeededSound, playSound, playSound, playSound, playSound, prepareWeather, registryAccess, removeBlock, removeBlockEntity, setBlock, setBlockAndUpdate, setBlockEntity, setRainLevel, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightnessMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGettercanSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetterclip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGettercollidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessorgetBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGettergetEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGettergetExistingBlockEntityMethods inherited from interface net.minecraft.world.level.LevelAccessorblockUpdated, dayTime, gameEvent, gameEvent, gameEvent, getDifficulty, levelEvent, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface net.minecraft.world.level.LevelHeightAccessorgetMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.LevelReadercanSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getChunk, getChunk, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isAreaLoaded, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelTimeAccessgetMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriteraddFreshEntity, destroyBlock, destroyBlockMethods inherited from interface net.minecraft.world.level.SignalGettergetBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
FLUID_PARTICLE_SPAWN_OFFSETprivate static final double FLUID_PARTICLE_SPAWN_OFFSET- See Also:
 
- 
NORMAL_LIGHT_UPDATES_PER_FRAMEprivate static final int NORMAL_LIGHT_UPDATES_PER_FRAME- See Also:
 
- 
LIGHT_UPDATE_QUEUE_SIZE_THRESHOLDprivate static final int LIGHT_UPDATE_QUEUE_SIZE_THRESHOLD- See Also:
 
- 
tickingEntities
- 
entityStorage
- 
connection
- 
levelRenderer
- 
clientLevelData
- 
effects
- 
minecraft
- 
players
- 
scoreboard
- 
mapData
- 
CLOUD_COLORprivate static final long CLOUD_COLOR- See Also:
 
- 
skyFlashTimeprivate int skyFlashTime
- 
tintCachesprivate final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver,BlockTintCache> tintCaches
- 
chunkSource
- 
lightUpdateQueue
- 
serverSimulationDistanceprivate int serverSimulationDistance
- 
blockStatePredictionHandler
- 
MARKER_PARTICLE_ITEMS
- 
partEntities
- 
modelDataManager
 
- 
- 
Constructor Details- 
ClientLevelpublic ClientLevel(ClientPacketListener p_205505_, ClientLevel.ClientLevelData p_205506_, ResourceKey<Level> p_205507_, Holder<DimensionType> p_205508_, int p_205509_, int p_205510_, Supplier<ProfilerFiller> p_205511_, LevelRenderer p_205512_, boolean p_205513_, long p_205514_) 
 
- 
- 
Method Details- 
handleBlockChangedAckpublic void handleBlockChangedAck(int p_233652_) 
- 
setServerVerifiedBlockState
- 
syncBlockState
- 
getBlockStatePredictionHandlerBlockStatePredictionHandler getBlockStatePredictionHandler()
- 
setBlock- Specified by:
- setBlockin interface- LevelWriter
- Overrides:
- setBlockin class- Level
 
- 
queueLightUpdate
- 
pollLightUpdatespublic void pollLightUpdates()
- 
isLightUpdateQueueEmptypublic boolean isLightUpdateQueueEmpty()
- 
effects
- 
tick
- 
tickTimeprivate void tickTime()
- 
setGameTimepublic void setGameTime(long p_104638_) 
- 
setDayTimepublic void setDayTime(long p_104747_) 
- 
entitiesForRendering
- 
tickEntitiespublic void tickEntities()
- 
shouldTickDeath- Overrides:
- shouldTickDeathin class- Level
 
- 
tickNonPassenger
- 
tickPassenger
- 
unload
- 
onChunkLoaded
- 
clearTintCachespublic void clearTintCaches()
- 
hasChunkpublic boolean hasChunk(int p_104737_, int p_104738_) 
- 
getEntityCountpublic int getEntityCount()
- 
addEntity
- 
removeEntity
- 
getEntity
- 
disconnectpublic void disconnect()- Overrides:
- disconnectin class- Level
 
- 
animateTickpublic void animateTick(int p_104785_, int p_104786_, int p_104787_) 
- 
getMarkerParticleTarget
- 
doAnimateTickpublic void doAnimateTick(int p_233613_, int p_233614_, int p_233615_, int p_233616_, RandomSource p_233617_, @Nullable Block p_233618_, BlockPos.MutableBlockPos p_233619_) 
- 
trySpawnDripParticlesprivate void trySpawnDripParticles(BlockPos p_104690_, BlockState p_104691_, ParticleOptions p_104692_, boolean p_104693_) 
- 
spawnParticleprivate void spawnParticle(BlockPos p_104695_, ParticleOptions p_104696_, VoxelShape p_104697_, double p_104698_) 
- 
spawnFluidParticleprivate void spawnFluidParticle(double p_104593_, double p_104594_, double p_104595_, double p_104596_, double p_104597_, ParticleOptions p_104598_) 
- 
fillReportDetails- Overrides:
- fillReportDetailsin class- Level
 
- 
playSeededSoundpublic void playSeededSound(@Nullable Player p_263381_, double p_263372_, double p_263404_, double p_263365_, Holder<SoundEvent> p_263335_, SoundSource p_263417_, float p_263416_, float p_263349_, long p_263408_) - Specified by:
- playSeededSoundin class- Level
 
- 
playSeededSoundpublic void playSeededSound(@Nullable Player p_263514_, Entity p_263536_, Holder<SoundEvent> p_263518_, SoundSource p_263487_, float p_263538_, float p_263524_, long p_263509_) - Specified by:
- playSeededSoundin class- Level
 
- 
playLocalSoundpublic 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 class- Level
 
- 
playSoundprivate void playSound(double p_233603_, double p_233604_, double p_233605_, SoundEvent p_233606_, SoundSource p_233607_, float p_233608_, float p_233609_, boolean p_233610_, long p_233611_) 
- 
createFireworkspublic 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 class- Level
 
- 
sendPacketToServer- Overrides:
- sendPacketToServerin class- Level
 
- 
getRecipeManager- Specified by:
- getRecipeManagerin class- Level
 
- 
setScoreboard
- 
getBlockTicks
- 
getFluidTicks
- 
getChunkSource
- 
getMapData- Specified by:
- getMapDatain class- Level
 
- 
overrideMapData
- 
setMapData- Specified by:
- setMapDatain class- Level
 
- 
getFreeMapIdpublic int getFreeMapId()- Specified by:
- getFreeMapIdin class- Level
 
- 
getScoreboard- Specified by:
- getScoreboardin class- Level
 
- 
sendBlockUpdatedpublic void sendBlockUpdated(BlockPos p_104685_, BlockState p_104686_, BlockState p_104687_, int p_104688_) - Specified by:
- sendBlockUpdatedin class- Level
 
- 
setBlocksDirty- Overrides:
- setBlocksDirtyin class- Level
 
- 
setSectionDirtyWithNeighborspublic void setSectionDirtyWithNeighbors(int p_104794_, int p_104795_, int p_104796_) 
- 
destroyBlockProgress- Specified by:
- destroyBlockProgressin class- Level
 
- 
globalLevelEvent- Overrides:
- globalLevelEventin class- Level
 
- 
levelEvent
- 
addParticlepublic 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 interface- LevelAccessor
- Overrides:
- addParticlein class- Level
 
- 
addParticlepublic 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 class- Level
 
- 
addAlwaysVisibleParticlepublic 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 class- Level
 
- 
addAlwaysVisibleParticlepublic 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 class- Level
 
- 
players
- 
getUncachedNoiseBiome
- 
getSkyDarkenpublic float getSkyDarken(float p_104806_) 
- 
getSkyColor
- 
getCloudColor
- 
getStarBrightnesspublic float getStarBrightness(float p_104812_) 
- 
getSkyFlashTimepublic int getSkyFlashTime()
- 
setSkyFlashTimepublic void setSkyFlashTime(int p_104783_) - Overrides:
- setSkyFlashTimein class- Level
 
- 
getShade
- 
getBlockTint
- 
calculateBlockTint
- 
setDefaultSpawnPos
- 
toString
- 
getLevelData- Specified by:
- getLevelDatain interface- LevelAccessor
- Overrides:
- getLevelDatain class- Level
 
- 
gameEvent
- 
getAllMapData
- 
addMapData
- 
getEntities- Specified by:
- getEntitiesin class- Level
 
- 
gatherChunkSourceStats- Specified by:
- gatherChunkSourceStatsin class- Level
 
- 
addDestroyBlockEffect- Overrides:
- addDestroyBlockEffectin class- Level
 
- 
setServerSimulationDistancepublic void setServerSimulationDistance(int p_194175_) 
- 
getServerSimulationDistancepublic int getServerSimulationDistance()
- 
enabledFeatures
- 
getPartEntitiesDescription copied from interface:IForgeLevelAll part entities in this world. Used when collecting entities in an AABB to fix parts being ignored whose parent entity is in a chunk that does not intersect with the AABB.
- 
getModelDataManagerDescription copied from interface:IForgeBlockGetterRetrieves the model data manager for this level. This will benullon a server level.
- 
getShadepublic float getShade(float normalX, float normalY, float normalZ, boolean shade) Description copied from interface:IForgeBlockAndTintGetterComputes the shade for a given normal. Alternate version of the vanilla method taking in aDirection.
 
-