Package net.minecraft.world.level
Interface LevelAccessor
- All Superinterfaces:
BiomeManager.NoiseBiomeSource,BlockAndTintGetter,BlockGetter,CollisionGetter,CommonLevelAccessor,EntityGetter,IBlockAndTintGetterExtension,IBlockGetterExtension,ILevelReaderExtension,LevelHeightAccessor,LevelReader,LevelSimulatedReader,LevelSimulatedRW,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.SignalGetter
DIRECTIONS -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParticle(ParticleOptions options, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed) default <T> ScheduledTick<T> createTick(BlockPos pos, T type, int delay) default <T> ScheduledTick<T> createTick(BlockPos pos, T type, int delay, TickPriority priority) default voidgameEvent(Holder<GameEvent> gameEvent, BlockPos pos, GameEvent.Context context) voidgameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) default voidgameEvent(ResourceKey<GameEvent> gameEvent, BlockPos pos, GameEvent.Context context) default voiddefault voiddefault Difficultydefault long@Nullable MinecraftServerdefault booleanhasChunk(int chunkX, int chunkZ) default voidlevelEvent(int type, BlockPos pos, int data) voidlevelEvent(@Nullable Entity entity, int type, BlockPos pos, int data) default voidneighborShapeChanged(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, @net.minecraft.world.level.block.Block.UpdateFlags int flags, int recursionLeft) longdefault voidplaySound(@Nullable Entity entity, BlockPos pos, SoundEvent sound, SoundSource source) voidplaySound(@Nullable Entity entity, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) default voidupdateNeighborsAt(BlockPos pos, Block block) Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShadeMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getPreMoveCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noBlockCollision, noBorderCollision, noCollision, noCollision, noCollision, noCollision, noEntityCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, playersMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension
getShadeMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, enabledFeatures, environmentAttributes, 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, registryAccessMethods inherited from interface net.minecraft.world.level.LevelSimulatedReader
isFluidAtPosition, isStateAtPositionMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlockMethods inherited from interface net.minecraft.world.level.ScheduledTickAccess
getBlockTicks, getFluidTicks, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Method Details
-
nextSubTickCount
long nextSubTickCount() -
createTick
- Specified by:
createTickin interfaceScheduledTickAccess
-
createTick
- Specified by:
createTickin interfaceScheduledTickAccess
-
getLevelData
LevelData getLevelData() -
getGameTime
default long getGameTime() -
getServer
@Nullable MinecraftServer getServer() -
getDifficulty
-
getChunkSource
ChunkSource getChunkSource() -
hasChunk
default boolean hasChunk(int chunkX, int chunkZ) - Specified by:
hasChunkin interfaceLevelReader
-
getRandom
RandomSource getRandom() -
updateNeighborsAt
-
neighborShapeChanged
default void neighborShapeChanged(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, @net.minecraft.world.level.block.Block.UpdateFlags int flags, int recursionLeft) -
playSound
-
playSound
void playSound(@Nullable Entity entity, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) -
addParticle
void addParticle(ParticleOptions options, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed) -
levelEvent
-
levelEvent
-
gameEvent
-
gameEvent
-
gameEvent
-
gameEvent
-
gameEvent
-