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 pParticle, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) default <T> ScheduledTick
<T> createTick
(BlockPos pPos, T pType, int pDelay) default <T> ScheduledTick
<T> createTick
(BlockPos pPos, T pType, int pDelay, TickPriority pPriority) default long
dayTime()
default void
gameEvent
(Holder<GameEvent> pGameEvent, BlockPos pPos, GameEvent.Context pContext) void
gameEvent
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) default void
gameEvent
(ResourceKey<GameEvent> pGameEvent, BlockPos pPos, GameEvent.Context pContext) default void
default void
default Difficulty
default boolean
hasChunk
(int pChunkX, int pChunkZ) default void
levelEvent
(int pType, BlockPos pPos, int pData) void
levelEvent
(Entity pEntity, int pType, BlockPos pPos, int pData) default void
neighborShapeChanged
(Direction pDirection, BlockPos pPos, BlockPos pNeighborPos, BlockState pNeighborState, int pFlags, int pRecursionLeft) long
default void
playSound
(Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pSource) void
playSound
(Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) default void
updateNeighborsAt
(BlockPos pPos, Block pBlock) 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, getPreMoveCollisions, 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
- 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 pChunkX, int pChunkZ) - Specified by:
hasChunk
in interfaceLevelReader
-
getRandom
RandomSource getRandom() -
updateNeighborsAt
-
neighborShapeChanged
default void neighborShapeChanged(Direction pDirection, BlockPos pPos, BlockPos pNeighborPos, BlockState pNeighborState, int pFlags, int pRecursionLeft) -
playSound
default void playSound(@Nullable Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pSource) -
playSound
void playSound(@Nullable Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) -
addParticle
void addParticle(ParticleOptions pParticle, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) -
levelEvent
-
levelEvent
-
gameEvent
-
gameEvent
-
gameEvent
-
gameEvent
-
gameEvent
default void gameEvent(ResourceKey<GameEvent> pGameEvent, BlockPos pPos, GameEvent.Context pContext)
-