Package net.minecraft.world.level
Interface LevelAccessor
- All Superinterfaces:
BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,CommonLevelAccessor
,EntityGetter
,LevelHeightAccessor
,LevelReader
,LevelSimulatedReader
,LevelSimulatedRW
,LevelTimeAccess
,LevelWriter
- All Known Subinterfaces:
ServerLevelAccessor
,WorldGenLevel
- All Known Implementing Classes:
ClientLevel
,Level
,ServerLevel
,WorldGenRegion
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParticle(ParticleOptions p_46783_, double p_46784_, double p_46785_, double p_46786_, double p_46787_, double p_46788_, double p_46789_)
default void
blockUpdated(BlockPos p_46781_, Block p_46782_)
default long
dayTime()
void
default void
default void
default void
getCurrentDifficultyAt(BlockPos p_46800_)
default Difficulty
default int
default boolean
hasChunk(int p_46794_, int p_46795_)
default void
levelEvent(int p_46797_, BlockPos p_46798_, int p_46799_)
void
levelEvent(Player p_46771_, int p_46772_, BlockPos p_46773_, int p_46774_)
void
playSound(Player p_46775_, BlockPos p_46776_, SoundEvent p_46777_, SoundSource p_46778_, float p_46779_, float p_46780_)
Methods inherited from interface net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource
getPrimaryBiome
Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShade
Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLine
Methods inherited from interface net.minecraft.world.level.CollisionGetter
findFreePosition, getBlockCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, hasBlockCollision, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollision, noCollision
Methods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBiomeName, getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed, registryAccess
Methods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, players
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
Methods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getBrightness, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getDirectSignal, getHeight, getHeight, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getSeaLevel, getSkyDarken, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isAreaLoaded, isClientSide, isEmptyBlock, isWaterAt
Methods inherited from interface net.minecraft.world.level.LevelSimulatedReader
isFluidAtPosition, isStateAtPosition
Methods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDay
Methods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlock
-
Method Details
-
dayTime
default long dayTime()- Specified by:
dayTime
in interfaceLevelTimeAccess
-
getBlockTicks
-
getLiquidTicks
-
getLevelData
LevelData getLevelData() -
getCurrentDifficultyAt
-
getServer
-
getDifficulty
-
getChunkSource
ChunkSource getChunkSource() -
hasChunk
default boolean hasChunk(int p_46794_, int p_46795_)- Specified by:
hasChunk
in interfaceLevelReader
-
getRandom
Random getRandom() -
blockUpdated
-
playSound
void playSound(@Nullable Player p_46775_, BlockPos p_46776_, SoundEvent p_46777_, SoundSource p_46778_, float p_46779_, float p_46780_) -
addParticle
void addParticle(ParticleOptions p_46783_, double p_46784_, double p_46785_, double p_46786_, double p_46787_, double p_46788_, double p_46789_) -
levelEvent
-
getLogicalHeight
default int getLogicalHeight() -
levelEvent
-
gameEvent
-
gameEvent
-
gameEvent
-
gameEvent
-