Enum Class EmptyBlockView

java.lang.Object
java.lang.Enum<EmptyBlockView>
net.minecraft.world.EmptyBlockView
All Implemented Interfaces:
Serializable, Comparable<EmptyBlockView>, Constable, BlockView, HeightLimitView

public enum EmptyBlockView extends Enum<EmptyBlockView> implements BlockView
Mappings:
Namespace Name
official cgm
intermediary net/minecraft/class_2682
named net/minecraft/world/EmptyBlockView
  • Enum Constant Details

    • INSTANCE

      public static final EmptyBlockView INSTANCE
      Mappings:
      Namespace Name Mixin selector
      official a Lcgm;a:Lcgm;
      intermediary field_12294 Lnet/minecraft/class_2682;field_12294:Lnet/minecraft/class_2682;
      named INSTANCE Lnet/minecraft/world/EmptyBlockView;INSTANCE:Lnet/minecraft/world/EmptyBlockView;
  • Constructor Details

    • EmptyBlockView

      private EmptyBlockView()
  • Method Details

    • values

      public static EmptyBlockView[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EmptyBlockView valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getBlockEntity

      @Nullable public @Nullable BlockEntity getBlockEntity(BlockPos pos)
      Returns the block entity at pos, or null if there is none.
      Specified by:
      getBlockEntity in interface BlockView
      Returns:
      the block entity at pos, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      official c_ Lcgd;c_(Lgt;)Lcti;
      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)
      Returns the block state at pos.
      Specified by:
      getBlockState in interface BlockView
      Returns:
      the block state at pos
      Mappings:
      Namespace Name Mixin selector
      official a_ Lcgd;a_(Lgt;)Lcvo;
      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)
      Returns the fluid state at pos.
      Specified by:
      getFluidState in interface BlockView
      Returns:
      the fluid state at pos
      Mappings:
      Namespace Name Mixin selector
      official b_ Lcgd;b_(Lgt;)Ldpv;
      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.
      Specified by:
      getBottomY in interface HeightLimitView
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official u_ Lcgz;u_()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.

      Specified by:
      getHeight in interface HeightLimitView
      Returns:
      the difference in the minimum and maximum height
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official v_ Lcgz;v_()I
      intermediary method_31605 Lnet/minecraft/class_5539;method_31605()I
      named getHeight Lnet/minecraft/world/HeightLimitView;getHeight()I