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, EntityGetter, LevelAccessor, LevelHeightAccessor, LevelReader, LevelSimulatedReader, LevelSimulatedRW, LevelWriter, ScheduledTickAccess, SignalGetter, IAttachmentHolder, IBlockAndTintGetterExtension, IBlockGetterExtension, ILevelExtension, ILevelReaderExtension
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate final classNested classes/interfaces inherited from class Level
Level.ExplosionInteractionNested classes/interfaces inherited from class AttachmentHolder
AttachmentHolder.AsFieldNested classes/interfaces inherited from interface BlockGetter
BlockGetter.BlockStepVisitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStatePredictionHandlerprivate final ClientChunkCacheprivate final ClientLevel.ClientLevelDataprivate final ClientPacketListenerstatic final Componentprivate final List<PartEntity<?>> private final @Nullable EndFlashStateprivate final TransientEntitySectionManager<Entity> private final EnvironmentAttributeSystemprivate final ClientExplosionTrackerprivate 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 intprivate final List<AbstractClientPlayer> private final intprivate intprivate intprivate final EntityTickListprivate final TickRateManagerprivate final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver, BlockTintCache> private final WorldBorderFields inherited from class Level
addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, 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, thunderLevelFields inherited from class AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface ILevelExtension
TRANSLATION_PREFIXFields inherited from interface SignalGetter
DIRECTIONS -
Constructor Summary
ConstructorsConstructorDescriptionClientLevel(ClientPacketListener connection, ClientLevel.ClientLevelData levelData, ResourceKey<Level> dimension, Holder<DimensionType> dimensionType, int serverChunkRadius, int serverSimulationDistance, LevelRenderer levelRenderer, boolean isDebug, long biomeZoomSeed, int seaLevel) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlwaysVisibleParticle(ParticleOptions particle, boolean overrideLimiter, double x, double y, double z, double xd, double yd, double zd) voidaddAlwaysVisibleParticle(ParticleOptions particle, double x, double y, double z, double xd, double yd, double zd) voidaddBreakingBlockEffect(BlockPos pos, Direction direction) Deprecated.voidaddBreakingBlockEffect(BlockPos pos, Direction direction, @Nullable HitResult hitResult) voidaddDestroyBlockEffect(BlockPos pos, BlockState blockState) voidaddEnvironmentAttributeLayers(EnvironmentAttributeSystem.Builder environmentAttributes) protected voidaddMapData(Map<MapId, MapItemSavedData> mapData) voidaddParticle(ParticleOptions particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, double xd, double yd, double zd) voidaddParticle(ParticleOptions particle, double x, double y, double z, double xd, double yd, double zd) voidanimateTick(int xt, int yt, int zt) intcalculateBlockTint(BlockPos pos, ColorResolver colorResolver) private ParticleStatuscalculateParticleLevel(boolean alwaysShowParticles) voidvoidcreateFireworks(double x, double y, double z, double xd, double yd, double zd, List<FireworkExplosion> explosions) voiddestroyBlockProgress(int id, BlockPos blockPos, int progress) voiddisconnect(Component message) private voiddoAddParticle(ParticleOptions particle, boolean overrideLimiter, boolean alwaysShowParticles, double x, double y, double z, double xd, double yd, double zd) voiddoAnimateTick(int xt, int yt, int zt, int r, RandomSource animateRandom, @Nullable Block markerParticleTarget, BlockPos.MutableBlockPos pos) List<PartEntity<?>> @Nullable EndFlashStatevoidexplode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction interactionType, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, WeightedList<ExplosionParticleInfo> secondaryParticles, Holder<SoundEvent> explosionSound) fillReportDetails(CrashReport report) Adds some basic stats of the world to the given crash report.voidgameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) protected Map<MapId, MapItemSavedData> (package private) BlockStatePredictionHandlerintgetBlockTint(BlockPos pos, ColorResolver resolver) intprotected LevelEntityGetter<Entity> @Nullable EntitygetEntity(int id) Returns the Entity with the given ID, or null if it doesn't exist in this World.int@Nullable MapItemSavedDatagetMapData(MapId id) private @Nullable BlockgetModelData(BlockPos pos) Retrieves model data for a block at the given position.Retrieves the model data manager for the given level.getPushableEntities(Entity pusher, AABB boundingBox) intintfloatgetShade(float normalX, float normalY, float normalZ, boolean shade) Computes the shade for a given normal.floatprivate intgetUncachedNoiseBiome(int quartX, int quartY, int quartZ) voidglobalLevelEvent(int type, BlockPos pos, int data) voidhandleBlockChangedAck(int sequence) booleanhasChunk(int chunkX, int chunkZ) booleanbooleanisTickingEntity(Entity entity) voidlevelEvent(@Nullable Entity source, int type, BlockPos pos, int data) voidonBlockEntityAdded(BlockEntity blockEntity) voidonChunkLoaded(ChunkPos pos) voidonSectionBecomingNonEmpty(long sectionNode) voidoverrideMapData(MapId id, MapItemSavedData data) players()voidplayLocalSound(double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch, boolean distanceDelay) voidplayLocalSound(Entity sourceEntity, SoundEvent sound, SoundSource source, float volume, float pitch) voidplayPlayerSound(SoundEvent sound, SoundSource source, float volume, float pitch) voidplaySeededSound(@Nullable Entity except, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidplaySeededSound(@Nullable Entity except, Entity sourceEntity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) private voidplaySound(double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch, boolean distanceDelay, long seed) voidvoidqueueLightUpdate(Runnable update) voidregisterForCleaning(CacheSlot<ClientLevel, ?> slot) voidremoveEntity(int id, Entity.RemovalReason reason) voidsendBlockUpdated(BlockPos pos, BlockState old, BlockState current, int updateFlags) Flags are as in setBlockStatevoidsendPacketToServer(Packet<?> packet) booleansetBlock(BlockPos pos, BlockState blockState, int updateFlags, int updateLimit) voidsetBlocksDirty(BlockPos pos, BlockState oldState, BlockState newState) voidsetRespawnData(LevelData.RespawnData respawnData) voidsetSectionDirtyWithNeighbors(int chunkX, int chunkY, int chunkZ) voidsetSectionRangeDirty(int minSectionX, int minSectionY, int minSectionZ, int maxSectionX, int maxSectionY, int maxSectionZ) voidsetServerSimulationDistance(int serverSimulationDistance) voidsetServerVerifiedBlockState(BlockPos pos, BlockState blockState, int updateFlag) voidsetSkyFlashTime(int skyFlashTime) voidsetTimeFromServer(long gameTime) booleanshouldTickDeath(Entity entity) private voidspawnFluidParticle(double x1, double x2, double z1, double z2, double y, ParticleOptions dripParticle) private voidspawnParticle(BlockPos pos, ParticleOptions dripParticle, VoxelShape dripShape, double height) voidsyncBlockState(BlockPos pos, BlockState state, Vec3 playerPos) voidtick(BooleanSupplier haveTime) Runs a single tick for the worldvoidvoidtickNonPassenger(Entity entity) private voidtickPassenger(Entity vehicle, Entity entity) private voidtickTime()toString()voidtrackExplosionEffects(Vec3 center, float radius, int blockCount, WeightedList<ExplosionParticleInfo> blockParticles) private voidtrySpawnDripParticles(BlockPos pos, BlockState state, ParticleOptions dripParticle, boolean isTopSolid) voidunload(LevelChunk levelChunk) Methods inherited from class Level
addBlockEntityTicker, addFreshBlockEntities, blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, canHaveWeather, close, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, explode, explode, explode, explode, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getDefaultClockTime, getEntities, getEntities, getEntities, getEntities, getEntity, getEntityInAnyDimension, getFluidState, getHeight, getLightEngine, getMaxEntityRadius, getOverworldClockTime, getPlayerInAnyDimension, getRainLevel, getRandom, getServer, getSkyDarken, getThunderLevel, getWorldBorderAdjustedRespawnData, guardEntityTick, hasEntities, increaseMaxEntityRadius, isBrightOutside, isClientSide, isDarkOutside, isDebug, isFluidAtPosition, isInSpawnableBounds, isInValidBounds, isInWorldBounds, isLoaded, isRaining, isRainingAt, isStateAtPosition, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, palettedContainerFactory, playLocalSound, playSeededSound, playSound, playSound, playSound, playSound, playSound, precipitationAt, registryAccess, removeBlock, removeBlockEntity, setBlock, setBlockAndUpdate, setBlockEntity, setRainLevel, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updatePOIOnBlockStateChange, updateSkyBrightnessMethods inherited from class AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments, setDataMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightnessMethods inherited from interface BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, isBlockInLineMethods inherited from interface CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getPreMoveCollisions, isUnobstructed, isUnobstructed, noBlockCollision, noBlockCollision, noBorderCollision, noCollision, noCollision, noCollision, noCollision, noEntityCollisionMethods inherited from interface CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData, syncDataMethods inherited from interface IBlockGetterExtension
getAuxLightManager, getAuxLightManagerMethods inherited from interface ILevelExtension
getCapability, getCapability, getCapability, getCapability, getDescription, getDescriptionKey, invalidateCapabilities, invalidateCapabilitiesMethods inherited from interface ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface LevelAccessor
createTick, createTick, gameEvent, gameEvent, gameEvent, gameEvent, getDifficulty, getGameTime, levelEvent, playSound, updateNeighborsAtMethods inherited from interface LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getChunk, getChunk, getEffectiveSkyBrightness, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinY, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isEmptyBlock, isWaterAtMethods inherited from interface LevelWriter
addFreshEntity, destroyBlock, destroyBlockMethods inherited from interface ScheduledTickAccess
scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface 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
-
tickRateManager
-
endFlashState
-
minecraft
-
players
-
dragonParts
-
mapData
-
skyFlashTime
private int skyFlashTime -
tintCaches
private final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver, BlockTintCache> tintCaches -
chunkSource
-
lightUpdateQueue
-
serverSimulationDistance
private int serverSimulationDistance -
blockStatePredictionHandler
-
globallyRenderedBlockEntities
-
explosionTracker
-
worldBorder
-
environmentAttributes
-
seaLevel
private final int seaLevel -
MARKER_PARTICLE_ITEMS
-
modelDataManager
-
-
Constructor Details
-
ClientLevel
public ClientLevel(ClientPacketListener connection, ClientLevel.ClientLevelData levelData, ResourceKey<Level> dimension, Holder<DimensionType> dimensionType, int serverChunkRadius, int serverSimulationDistance, LevelRenderer levelRenderer, boolean isDebug, long biomeZoomSeed, int seaLevel)
-
-
Method Details
-
handleBlockChangedAck
public void handleBlockChangedAck(int sequence) -
onBlockEntityAdded
- Overrides:
onBlockEntityAddedin classLevel
-
getGloballyRenderedBlockEntities
-
setServerVerifiedBlockState
-
syncBlockState
-
getBlockStatePredictionHandler
BlockStatePredictionHandler getBlockStatePredictionHandler() -
setBlock
- Specified by:
setBlockin interfaceLevelWriter- Overrides:
setBlockin classLevel
-
addEnvironmentAttributeLayers
private EnvironmentAttributeSystem.Builder addEnvironmentAttributeLayers(EnvironmentAttributeSystem.Builder environmentAttributes) -
queueLightUpdate
-
pollLightUpdates
public void pollLightUpdates() -
endFlashState
-
tick
Runs a single tick for the world -
tickTime
private void tickTime() -
setTimeFromServer
public void setTimeFromServer(long gameTime) -
entitiesForRendering
-
tickEntities
public void tickEntities() -
isTickingEntity
-
shouldTickDeath
- Overrides:
shouldTickDeathin classLevel
-
tickNonPassenger
-
tickPassenger
-
unload
-
onChunkLoaded
-
onSectionBecomingNonEmpty
public void onSectionBecomingNonEmpty(long sectionNode) -
clearTintCaches
public void clearTintCaches() -
hasChunk
public boolean hasChunk(int chunkX, int chunkZ) - Specified by:
hasChunkin interfaceLevelAccessor- Specified by:
hasChunkin interfaceLevelReader
-
getEntityCount
public int getEntityCount() -
addEntity
-
removeEntity
-
getPushableEntities
-
getEntity
-
disconnect
-
animateTick
public void animateTick(int xt, int yt, int zt) -
getMarkerParticleTarget
-
doAnimateTick
public void doAnimateTick(int xt, int yt, int zt, int r, RandomSource animateRandom, @Nullable Block markerParticleTarget, BlockPos.MutableBlockPos pos) -
trySpawnDripParticles
private void trySpawnDripParticles(BlockPos pos, BlockState state, ParticleOptions dripParticle, boolean isTopSolid) -
spawnParticle
private void spawnParticle(BlockPos pos, ParticleOptions dripParticle, VoxelShape dripShape, double height) -
spawnFluidParticle
private void spawnFluidParticle(double x1, double x2, double z1, double z2, double y, ParticleOptions dripParticle) -
fillReportDetails
Adds some basic stats of the world to the given crash report.- Overrides:
fillReportDetailsin classLevel
-
playSeededSound
public void playSeededSound(@Nullable Entity except, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) - Specified by:
playSeededSoundin classLevel
-
playSeededSound
public void playSeededSound(@Nullable Entity except, Entity sourceEntity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) - Specified by:
playSeededSoundin classLevel
-
playLocalSound
public void playLocalSound(Entity sourceEntity, SoundEvent sound, SoundSource source, float volume, float pitch) - Overrides:
playLocalSoundin classLevel
-
playPlayerSound
- Overrides:
playPlayerSoundin classLevel
-
playLocalSound
public void playLocalSound(double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch, boolean distanceDelay) - Overrides:
playLocalSoundin classLevel
-
playSound
private void playSound(double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch, boolean distanceDelay, long seed) -
createFireworks
public void createFireworks(double x, double y, double z, double xd, double yd, double zd, List<FireworkExplosion> explosions) - Overrides:
createFireworksin classLevel
-
sendPacketToServer
- Overrides:
sendPacketToServerin classLevel
-
getWorldBorder
- Specified by:
getWorldBorderin interfaceCollisionGetter
-
recipeAccess
- Specified by:
recipeAccessin classLevel
-
tickRateManager
- Specified by:
tickRateManagerin classLevel
-
clockManager
- Specified by:
clockManagerin classLevel
-
environmentAttributes
- Specified by:
environmentAttributesin interfaceLevelReader- Specified by:
environmentAttributesin 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 chunkX, int chunkY, int chunkZ) -
setSectionRangeDirty
public void setSectionRangeDirty(int minSectionX, int minSectionY, int minSectionZ, int maxSectionX, int maxSectionY, int maxSectionZ) -
destroyBlockProgress
- Specified by:
destroyBlockProgressin classLevel
-
globalLevelEvent
- Overrides:
globalLevelEventin classLevel
-
levelEvent
- Specified by:
levelEventin interfaceLevelAccessor
-
addParticle
public void addParticle(ParticleOptions particle, double x, double y, double z, double xd, double yd, double zd) - Specified by:
addParticlein interfaceLevelAccessor- Overrides:
addParticlein classLevel
-
addParticle
public void addParticle(ParticleOptions particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, double xd, double yd, double zd) - Overrides:
addParticlein classLevel
-
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions particle, double x, double y, double z, double xd, double yd, double zd) - Overrides:
addAlwaysVisibleParticlein classLevel
-
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions particle, boolean overrideLimiter, double x, double y, double z, double xd, double yd, double zd) - Overrides:
addAlwaysVisibleParticlein classLevel
-
doAddParticle
private void doAddParticle(ParticleOptions particle, boolean overrideLimiter, boolean alwaysShowParticles, double x, double y, double z, double xd, double yd, double zd) -
calculateParticleLevel
-
players
- Specified by:
playersin interfaceEntityGetter
-
dragonParts
- Specified by:
dragonPartsin classLevel
-
getUncachedNoiseBiome
- Specified by:
getUncachedNoiseBiomein interfaceLevelReader
-
getSkyFlashTime
private int getSkyFlashTime() -
setSkyFlashTime
public void setSkyFlashTime(int skyFlashTime) - Overrides:
setSkyFlashTimein classLevel
-
getShade
- Specified by:
getShadein interfaceBlockAndTintGetter
-
getBlockTint
- Specified by:
getBlockTintin interfaceBlockAndTintGetter- Specified by:
getBlockTintin interfaceLevelReader
-
calculateBlockTint
-
setRespawnData
- Specified by:
setRespawnDatain classLevel
-
getRespawnData
- Specified by:
getRespawnDatain classLevel
-
isThundering
public boolean isThundering()- Overrides:
isThunderingin classLevel
-
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
-
addBreakingBlockEffect
Deprecated. -
addBreakingBlockEffect
-
setServerSimulationDistance
public void setServerSimulationDistance(int serverSimulationDistance) -
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 source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction interactionType, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, WeightedList<ExplosionParticleInfo> secondaryParticles, Holder<SoundEvent> explosionSound) -
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevelin interfaceLevelReader
-
getClientLeafTintColor
- Overrides:
getClientLeafTintColorin classLevel
-
registerForCleaning
- Specified by:
registerForCleaningin interfaceCacheSlot.Cleaner<ClientLevel>
-
trackExplosionEffects
public void trackExplosionEffects(Vec3 center, float radius, int blockCount, WeightedList<ExplosionParticleInfo> blockParticles) -
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
-
addBreakingBlockEffect(BlockPos, Direction, net.minecraft.world.phys.HitResult)instead