Package net.minecraft.world.level
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,RenderSectionRegion,ServerLevel,WorldGenRegion
public interface LevelHeightAccessor
-
Method Summary
Modifier and TypeMethodDescriptionstatic LevelHeightAccessorcreate(int pMinBuildHeight, int pHeight) intdefault intdefault intgetMaxY()default intintgetMinY()default intgetSectionIndex(int pY) default intgetSectionIndexFromSectionY(int pSectionIndex) default intdefault intgetSectionYFromSectionIndex(int pSectionIndex) default booleanisInsideBuildHeight(int pY) default booleanisOutsideBuildHeight(int pY) default booleanisOutsideBuildHeight(BlockPos pPos)
-
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 pY) -
isOutsideBuildHeight
-
isOutsideBuildHeight
default boolean isOutsideBuildHeight(int pY) -
getSectionIndex
default int getSectionIndex(int pY) -
getSectionIndexFromSectionY
default int getSectionIndexFromSectionY(int pSectionIndex) -
getSectionYFromSectionIndex
default int getSectionYFromSectionIndex(int pSectionIndex) -
create
-