接口 HeightLimitView
-
- 所有已知子接口:
BlockRenderView,BlockView,Chunk,CollisionView,LunarWorldView,RegistryWorldView,ServerWorldAccess,StructureWorldAccess,WorldAccess,WorldView
- 所有已知实现类:
ChunkCache,ChunkRegion,ChunkRendererRegion,ClientWorld,EmptyBlockView,EmptyChunk,ProtoChunk,ReadOnlyChunk,ServerWorld,World,WorldChunk
public interface HeightLimitViewA view with a height limit specification.- Mappings:
Namespace Name official bvtintermediary net/minecraft/class_5539named net/minecraft/world/HeightLimitView
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default intcountVerticalSections()Returns the number of sections, vertically, within this view.default intgetBottomSectionCoord()Returns the bottom section coordinate, inclusive, of this view.intgetBottomY()Returns the bottom Y level, or height, inclusive, of this view.intgetHeight()default intgetSectionIndex(int y)Returns a zero-based section index to which theylevel belongs.default intgetTopSectionCoord()Returns the top section coordinate, exclusive, of this view.default intgetTopY()Returns the top Y level, or height, exclusive, of this view.default booleanisOutOfHeightLimit(int y)Checks ifyis out of the height limit of this view.default booleanisOutOfHeightLimit(BlockPos pos)Checks ifposis out of the height limit of this view.default intsectionCoordToIndex(int coord)Converts a section coordinate to a zero-based section index.default intsectionIndexToCoord(int index)Converts a zero-based section index to a section coordinate.
-
-
-
方法详细资料
-
getHeight
int getHeight()
Returns the difference in the minimum and maximum height.This is the number of blocks that can be modified in any vertical column within the view, or the vertical size, in blocks, of the view.
- 返回:
- the difference in the minimum and maximum height
- 另请参阅:
getBottomY(),getTopY()- Mappings:
Namespace Name Mixin selector official mLbvt;m()Iintermediary method_31605Lnet/minecraft/class_5539;method_31605()Inamed getHeightLnet/minecraft/world/HeightLimitView;getHeight()I
-
getBottomY
int getBottomY()
Returns the bottom Y level, or height, inclusive, of this view.- 另请参阅:
getTopY(),getHeight()- Mappings:
Namespace Name Mixin selector official v_Lbvt;v_()Iintermediary method_31607Lnet/minecraft/class_5539;method_31607()Inamed getBottomYLnet/minecraft/world/HeightLimitView;getBottomY()I
-
getTopY
default int getTopY()
Returns the top Y level, or height, exclusive, of this view.- 另请参阅:
getBottomY(),getHeight()- Implementation Note:
- This implementation sums up the bottom Y and the height.
- Mappings:
Namespace Name Mixin selector official agLbvt;ag()Iintermediary method_31600Lnet/minecraft/class_5539;method_31600()Inamed getTopYLnet/minecraft/world/HeightLimitView;getTopY()I
-
countVerticalSections
default int countVerticalSections()
Returns the number of sections, vertically, within this view.- 返回:
- the number of sections
- 另请参阅:
getTopSectionCoord(),getBottomSectionCoord()- Mappings:
Namespace Name Mixin selector official ahLbvt;ah()Iintermediary method_32890Lnet/minecraft/class_5539;method_32890()Inamed countVerticalSectionsLnet/minecraft/world/HeightLimitView;countVerticalSections()I
-
getBottomSectionCoord
default int getBottomSectionCoord()
Returns the bottom section coordinate, inclusive, of this view.- 返回:
- the bottom section coordinate
- 另请参阅:
getTopSectionCoord(),getBottomY()- Implementation Note:
- This implementation passes the bottom Y
through
ChunkSectionPos.getSectionCoord(int). - Mappings:
Namespace Name Mixin selector official aiLbvt;ai()Iintermediary method_32891Lnet/minecraft/class_5539;method_32891()Inamed getBottomSectionCoordLnet/minecraft/world/HeightLimitView;getBottomSectionCoord()I
-
getTopSectionCoord
default int getTopSectionCoord()
Returns the top section coordinate, exclusive, of this view.- 返回:
- the top section coordinate
- 另请参阅:
getBottomSectionCoord(),getTopY()- Implementation Note:
- This implementation passes the top Y
through
ChunkSectionPos.getSectionCoord(int). - Mappings:
Namespace Name Mixin selector official ajLbvt;aj()Iintermediary method_31597Lnet/minecraft/class_5539;method_31597()Inamed getTopSectionCoordLnet/minecraft/world/HeightLimitView;getTopSectionCoord()I
-
isOutOfHeightLimit
default boolean isOutOfHeightLimit(BlockPos pos)
Checks ifposis out of the height limit of this view.- 参数:
pos- the position to check- 返回:
trueifposis out of bounds,falseotherwise.- 另请参阅:
isOutOfHeightLimit(int)- Mappings:
Namespace Name Mixin selector official tLbvt;t(Lgb;)Zintermediary method_31606Lnet/minecraft/class_5539;method_31606(Lnet/minecraft/class_2338;)Znamed isOutOfHeightLimitLnet/minecraft/world/HeightLimitView;isOutOfHeightLimit(Lnet/minecraft/util/math/BlockPos;)Z
-
isOutOfHeightLimit
default boolean isOutOfHeightLimit(int y)
Checks ifyis out of the height limit of this view.yis out of bounds if it's lower than the bottom or higher than or equal to the top.- 参数:
y- the Y level to check- 返回:
trueifyis out of bounds,falseotherwise.- Mappings:
Namespace Name Mixin selector official dLbvt;d(I)Zintermediary method_31601Lnet/minecraft/class_5539;method_31601(I)Znamed isOutOfHeightLimitLnet/minecraft/world/HeightLimitView;isOutOfHeightLimit(I)Z
-
getSectionIndex
default int getSectionIndex(int y)
Returns a zero-based section index to which theylevel belongs.- 返回:
- a zero-based index
- Mappings:
Namespace Name Mixin selector official eLbvt;e(I)Iintermediary method_31602Lnet/minecraft/class_5539;method_31602(I)Inamed getSectionIndexLnet/minecraft/world/HeightLimitView;getSectionIndex(I)I
-
sectionCoordToIndex
default int sectionCoordToIndex(int coord)
Converts a section coordinate to a zero-based section index.- 参数:
coord- the section coordinate- 返回:
- a zero-based index
- 另请参阅:
the inverse operation sectionIndexToCoord- Mappings:
Namespace Name Mixin selector official fLbvt;f(I)Iintermediary method_31603Lnet/minecraft/class_5539;method_31603(I)Inamed sectionCoordToIndexLnet/minecraft/world/HeightLimitView;sectionCoordToIndex(I)I
-
sectionIndexToCoord
default int sectionIndexToCoord(int index)
Converts a zero-based section index to a section coordinate.- 参数:
index- the zero-based section index- 返回:
- a section coordinate
- 另请参阅:
the inverse operation sectionCoordToIndex- Mappings:
Namespace Name Mixin selector official gLbvt;g(I)Iintermediary method_31604Lnet/minecraft/class_5539;method_31604(I)Inamed sectionIndexToCoordLnet/minecraft/world/HeightLimitView;sectionIndexToCoord(I)I
-
-