Interface FlatLayerInfo

All Superinterfaces:
Wrapper

@NullMarked @AsOf("3.0.0") public interface FlatLayerInfo extends Wrapper
Minecraft's FlatLayerInfo.
Since:
3.0.0
  • Field Details

  • Method Details

    • block

      @AsOf("3.0.0") Material block()
      The block to place.
      Returns:
      the block
      Since:
      3.0.0
    • height

      @AsOf("3.0.0") int height()
      The height of the layer.
      Returns:
      the height
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default FlatLayerInfo.Builder toBuilder()
      Creates a new builder for this object.
      Returns:
      a new builder
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static FlatLayerInfo of(Material block, int height)
      Creates a new FlatLayerInfo.
      Parameters:
      block - the block to place
      height - the height of the layer
      Returns:
      a new FlatLayerInfo
      Since:
      3.0.0
    • decode

      @AsOf("3.3.0") static FlatLayerInfo decode(Object minecraftLayer)
      Reads Minecraft flat-layer information.
      Parameters:
      minecraftLayer - the flat layer to read
      Returns:
      the decoded flat layer
      Since:
      3.3.0
    • builder

      @AsOf("3.0.0") static FlatLayerInfo.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0