Interface LevelHeightAccessor
- All Known Subinterfaces:
BlockAndTintGetter, BlockGetter, CollisionGetter, CommonLevelAccessor, LevelAccessor, LevelReader, LightChunk, ServerLevelAccessor, SignalGetter, WorldGenLevel
- All Known Implementing Classes:
BlockBreakingRenderState, ChunkAccess, ClientLevel, EmptyBlockAndTintGetter, 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 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
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
-