Enum Class EmptyBlockGetter

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

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 p_45867_)
      Specified by:
      getBlockEntity in interface BlockGetter
    • getBlockState

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

      public FluidState getFluidState(BlockPos p_45865_)
      Specified by:
      getFluidState in interface BlockGetter
    • getMinBuildHeight

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

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