Package net.minecraft.world.level
Interface LevelAccessor
- All Superinterfaces:
BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,CommonLevelAccessor
,EntityGetter
,IBlockAndTintGetterExtension
,IBlockGetterExtension
,ILevelReaderExtension
,LevelHeightAccessor
,LevelReader
,LevelSimulatedReader
,LevelSimulatedRW
,LevelTimeAccess
,LevelWriter
,ScheduledTickAccess
,SignalGetter
- All Known Subinterfaces:
ServerLevelAccessor
,WorldGenLevel
- All Known Implementing Classes:
ClientLevel
,Level
,ServerLevel
,WorldGenRegion
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor
-
Field Summary
Fields inherited from interface net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
Fields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS
-
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 <T> ScheduledTick
<T> createTick
(BlockPos p_186479_, T p_186480_, int p_186481_) default <T> ScheduledTick
<T> createTick
(BlockPos p_186483_, T p_186484_, int p_186485_, TickPriority p_186486_) default long
dayTime()
default void
gameEvent
(Holder<GameEvent> p_316320_, BlockPos p_220409_, GameEvent.Context p_220410_) void
gameEvent
(Holder<GameEvent> p_316267_, Vec3 p_220405_, GameEvent.Context p_220406_) default void
gameEvent
(ResourceKey<GameEvent> p_316780_, BlockPos p_316509_, GameEvent.Context p_316524_) default void
default void
getCurrentDifficultyAt
(BlockPos p_46800_) default Difficulty
default boolean
hasChunk
(int p_46794_, int p_46795_) default void
levelEvent
(int p_46797_, BlockPos p_46798_, int p_46799_) void
levelEvent
(Entity p_393621_, int p_46772_, BlockPos p_46773_, int p_46774_) default void
neighborShapeChanged
(Direction p_220411_, BlockPos p_220413_, BlockPos p_220414_, BlockState p_220412_, int p_220415_, int p_220416_) long
default void
playSound
(Entity p_393651_, BlockPos p_250192_, SoundEvent p_249887_, SoundSource p_250593_) void
playSound
(Entity p_393763_, BlockPos p_46776_, SoundEvent p_46777_, SoundSource p_46778_, float p_46779_, float p_46780_) default void
updateNeighborsAt
(BlockPos p_46781_, Block p_46782_) 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, isBlockInLine
Methods inherited from interface net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, 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, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, players
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension
getShade
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelData
Methods inherited from interface net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoaded
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, dimensionType, enabledFeatures, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getHeight, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinY, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getSkyDarken, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isClientSide, isEmptyBlock, isWaterAt, registryAccess
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
Methods inherited from interface net.minecraft.world.level.ScheduledTickAccess
getBlockTicks, getFluidTicks, scheduleTick, scheduleTick, scheduleTick, scheduleTick
Methods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Method Details
-
dayTime
default long dayTime()- Specified by:
dayTime
in interfaceLevelTimeAccess
-
nextSubTickCount
long nextSubTickCount() -
createTick
default <T> ScheduledTick<T> createTick(BlockPos p_186483_, T p_186484_, int p_186485_, TickPriority p_186486_) - Specified by:
createTick
in interfaceScheduledTickAccess
-
createTick
- Specified by:
createTick
in interfaceScheduledTickAccess
-
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
RandomSource getRandom() -
updateNeighborsAt
-
neighborShapeChanged
default void neighborShapeChanged(Direction p_220411_, BlockPos p_220413_, BlockPos p_220414_, BlockState p_220412_, int p_220415_, int p_220416_) -
playSound
default void playSound(@Nullable Entity p_393651_, BlockPos p_250192_, SoundEvent p_249887_, SoundSource p_250593_) -
playSound
void playSound(@Nullable Entity p_393763_, 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
-
levelEvent
-
gameEvent
-
gameEvent
-
gameEvent
-
gameEvent
default void gameEvent(Holder<GameEvent> p_316320_, BlockPos p_220409_, GameEvent.Context p_220410_) -
gameEvent
default void gameEvent(ResourceKey<GameEvent> p_316780_, BlockPos p_316509_, GameEvent.Context p_316524_)
-