Interface Snowable

All Superinterfaces:
BlockData

public interface Snowable extends BlockData
A block state carrying the snowy property: whether snow covers the block, like grass and podzol.

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

Since:
0.1.0
  • Method Details

    • isSnowy

      default boolean isSnowy()
      Returns true if the block is covered with snow.
      Returns:
      true if the block is covered with snow
      Since:
      0.1.0
    • withSnowy

      default Snowable withSnowy(boolean snowy)
      Returns the same block with another snowy value.
      Parameters:
      snowy - true to cover the block with snow
      Returns:
      the same block with another snowy value
      Since:
      0.1.0