Package net.minecraft.client.multiplayer
Class ClientLevel
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.Level
net.minecraft.client.multiplayer.ClientLevel
- All Implemented Interfaces:
AutoCloseable,CacheSlot.Cleaner<ClientLevel>,BiomeManager.NoiseBiomeSource,BlockAndTintGetter,BlockGetter,CollisionGetter,CommonLevelAccessor,UUIDLookup<Entity>,EntityGetter,LevelAccessor,LevelHeightAccessor,LevelReader,LevelSimulatedReader,LevelSimulatedRW,LevelTimeAccess,LevelWriter,ScheduledTickAccess,SignalGetter,IAttachmentHolder,IBlockAndTintGetterExtension,IBlockGetterExtension,ILevelExtension,ILevelReaderExtension
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) final classNested classes/interfaces inherited from class net.minecraft.world.level.Level
Level.ExplosionInteractionNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsFieldNested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStatePredictionHandlerprivate final ClientChunkCacheprivate final ClientLevel.ClientLevelDataprivate static final intprivate final ClientPacketListenerprivate floatprivate floatstatic final Component(package private) final List<PartEntity<?>> private final DimensionSpecialEffectsprivate final TransientEntitySectionManager<Entity> private static final doubleprivate final Set<BlockEntity> private final LevelEventHandlerprivate final LevelRendererprivate static final intprivate static final org.slf4j.Loggerprivate final Map<MapId, MapItemSavedData> private final Minecraftprivate final ModelDataManagerprivate static final int(package private) final List<AbstractClientPlayer> private final intprivate intprivate intprivate boolean(package private) final EntityTickListprivate final TickRateManagerprivate final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver, BlockTintCache> Fields inherited from class net.minecraft.world.level.Level
addend, 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 class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVELFields inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension
TRANSLATION_PREFIXFields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Constructor Summary
ConstructorsConstructorDescriptionClientLevel(ClientPacketListener pConnection, ClientLevel.ClientLevelData pLevelData, ResourceKey<Level> pDimension, Holder<DimensionType> pDimensionTypeRegistration, int pViewDistance, int pServerSimulationDistance, LevelRenderer pLevelRenderer, boolean pIsDebug, long pBiomeZoomSeed, int pSeaLevel) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlwaysVisibleParticle(ParticleOptions pParticleData, boolean pIgnoreRange, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) voidaddAlwaysVisibleParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) voidaddDestroyBlockEffect(BlockPos pPos, BlockState pState) voidprotected voidaddMapData(Map<MapId, MapItemSavedData> pMap) voidaddParticle(ParticleOptions pParticle, boolean pOverrideLimiter, boolean pAlwaysShow, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) voidaddParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) voidanimateTick(int pPosX, int pPosY, int pPosZ) intcalculateBlockTint(BlockPos pBlockPos, ColorResolver pColorResolver) voidvoidcreateFireworks(double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed, List<FireworkExplosion> pExplosions) voiddestroyBlockProgress(int pBreakerId, BlockPos pPos, int pProgress) voiddisconnect(Component pReason) voiddoAnimateTick(int pPosX, int pPosY, int pPosZ, int pRange, RandomSource pRandom, Block pBlock, BlockPos.MutableBlockPos pBlockPos) List<PartEntity<?>> effects()voidexplode(Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction, ParticleOptions pSmallExplosionParticles, ParticleOptions pLargeExplosionParticles, Holder<SoundEvent> pExplosionSound) fillReportDetails(CrashReport pReport) Adds some basic stats of the world to the given crash report.voidgameEvent(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) protected Map<MapId, MapItemSavedData> (package private) BlockStatePredictionHandlerintgetBlockTint(BlockPos pBlockPos, ColorResolver pColorResolver) intintgetCloudColor(float pPartialTick) floatfloatReturns the current ratio between game ticks and clock ticks.protected LevelEntityGetter<Entity> getEntity(int pId) Returns the Entity with the given ID, or null if it doesn't exist in this World.intgetMapData(MapId pMapId) private BlockgetModelData(BlockPos pos) Retrieves model data for a block at the given position.Retrieves the model data manager for the given level.getPushableEntities(Entity pEntity, AABB pBoundingBox) intintfloatgetShade(float normalX, float normalY, float normalZ, boolean shade) Computes the shade for a given normal.floatintgetSkyColor(Vec3 pCameraPosition, float pPartialTick) floatgetSkyDarken(float pPartialTick) intfloatgetStarBrightness(float pPartialTick) getUncachedNoiseBiome(int pX, int pY, int pZ) voidglobalLevelEvent(int pId, BlockPos pPos, int pData) voidhandleBlockChangedAck(int pSequence) booleanhasChunk(int pChunkX, int pChunkZ) booleanisTickingEntity(Entity pEntity) voidlevelEvent(Entity pEntity, int pType, BlockPos pPos, int pData) voidonBlockEntityAdded(BlockEntity pEntity) voidonChunkLoaded(ChunkPos pChunkPos) voidonSectionBecomingNonEmpty(long pSectionPos) voidoverrideMapData(MapId pMapId, MapItemSavedData pMapData) players()voidplayLocalSound(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) voidplayLocalSound(Entity pEntity, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) voidplayPlayerSound(SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) voidplaySeededSound(Entity pEntity, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) voidplaySeededSound(Entity pEntity, Entity pSourceEntity, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) private voidplaySound(double pX, double pY, double pZ, SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, boolean pDistanceDelay, long pSeed) voidvoidqueueLightUpdate(Runnable pTask) voidregisterForCleaning(CacheSlot<ClientLevel, ?> pCacheSlot) voidremoveEntity(int pEntityId, Entity.RemovalReason pReason) voidsendBlockUpdated(BlockPos pPos, BlockState pOldState, BlockState pNewState, int pFlags) Flags are as in setBlockStatevoidsendPacketToServer(Packet<?> pPacket) booleansetBlock(BlockPos pPos, BlockState pState, int pFlags, int pRecursionLeft) voidsetBlocksDirty(BlockPos pBlockPos, BlockState pOldState, BlockState pNewState) voidsetDayTimeFraction(float dayTimeFraction) voidsetDayTimePerTick(float dayTimePerTick) DO NOT CALL.voidsetDefaultSpawnPos(BlockPos pSpawnPos, float pSpawnAngle) voidsetSectionDirtyWithNeighbors(int pSectionX, int pSectionY, int pSectionZ) voidsetSectionRangeDirty(int pMinY, int pMinX, int pMinZ, int pMaxY, int pMaxX, int pMaxZ) voidsetServerSimulationDistance(int pServerSimulationDistance) voidsetServerVerifiedBlockState(BlockPos pPos, BlockState pState, int pFlags) voidsetSkyFlashTime(int pTimeFlash) voidsetTimeFromServer(long pGameTime, long pDayTime, boolean pTickDayTime) booleanshouldTickDeath(Entity pEntity) private voidspawnFluidParticle(double pXStart, double pXEnd, double pZStart, double pZEnd, double pY, ParticleOptions pParticleData) private voidspawnParticle(BlockPos pPos, ParticleOptions pParticleData, VoxelShape pVoxelShape, double pY) voidsyncBlockState(BlockPos pPos, BlockState pState, Vec3 pPlayerPos) voidtick(BooleanSupplier pHasTimeLeft) Runs a single tick for the worldvoidvoidtickNonPassenger(Entity p_104640_) private voidtickPassenger(Entity pMount, Entity pRider) private voidtickTime()toString()private voidtrySpawnDripParticles(BlockPos pBlockPos, BlockState pBlockState, ParticleOptions pParticleData, boolean pShapeDownSolid) voidunload(LevelChunk pChunk) Methods inherited from class net.minecraft.world.level.Level
addBlockEntityTicker, addFreshBlockEntities, advanceDaytime, blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, close, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, explode, explode, explode, explode, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getEntity, getFluidState, getGameTime, getHeight, getLightEngine, getMaxEntityRadius, getRainLevel, getRandom, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, guardEntityTick, increaseMaxEntityRadius, isBrightOutside, isClientSide, isDarkOutside, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, isMoonVisible, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, playLocalSound, playSeededSound, playSound, playSound, playSound, playSound, playSound, precipitationAt, prepareWeather, registryAccess, removeBlock, removeBlockEntity, setBlock, setBlockAndUpdate, setBlockEntity, setRainLevel, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updatePOIOnBlockStateChange, updateSkyBrightnessMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments, setDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getPreMoveCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData, syncDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManagerMethods inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension
getCapability, getCapability, getCapability, getCapability, getDescription, getDescriptionKey, invalidateCapabilities, invalidateCapabilitiesMethods inherited from interface net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface net.minecraft.world.level.LevelAccessor
createTick, createTick, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getDifficulty, levelEvent, playSound, updateNeighborsAtMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getChunk, getChunk, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinY, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlockMethods inherited from interface net.minecraft.world.level.ScheduledTickAccess
scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEFAULT_QUIT_MESSAGE
-
FLUID_PARTICLE_SPAWN_OFFSET
private static final double FLUID_PARTICLE_SPAWN_OFFSET- See Also:
-
NORMAL_LIGHT_UPDATES_PER_FRAME
private static final int NORMAL_LIGHT_UPDATES_PER_FRAME- See Also:
-
LIGHT_UPDATE_QUEUE_SIZE_THRESHOLD
private static final int LIGHT_UPDATE_QUEUE_SIZE_THRESHOLD- See Also:
-
tickingEntities
-
entityStorage
-
connection
-
levelRenderer
-
levelEventHandler
-
clientLevelData
-
effects
-
tickRateManager
-
minecraft
-
players
-
dragonParts
-
mapData
-
CLOUD_COLOR
private static final int CLOUD_COLOR- See Also:
-
skyFlashTime
private int skyFlashTime -
tintCaches
private final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver,BlockTintCache> tintCaches -
chunkSource
-
lightUpdateQueue
-
serverSimulationDistance
private int serverSimulationDistance -
blockStatePredictionHandler
-
globallyRenderedBlockEntities
-
seaLevel
private final int seaLevel -
tickDayTime
private boolean tickDayTime -
MARKER_PARTICLE_ITEMS
-
modelDataManager
-
dayTimeFraction
private float dayTimeFraction -
dayTimePerTick
private float dayTimePerTick
-
-
Constructor Details
-
ClientLevel
public ClientLevel(ClientPacketListener pConnection, ClientLevel.ClientLevelData pLevelData, ResourceKey<Level> pDimension, Holder<DimensionType> pDimensionTypeRegistration, int pViewDistance, int pServerSimulationDistance, LevelRenderer pLevelRenderer, boolean pIsDebug, long pBiomeZoomSeed, int pSeaLevel)
-
-
Method Details
-
handleBlockChangedAck
public void handleBlockChangedAck(int pSequence) -
onBlockEntityAdded
- Overrides:
onBlockEntityAddedin classLevel
-
getGloballyRenderedBlockEntities
-
setServerVerifiedBlockState
-
syncBlockState
-
getBlockStatePredictionHandler
BlockStatePredictionHandler getBlockStatePredictionHandler() -
setBlock
- Specified by:
setBlockin interfaceLevelWriter- Overrides:
setBlockin classLevel
-
queueLightUpdate
-
pollLightUpdates
public void pollLightUpdates() -
effects
-
tick
Runs a single tick for the world -
tickTime
private void tickTime() -
setTimeFromServer
public void setTimeFromServer(long pGameTime, long pDayTime, boolean pTickDayTime) -
entitiesForRendering
-
tickEntities
public void tickEntities() -
isTickingEntity
-
shouldTickDeath
- Overrides:
shouldTickDeathin classLevel
-
tickNonPassenger
-
tickPassenger
-
unload
-
onChunkLoaded
-
onSectionBecomingNonEmpty
public void onSectionBecomingNonEmpty(long pSectionPos) -
clearTintCaches
public void clearTintCaches() -
hasChunk
public boolean hasChunk(int pChunkX, int pChunkZ) - Specified by:
hasChunkin interfaceLevelAccessor- Specified by:
hasChunkin interfaceLevelReader
-
getEntityCount
public int getEntityCount() -
addEntity
-
removeEntity
-
getPushableEntities
- Overrides:
getPushableEntitiesin classLevel
-
getEntity
Returns the Entity with the given ID, or null if it doesn't exist in this World. -
disconnect
-
animateTick
public void animateTick(int pPosX, int pPosY, int pPosZ) -
getMarkerParticleTarget
-
doAnimateTick
public void doAnimateTick(int pPosX, int pPosY, int pPosZ, int pRange, RandomSource pRandom, @Nullable Block pBlock, BlockPos.MutableBlockPos pBlockPos) -
trySpawnDripParticles
private void trySpawnDripParticles(BlockPos pBlockPos, BlockState pBlockState, ParticleOptions pParticleData, boolean pShapeDownSolid) -
spawnParticle
private void spawnParticle(BlockPos pPos, ParticleOptions pParticleData, VoxelShape pVoxelShape, double pY) -
spawnFluidParticle
private void spawnFluidParticle(double pXStart, double pXEnd, double pZStart, double pZEnd, double pY, ParticleOptions pParticleData) -
fillReportDetails
Adds some basic stats of the world to the given crash report.- Overrides:
fillReportDetailsin classLevel
-
playSeededSound
public void playSeededSound(@Nullable Entity pEntity, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) - Specified by:
playSeededSoundin classLevel
-
playSeededSound
public void playSeededSound(@Nullable Entity pEntity, Entity pSourceEntity, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) - Specified by:
playSeededSoundin classLevel
-
playLocalSound
public void playLocalSound(Entity pEntity, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) - Overrides:
playLocalSoundin classLevel
-
playPlayerSound
- Overrides:
playPlayerSoundin classLevel
-
playLocalSound
public void playLocalSound(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) - Overrides:
playLocalSoundin classLevel
-
playSound
private void playSound(double pX, double pY, double pZ, SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, boolean pDistanceDelay, long pSeed) -
createFireworks
public void createFireworks(double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed, List<FireworkExplosion> pExplosions) - Overrides:
createFireworksin classLevel
-
sendPacketToServer
- Overrides:
sendPacketToServerin classLevel
-
recipeAccess
- Specified by:
recipeAccessin classLevel
-
tickRateManager
- Specified by:
tickRateManagerin classLevel
-
getBlockTicks
- Specified by:
getBlockTicksin interfaceScheduledTickAccess
-
getFluidTicks
- Specified by:
getFluidTicksin interfaceScheduledTickAccess
-
getChunkSource
- Specified by:
getChunkSourcein interfaceLevelAccessor
-
getMapData
- Specified by:
getMapDatain classLevel
-
overrideMapData
-
getScoreboard
- Specified by:
getScoreboardin classLevel
-
sendBlockUpdated
Flags are as in setBlockState- Specified by:
sendBlockUpdatedin classLevel
-
setBlocksDirty
- Overrides:
setBlocksDirtyin classLevel
-
setSectionDirtyWithNeighbors
public void setSectionDirtyWithNeighbors(int pSectionX, int pSectionY, int pSectionZ) -
setSectionRangeDirty
public void setSectionRangeDirty(int pMinY, int pMinX, int pMinZ, int pMaxY, int pMaxX, int pMaxZ) -
destroyBlockProgress
- Specified by:
destroyBlockProgressin classLevel
-
globalLevelEvent
- Overrides:
globalLevelEventin classLevel
-
levelEvent
- Specified by:
levelEventin interfaceLevelAccessor
-
addParticle
public void addParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - Specified by:
addParticlein interfaceLevelAccessor- Overrides:
addParticlein classLevel
-
addParticle
public void addParticle(ParticleOptions pParticle, boolean pOverrideLimiter, boolean pAlwaysShow, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - Overrides:
addParticlein classLevel
-
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - Overrides:
addAlwaysVisibleParticlein classLevel
-
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions pParticleData, boolean pIgnoreRange, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - Overrides:
addAlwaysVisibleParticlein classLevel
-
players
- Specified by:
playersin interfaceEntityGetter
-
dragonParts
- Specified by:
dragonPartsin classLevel
-
getUncachedNoiseBiome
- Specified by:
getUncachedNoiseBiomein interfaceLevelReader
-
getSkyDarken
public float getSkyDarken(float pPartialTick) -
getSkyColor
-
getCloudColor
public int getCloudColor(float pPartialTick) -
getStarBrightness
public float getStarBrightness(float pPartialTick) -
getSkyFlashTime
public int getSkyFlashTime() -
setSkyFlashTime
public void setSkyFlashTime(int pTimeFlash) - Overrides:
setSkyFlashTimein classLevel
-
getShade
- Specified by:
getShadein interfaceBlockAndTintGetter
-
getBlockTint
- Specified by:
getBlockTintin interfaceBlockAndTintGetter- Specified by:
getBlockTintin interfaceLevelReader
-
calculateBlockTint
-
setDefaultSpawnPos
-
toString
-
getLevelData
- Specified by:
getLevelDatain interfaceLevelAccessor- Overrides:
getLevelDatain classLevel
-
gameEvent
- Specified by:
gameEventin interfaceLevelAccessor
-
getAllMapData
-
addMapData
-
getEntities
- Specified by:
getEntitiesin classLevel
-
gatherChunkSourceStats
- Specified by:
gatherChunkSourceStatsin classLevel
-
addDestroyBlockEffect
- Overrides:
addDestroyBlockEffectin classLevel
-
setServerSimulationDistance
public void setServerSimulationDistance(int pServerSimulationDistance) -
getServerSimulationDistance
public int getServerSimulationDistance() -
enabledFeatures
- Specified by:
enabledFeaturesin interfaceLevelReader
-
potionBrewing
- Specified by:
potionBrewingin classLevel
-
fuelValues
- Specified by:
fuelValuesin classLevel
-
explode
public void explode(@Nullable Entity pSource, @Nullable DamageSource pDamageSource, @Nullable ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction, ParticleOptions pSmallExplosionParticles, ParticleOptions pLargeExplosionParticles, Holder<SoundEvent> pExplosionSound) -
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevelin interfaceLevelReader
-
getClientLeafTintColor
- Overrides:
getClientLeafTintColorin classLevel
-
registerForCleaning
- Specified by:
registerForCleaningin interfaceCacheSlot.Cleaner<ClientLevel>
-
getModelDataManager
Description copied from interface:ILevelExtensionRetrieves the model data manager for the given level. May be null on a server level.For model data retrieval, prefer calling
IBlockGetterExtension.getModelData(BlockPos)rather than this method, as it works on more than just a level.- Specified by:
getModelDataManagerin interfaceILevelExtension
-
getModelData
Description copied from interface:IBlockGetterExtensionRetrieves model data for a block at the given position.- Specified by:
getModelDatain interfaceIBlockGetterExtension- Parameters:
pos- the position to query- Returns:
- the model data at this position, or
ModelData.EMPTYif none exists
-
getShade
public float getShade(float normalX, float normalY, float normalZ, boolean shade) Description copied from interface:IBlockAndTintGetterExtensionComputes the shade for a given normal. Alternate version of the vanilla method taking in aDirection.- Specified by:
getShadein interfaceIBlockAndTintGetterExtension
-
setDayTimeFraction
@Internal public void setDayTimeFraction(float dayTimeFraction) - Specified by:
setDayTimeFractionin classLevel
-
getDayTimeFraction
@Internal public float getDayTimeFraction()- Specified by:
getDayTimeFractionin classLevel
-
getDayTimePerTick
public float getDayTimePerTick()Description copied from class:LevelReturns the current ratio between game ticks and clock ticks. If this value is negative, no speed has been set and those two are coupled 1:1 (i.e. vanilla mode).- Specified by:
getDayTimePerTickin classLevel
-
setDayTimePerTick
@Internal public void setDayTimePerTick(float dayTimePerTick) Description copied from class:LevelDO NOT CALL.Use
ServerLevel.setDayTimePerTick(float)instead.- Specified by:
setDayTimePerTickin classLevel
-