Interface DecorationMaterial


public interface DecorationMaterial
Provides some context about the block being decorated.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final DecorationMaterial
    A material without any special properties.
    static final DecorationMaterial
    A material for metal blocks that adds a BlockSetType.
    static final DecorationMaterial
    A material for stone blocks that adds a BlockSetType.
    static final DecorationMaterial
    A material for wood blocks that adds a BlockSetType and a WoodType.
  • Method Summary

    Modifier and Type
    Method
    Description
    init(net.minecraft.resources.ResourceLocation id)
    Initialises some material properties.
    boolean
    Gets whether the block is a metal block.
    boolean
    Gets whether the block is a stone block.
    boolean
    Gets whether the block is a wood block.
  • Field Details

    • GENERIC

      static final DecorationMaterial GENERIC
      A material without any special properties.
    • WOOD

      static final DecorationMaterial WOOD
      A material for wood blocks that adds a BlockSetType and a WoodType.
    • STONE

      static final DecorationMaterial STONE
      A material for stone blocks that adds a BlockSetType.
    • METAL

      static final DecorationMaterial METAL
      A material for metal blocks that adds a BlockSetType.
  • Method Details

    • isWood

      boolean isWood()
      Gets whether the block is a wood block.
    • isStone

      boolean isStone()
      Gets whether the block is a stone block.
    • isMetal

      boolean isMetal()
      Gets whether the block is a metal block.
    • init

      DecorationMaterial.MaterialProperties init(net.minecraft.resources.ResourceLocation id)
      Initialises some material properties.
      Parameters:
      id - The id of the DecoratedBlock.