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 LevelHeightAccessor
create
(int pMinBuildHeight, int pHeight) int
default int
default int
getMaxY()
default int
int
getMinY()
default int
getSectionIndex
(int pY) default int
getSectionIndexFromSectionY
(int pSectionIndex) default int
default int
getSectionYFromSectionIndex
(int pSectionIndex) default boolean
isInsideBuildHeight
(int pY) default boolean
isOutsideBuildHeight
(int pY) default boolean
isOutsideBuildHeight
(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
-