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
,EmptyBlockGetter
,EmptyLevelChunk
,ImposterProtoChunk
,Level
,LevelChunk
,PathNavigationRegion
,ProtoChunk
,RenderChunkRegion
,ServerLevel
,WorldGenRegion
public interface LevelHeightAccessor
-
Method Summary
Modifier and TypeMethodDescriptionstatic LevelHeightAccessor
create
(int minBuildHeight, int height) int
default int
default int
int
default int
default int
getSectionIndex
(int y) default int
getSectionIndexFromSectionY
(int sectionIndex) default int
default int
getSectionYFromSectionIndex
(int sectionIndex) default boolean
isOutsideBuildHeight
(int y) default boolean
-
Method Details
-
getHeight
int getHeight() -
getMinBuildHeight
int getMinBuildHeight() -
getMaxBuildHeight
default int getMaxBuildHeight() -
getSectionsCount
default int getSectionsCount() -
getMinSection
default int getMinSection() -
getMaxSection
default int getMaxSection() -
isOutsideBuildHeight
-
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
-