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 BlockGetter
BlockGetter.BlockStepVisitor -
Field Summary
Fields inherited from interface SignalGetter
DIRECTIONS -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParticle(ParticleOptions particle, double x, double y, double z, double xd, double yd, double zd) default <T> ScheduledTick<T> createTick(BlockPos pos, T type, int tickDelay) default <T> ScheduledTick<T> createTick(BlockPos pos, T type, int tickDelay, TickPriority priority) default voidgameEvent(Holder<GameEvent> gameEvent, BlockPos pos, GameEvent.Context context) voidgameEvent(Holder<GameEvent> gameEvent, Vec3 position, 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 source, int type, BlockPos pos, int data) default voidneighborShapeChanged(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int updateFlags, int updateLimit) longdefault voidplaySound(@Nullable Entity except, BlockPos pos, SoundEvent soundEvent, SoundSource source) voidplaySound(@Nullable Entity except, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) default voidupdateNeighborsAt(BlockPos pos, Block sourceBlock) Methods inherited from interface BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShadeMethods inherited from interface BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, isBlockInLineMethods inherited from interface CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getPreMoveCollisions, getWorldBorder, isUnobstructed, isUnobstructed, noBlockCollision, noBlockCollision, noBorderCollision, noCollision, noCollision, noCollision, noCollision, noEntityCollisionMethods inherited from interface CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface EntityGetter
getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, playersMethods inherited from interface IBlockAndTintGetterExtension
getShadeMethods inherited from interface IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, enabledFeatures, environmentAttributes, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getEffectiveSkyBrightness, 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 LevelSimulatedReader
isFluidAtPosition, isStateAtPositionMethods inherited from interface LevelWriter
addFreshEntity, destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlockMethods inherited from interface ScheduledTickAccess
getBlockTicks, getFluidTicks, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface 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, int updateFlags, int updateLimit) -
playSound
default void playSound(@Nullable Entity except, BlockPos pos, SoundEvent soundEvent, SoundSource source) -
playSound
void playSound(@Nullable Entity except, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) -
addParticle
void addParticle(ParticleOptions particle, double x, double y, double z, double xd, double yd, double zd) -
levelEvent
-
levelEvent
-
gameEvent
-
gameEvent
-
gameEvent
-
gameEvent
-
gameEvent
-