Interface Lightable

All Superinterfaces:
BlockData

public interface Lightable extends BlockData
A block state carrying the lit property: whether the block glows, like a furnace in use.

Block states are immutable: with... methods return another state and leave this one untouched.

Since:
0.1.0
  • Method Details

    • isLit

      default boolean isLit()
      Returns true if the block is lit.
      Returns:
      true if the block is lit
      Since:
      0.1.0
    • withLit

      default Lightable withLit(boolean lit)
      Returns the same block with another lit value.
      Parameters:
      lit - true to light the block
      Returns:
      the same block with another lit value
      Since:
      0.1.0