Interface BlockItemDataProperties


@NullMarked @Experimental @NonExtendable public interface BlockItemDataProperties
Holds the BlockData properties of a block item.
See Also:
  • Method Details

    • blockItemStateProperties

      @Contract(value="-> new", pure=true) static BlockItemDataProperties.Builder blockItemStateProperties()
    • createBlockData

      @Contract(pure=true) BlockData createBlockData(BlockType blockType)
      Creates a new BlockData instance for the given BlockType.
      Parameters:
      blockType - the block type
      Returns:
      the block data
    • applyTo

      @Contract(pure=true) BlockData applyTo(BlockData blockData)
      Applies the properties to the given BlockData. Doesn't mutate the parameter, but returns a new instance with the properties applied.
      Parameters:
      blockData - the block data to apply the properties to
      Returns:
      the block data with the properties applied