Interface LevelHeightAccessor
- All Known Subinterfaces:
BlockAndLightGetter, BlockAndTintGetter, BlockGetter, CollisionGetter, CommonLevelAccessor, LevelAccessor, LevelReader, LightChunk, ServerLevelAccessor, SignalGetter, WorldGenLevel
- All Known Implementing Classes:
ChunkAccess, ClientLevel, EmptyBlockGetter, EmptyLevelChunk, ImposterProtoChunk, Level, LevelChunk, MovingBlockRenderState, PathNavigationRegion, ProtoChunk, RenderSectionRegion, ServerLevel, WorldGenRegion
public interface LevelHeightAccessor
-
Method Summary
Modifier and TypeMethodDescriptionstatic LevelHeightAccessorcreate(int minY, int height) intdefault intdefault intgetMaxY()default intintgetMinY()default intgetSectionIndex(int blockY) default intgetSectionIndexFromSectionY(int sectionY) default intdefault intgetSectionYFromSectionIndex(int sectionIndex) default booleanisInsideBuildHeight(int blockY) default booleandefault booleanisOutsideBuildHeight(int blockY) default boolean
-
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
-
isInsideBuildHeight
default boolean isInsideBuildHeight(int blockY) -
isOutsideBuildHeight
-
isOutsideBuildHeight
default boolean isOutsideBuildHeight(int blockY) -
getSectionIndex
default int getSectionIndex(int blockY) -
getSectionIndexFromSectionY
default int getSectionIndexFromSectionY(int sectionY) -
getSectionYFromSectionIndex
default int getSectionYFromSectionIndex(int sectionIndex) -
create
-