Enum Class EmptyBlockGetter

java.lang.Object
java.lang.Enum<EmptyBlockGetter>
net.minecraft.world.level.EmptyBlockGetter
All Implemented Interfaces:
Serializable, Comparable<EmptyBlockGetter>, Constable, BlockGetter, LevelHeightAccessor, IBlockGetterExtension

public enum EmptyBlockGetter extends Enum<EmptyBlockGetter> implements BlockGetter
  • Enum Constant Details

  • Constructor Details

    • EmptyBlockGetter

      private EmptyBlockGetter()
  • Method Details

    • values

      public static EmptyBlockGetter[] 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 EmptyBlockGetter 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 BlockEntity getBlockEntity(BlockPos pPos)
      Specified by:
      getBlockEntity in interface BlockGetter
    • getBlockState

      public BlockState getBlockState(BlockPos pPos)
      Specified by:
      getBlockState in interface BlockGetter
    • getFluidState

      public FluidState getFluidState(BlockPos pPos)
      Specified by:
      getFluidState in interface BlockGetter
    • getMinY

      public int getMinY()
      Specified by:
      getMinY in interface LevelHeightAccessor
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface LevelHeightAccessor