Interface LevelHeightAccessor

All Known Subinterfaces:
BlockAndTintGetter, BlockGetter, CollisionGetter, CommonLevelAccessor, LevelAccessor, LevelReader, LevelTimeAccess, LightChunk, ServerLevelAccessor, SignalGetter, WorldGenLevel
All Known Implementing Classes:
ChunkAccess, ClientLevel, EmptyBlockAndTintGetter, EmptyBlockGetter, EmptyLevelChunk, FallingBlockRenderState, ImposterProtoChunk, Level, LevelChunk, PathNavigationRegion, ProtoChunk, RenderChunkRegion, ServerLevel, WorldGenRegion

public interface LevelHeightAccessor
  • Method Details

    • getHeight

      int getHeight()
    • getMinY

      int getMinY()
    • getMaxY

      default int getMaxY()
    • getSectionsCount

      default int getSectionsCount()
    • getMinSectionY

      default int getMinSectionY()
    • getMaxSectionY

      default int getMaxSectionY()
    • isInsideBuildHeight

      default boolean isInsideBuildHeight(int y)
    • isOutsideBuildHeight

      default boolean isOutsideBuildHeight(BlockPos pos)
    • isOutsideBuildHeight

      default boolean isOutsideBuildHeight(int y)
    • getSectionIndex

      default int getSectionIndex(int y)
    • getSectionIndexFromSectionY

      default int getSectionIndexFromSectionY(int sectionIndex)
    • getSectionYFromSectionIndex

      default int getSectionYFromSectionIndex(int sectionIndex)
    • create

      static LevelHeightAccessor create(int minBuildHeight, int height)