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 class
Nested classes/interfaces inherited from class net.minecraft.world.level.Level
Level.ExplosionInteraction
Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
Nested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStatePredictionHandler
private final ClientChunkCache
private final ClientLevel.ClientLevelData
private static final int
private final ClientPacketListener
private float
private float
(package private) final List
<PartEntity<?>> private final DimensionSpecialEffects
private final TransientEntitySectionManager
<Entity> private static final double
private final LevelEventHandler
private final LevelRenderer
private static final int
private static final org.slf4j.Logger
private final Map
<MapId, MapItemSavedData> private final Minecraft
private final ModelDataManager
private static final int
(package private) final List
<AbstractClientPlayer> private final int
private int
private int
private boolean
(package private) final EntityTickList
private final TickRateManager
private 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_DAY
Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
Fields inherited from interface net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
Fields inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension
TRANSLATION_PREFIX
Fields 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 TypeMethodDescriptionvoid
addAlwaysVisibleParticle
(ParticleOptions pParticleData, boolean pIgnoreRange, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) void
addAlwaysVisibleParticle
(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) void
addDestroyBlockEffect
(BlockPos p_171667_, BlockState p_171668_) void
protected void
addMapData
(Map<MapId, MapItemSavedData> pMap) void
addParticle
(ParticleOptions p_104714_, boolean p_104715_, boolean p_383197_, double p_104716_, double p_104717_, double p_104718_, double p_104719_, double p_104720_, double p_104721_) void
addParticle
(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) void
animateTick
(int pPosX, int pPosY, int pPosZ) int
calculateBlockTint
(BlockPos pBlockPos, ColorResolver pColorResolver) void
void
createFireworks
(double p_104585_, double p_104586_, double p_104587_, double p_104588_, double p_104589_, double p_104590_, List<FireworkExplosion> p_330281_) void
destroyBlockProgress
(int pBreakerId, BlockPos pPos, int pProgress) void
void
doAnimateTick
(int pPosX, int pPosY, int pPosZ, int pRange, RandomSource pRandom, Block pBlock, BlockPos.MutableBlockPos pBlockPos) List
<PartEntity<?>> effects()
void
explode
(Entity p_363686_, DamageSource p_365268_, ExplosionDamageCalculator p_363795_, double p_360494_, double p_360591_, double p_364949_, float p_361233_, boolean p_364900_, Level.ExplosionInteraction p_365033_, ParticleOptions p_361889_, ParticleOptions p_361473_, Holder<SoundEvent> p_362359_) fillReportDetails
(CrashReport pReport) Adds some basic stats of the world to the given crash report.void
gameEvent
(Holder<GameEvent> p_316478_, Vec3 p_233640_, GameEvent.Context p_233641_) protected Map
<MapId, MapItemSavedData> (package private) BlockStatePredictionHandler
int
getBlockTint
(BlockPos pBlockPos, ColorResolver pColorResolver) int
getClientLeafTintColor
(BlockPos p_400248_) int
getCloudColor
(float pPartialTick) float
float
Returns 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.int
getMapData
(MapId p_323873_) private Block
getModelData
(BlockPos pos) Retrieves model data for a block at the given position.Retrieves the model data manager for the given level.getPushableEntities
(Entity p_393670_, AABB p_394410_) int
int
float
getShade
(float normalX, float normalY, float normalZ, boolean shade) Computes the shade for a given normal.float
int
getSkyColor
(Vec3 pCameraPosition, float pPartialTick) float
getSkyDarken
(float pPartialTick) int
float
getStarBrightness
(float pPartialTick) getUncachedNoiseBiome
(int p_205516_, int p_205517_, int p_205518_) void
globalLevelEvent
(int pId, BlockPos pPos, int pData) void
handleBlockChangedAck
(int pSequence) boolean
hasChunk
(int pChunkX, int pChunkZ) boolean
isTickingEntity
(Entity pEntity) void
levelEvent
(Entity p_394519_, int p_104655_, BlockPos p_104656_, int p_104657_) void
onChunkLoaded
(ChunkPos pChunkPos) void
onSectionBecomingNonEmpty
(long pSectionPos) void
overrideMapData
(MapId pMapId, MapItemSavedData pMapData) players()
void
playLocalSound
(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) void
playLocalSound
(Entity p_312749_, SoundEvent p_312635_, SoundSource p_312007_, float p_312298_, float p_312772_) void
playPlayerSound
(SoundEvent p_401146_, SoundSource p_401176_, float p_401193_, float p_401050_) void
playSeededSound
(Entity p_393665_, 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_) void
playSeededSound
(Entity p_263536_, Entity p_394209_, Holder<SoundEvent> p_263518_, SoundSource p_263487_, float p_263538_, float p_263524_, long p_263509_) private void
playSound
(double pX, double pY, double pZ, SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, boolean pDistanceDelay, long pSeed) void
void
queueLightUpdate
(Runnable pTask) void
registerForCleaning
(CacheSlot<ClientLevel, ?> p_399472_) void
removeEntity
(int pEntityId, Entity.RemovalReason pReason) void
sendBlockUpdated
(BlockPos pPos, BlockState pOldState, BlockState pNewState, int pFlags) Flags are as in setBlockStatevoid
sendPacketToServer
(Packet<?> pPacket) boolean
setBlock
(BlockPos p_233643_, BlockState p_233644_, int p_233645_, int p_233646_) void
setBlocksDirty
(BlockPos pBlockPos, BlockState pOldState, BlockState pNewState) void
setDayTimeFraction
(float dayTimeFraction) void
setDayTimePerTick
(float dayTimePerTick) DO NOT CALL.void
setDefaultSpawnPos
(BlockPos pSpawnPos, float pSpawnAngle) void
setSectionDirtyWithNeighbors
(int pSectionX, int pSectionY, int pSectionZ) void
setSectionRangeDirty
(int pMinY, int pMinX, int pMinZ, int pMaxY, int pMaxX, int pMaxZ) void
setServerSimulationDistance
(int pServerSimulationDistance) void
setServerVerifiedBlockState
(BlockPos pPos, BlockState pState, int pFlags) void
setSkyFlashTime
(int pTimeFlash) void
setTimeFromServer
(long pGameTime, long pDayTime, boolean pTickDayTime) boolean
shouldTickDeath
(Entity p_194185_) private void
spawnFluidParticle
(double pXStart, double pXEnd, double pZStart, double pZEnd, double pY, ParticleOptions pParticleData) private void
spawnParticle
(BlockPos pPos, ParticleOptions pParticleData, VoxelShape pVoxelShape, double pY) void
syncBlockState
(BlockPos pPos, BlockState pState, Vec3 pPlayerPos) void
tick
(BooleanSupplier pHasTimeLeft) Runs a single tick for the worldvoid
void
tickNonPassenger
(Entity pEntity) private void
tickPassenger
(Entity pMount, Entity pRider) private void
tickTime()
toString()
private void
trySpawnDripParticles
(BlockPos pBlockPos, BlockState pBlockState, ParticleOptions pParticleData, boolean pShapeDownSolid) void
unload
(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, prepareWeather, registryAccess, removeBlock, removeBlockEntity, setBlock, setBlockAndUpdate, setBlockEntity, setRainLevel, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updatePOIOnBlockStateChange, updateSkyBrightness
Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments, setData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightness
Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, isBlockInLine
Methods inherited from interface net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollision
Methods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed
Methods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer
Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager
Methods inherited from interface net.neoforged.neoforge.common.extensions.ILevelExtension
getCapability, getCapability, getCapability, getCapability, getDescription, getDescriptionKey, invalidateCapabilities, invalidateCapabilities
Methods inherited from interface net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoaded
Methods inherited from interface net.minecraft.world.level.LevelAccessor
createTick, createTick, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getDifficulty, levelEvent, playSound, updateNeighborsAt
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
Methods 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, isWaterAt
Methods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDay
Methods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock
Methods inherited from interface net.minecraft.world.level.ScheduledTickAccess
scheduleTick, scheduleTick, scheduleTick, scheduleTick
Methods 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 -
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
-
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) -
setServerVerifiedBlockState
-
syncBlockState
-
getBlockStatePredictionHandler
BlockStatePredictionHandler getBlockStatePredictionHandler() -
setBlock
- Specified by:
setBlock
in interfaceLevelWriter
- Overrides:
setBlock
in 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:
shouldTickDeath
in 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:
hasChunk
in interfaceLevelAccessor
- Specified by:
hasChunk
in interfaceLevelReader
-
getEntityCount
public int getEntityCount() -
addEntity
-
removeEntity
-
getPushableEntities
- Overrides:
getPushableEntities
in classLevel
-
getEntity
Returns the Entity with the given ID, or null if it doesn't exist in this World. -
disconnect
public void disconnect()- Overrides:
disconnect
in classLevel
-
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:
fillReportDetails
in classLevel
-
playSeededSound
public void playSeededSound(@Nullable Entity p_393665_, 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:
playSeededSound
in classLevel
-
playSeededSound
public void playSeededSound(@Nullable Entity p_263536_, Entity p_394209_, Holder<SoundEvent> p_263518_, SoundSource p_263487_, float p_263538_, float p_263524_, long p_263509_) - Specified by:
playSeededSound
in classLevel
-
playLocalSound
public void playLocalSound(Entity p_312749_, SoundEvent p_312635_, SoundSource p_312007_, float p_312298_, float p_312772_) - Overrides:
playLocalSound
in classLevel
-
playPlayerSound
public void playPlayerSound(SoundEvent p_401146_, SoundSource p_401176_, float p_401193_, float p_401050_) - Overrides:
playPlayerSound
in classLevel
-
playLocalSound
public void playLocalSound(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) - Overrides:
playLocalSound
in 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 p_104585_, double p_104586_, double p_104587_, double p_104588_, double p_104589_, double p_104590_, List<FireworkExplosion> p_330281_) - Overrides:
createFireworks
in classLevel
-
sendPacketToServer
- Overrides:
sendPacketToServer
in classLevel
-
recipeAccess
- Specified by:
recipeAccess
in classLevel
-
tickRateManager
- Specified by:
tickRateManager
in classLevel
-
getBlockTicks
- Specified by:
getBlockTicks
in interfaceScheduledTickAccess
-
getFluidTicks
- Specified by:
getFluidTicks
in interfaceScheduledTickAccess
-
getChunkSource
- Specified by:
getChunkSource
in interfaceLevelAccessor
-
getMapData
- Specified by:
getMapData
in classLevel
-
overrideMapData
-
getScoreboard
- Specified by:
getScoreboard
in classLevel
-
sendBlockUpdated
Flags are as in setBlockState- Specified by:
sendBlockUpdated
in classLevel
-
setBlocksDirty
- Overrides:
setBlocksDirty
in 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:
destroyBlockProgress
in classLevel
-
globalLevelEvent
- Overrides:
globalLevelEvent
in classLevel
-
levelEvent
public void levelEvent(@Nullable Entity p_394519_, int p_104655_, BlockPos p_104656_, int p_104657_) - Specified by:
levelEvent
in interfaceLevelAccessor
-
addParticle
public void addParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - Specified by:
addParticle
in interfaceLevelAccessor
- Overrides:
addParticle
in classLevel
-
addParticle
public void addParticle(ParticleOptions p_104714_, boolean p_104715_, boolean p_383197_, double p_104716_, double p_104717_, double p_104718_, double p_104719_, double p_104720_, double p_104721_) - Overrides:
addParticle
in classLevel
-
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - Overrides:
addAlwaysVisibleParticle
in classLevel
-
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions pParticleData, boolean pIgnoreRange, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - Overrides:
addAlwaysVisibleParticle
in classLevel
-
players
- Specified by:
players
in interfaceEntityGetter
-
dragonParts
- Specified by:
dragonParts
in classLevel
-
getUncachedNoiseBiome
- Specified by:
getUncachedNoiseBiome
in 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:
setSkyFlashTime
in classLevel
-
getShade
- Specified by:
getShade
in interfaceBlockAndTintGetter
-
getBlockTint
- Specified by:
getBlockTint
in interfaceBlockAndTintGetter
- Specified by:
getBlockTint
in interfaceLevelReader
-
calculateBlockTint
-
setDefaultSpawnPos
-
toString
-
getLevelData
- Specified by:
getLevelData
in interfaceLevelAccessor
- Overrides:
getLevelData
in classLevel
-
gameEvent
- Specified by:
gameEvent
in interfaceLevelAccessor
-
getAllMapData
-
addMapData
-
getEntities
- Specified by:
getEntities
in classLevel
-
gatherChunkSourceStats
- Specified by:
gatherChunkSourceStats
in classLevel
-
addDestroyBlockEffect
- Overrides:
addDestroyBlockEffect
in classLevel
-
setServerSimulationDistance
public void setServerSimulationDistance(int pServerSimulationDistance) -
getServerSimulationDistance
public int getServerSimulationDistance() -
enabledFeatures
- Specified by:
enabledFeatures
in interfaceLevelReader
-
potionBrewing
- Specified by:
potionBrewing
in classLevel
-
fuelValues
- Specified by:
fuelValues
in classLevel
-
explode
public void explode(@Nullable Entity p_363686_, @Nullable DamageSource p_365268_, @Nullable ExplosionDamageCalculator p_363795_, double p_360494_, double p_360591_, double p_364949_, float p_361233_, boolean p_364900_, Level.ExplosionInteraction p_365033_, ParticleOptions p_361889_, ParticleOptions p_361473_, Holder<SoundEvent> p_362359_) -
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevel
in interfaceLevelReader
-
getClientLeafTintColor
- Overrides:
getClientLeafTintColor
in classLevel
-
registerForCleaning
- Specified by:
registerForCleaning
in interfaceCacheSlot.Cleaner<ClientLevel>
-
getModelDataManager
Description copied from interface:ILevelExtension
Retrieves 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:
getModelDataManager
in interfaceILevelExtension
-
getModelData
Description copied from interface:IBlockGetterExtension
Retrieves model data for a block at the given position.- Specified by:
getModelData
in interfaceIBlockGetterExtension
- Parameters:
pos
- the position to query- Returns:
- the model data at this position, or
ModelData.EMPTY
if none exists
-
getShade
public float getShade(float normalX, float normalY, float normalZ, boolean shade) Description copied from interface:IBlockAndTintGetterExtension
Computes the shade for a given normal. Alternate version of the vanilla method taking in aDirection
.- Specified by:
getShade
in interfaceIBlockAndTintGetterExtension
-
setDayTimeFraction
@Internal public void setDayTimeFraction(float dayTimeFraction) - Specified by:
setDayTimeFraction
in classLevel
-
getDayTimeFraction
@Internal public float getDayTimeFraction()- Specified by:
getDayTimeFraction
in classLevel
-
getDayTimePerTick
public float getDayTimePerTick()Description copied from class:Level
Returns 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:
getDayTimePerTick
in classLevel
-
setDayTimePerTick
@Internal public void setDayTimePerTick(float dayTimePerTick) Description copied from class:Level
DO NOT CALL.Use
ServerLevel.setDayTimePerTick(float)
instead.- Specified by:
setDayTimePerTick
in classLevel
-