枚举 EmptyBlockView
- java.lang.Object
-
- java.lang.Enum<EmptyBlockView>
-
- net.minecraft.world.EmptyBlockView
-
- 所有已实现的接口:
Serializable,Comparable<EmptyBlockView>,BlockView,HeightLimitView
public enum EmptyBlockView extends Enum<EmptyBlockView> implements BlockView
- Mappings:
Namespace Name official bvfintermediary net/minecraft/class_2682named net/minecraft/world/EmptyBlockView
-
-
枚举常量概要
枚举常量 枚举常量 说明 INSTANCE
-
构造器概要
构造器 限定符 构造器 说明 privateEmptyBlockView()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 @Nullable BlockEntitygetBlockEntity(BlockPos pos)BlockStategetBlockState(BlockPos pos)intgetBottomY()Returns the bottom Y level, or height, inclusive, of this view.FluidStategetFluidState(BlockPos pos)intgetHeight()static EmptyBlockViewvalueOf(String name)返回带有指定名称的该类型的枚举常量。static EmptyBlockView[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。-
从类继承的方法 java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
从接口继承的方法 net.minecraft.world.BlockView
getBlockEntity, getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
-
从接口继承的方法 net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
-
-
-
枚举常量详细资料
-
INSTANCE
public static final EmptyBlockView INSTANCE
- Mappings:
Namespace Name Mixin selector official aLbvf;a:Lbvf;intermediary field_12294Lnet/minecraft/class_2682;field_12294:Lnet/minecraft/class_2682;named INSTANCELnet/minecraft/world/EmptyBlockView;INSTANCE:Lnet/minecraft/world/EmptyBlockView;
-
-
方法详细资料
-
values
public static EmptyBlockView[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (EmptyBlockView c : EmptyBlockView.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static EmptyBlockView valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getBlockEntity
@Nullable public @Nullable BlockEntity getBlockEntity(BlockPos pos)
- 指定者:
getBlockEntity在接口中BlockView- Mappings:
Namespace Name Mixin selector official cLbuv;c(Lgb;)Lchp;intermediary method_8321Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;named getBlockEntityLnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
-
getBlockState
public BlockState getBlockState(BlockPos pos)
- 指定者:
getBlockState在接口中BlockView- Mappings:
Namespace Name Mixin selector official d_Lbuv;d_(Lgb;)Lcjr;intermediary method_8320Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getFluidState
public FluidState getFluidState(BlockPos pos)
- 指定者:
getFluidState在接口中BlockView- Mappings:
Namespace Name Mixin selector official bLbuv;b(Lgb;)Ldds;intermediary method_8316Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;named getFluidStateLnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
-
getBottomY
public int getBottomY()
Returns the bottom Y level, or height, inclusive, of this view.- 指定者:
getBottomY在接口中HeightLimitView- 另请参阅:
HeightLimitView.getTopY(),HeightLimitView.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
-
getHeight
public 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.
- 指定者:
getHeight在接口中HeightLimitView- 返回:
- the difference in the minimum and maximum height
- 另请参阅:
HeightLimitView.getBottomY(),HeightLimitView.getTopY()- Mappings:
Namespace Name Mixin selector official mLbvt;m()Iintermediary method_31605Lnet/minecraft/class_5539;method_31605()Inamed getHeightLnet/minecraft/world/HeightLimitView;getHeight()I
-
-