枚举 EmptyBlockView

    • 枚举常量详细资料

      • INSTANCE

        public static final EmptyBlockView INSTANCE
        Mappings:
        Namespace Name Mixin selector
        official a Lbvf;a:Lbvf;
        intermediary field_12294 Lnet/minecraft/class_2682;field_12294:Lnet/minecraft/class_2682;
        named INSTANCE Lnet/minecraft/world/EmptyBlockView;INSTANCE:Lnet/minecraft/world/EmptyBlockView;
    • 构造器详细资料

      • EmptyBlockView

        private 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 c Lbuv;c(Lgb;)Lchp;
        intermediary method_8321 Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
        named getBlockEntity Lnet/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_8320 Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
        named getBlockState Lnet/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 b Lbuv;b(Lgb;)Ldds;
        intermediary method_8316 Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
        named getFluidState Lnet/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_()I
        intermediary method_31607 Lnet/minecraft/class_5539;method_31607()I
        named getBottomY Lnet/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 m Lbvt;m()I
        intermediary method_31605 Lnet/minecraft/class_5539;method_31605()I
        named getHeight Lnet/minecraft/world/HeightLimitView;getHeight()I