Class Coal

  • All Implemented Interfaces:
    Cloneable

    @Deprecated
    public class Coal
    extends MaterialData
    Deprecated.
    all usage of MaterialData is deprecated and subject to removal. Use BlockData.
    Represents the different types of coals.
    • Constructor Detail

      • Coal

        public Coal()
        Deprecated.
      • Coal

        public Coal​(CoalType type)
        Deprecated.
      • Coal

        public Coal​(Material type)
        Deprecated.
      • Coal

        @Deprecated
        public Coal​(Material type,
                    byte data)
        Deprecated.
        Magic value
        Parameters:
        type - the type
        data - the raw data value
    • Method Detail

      • getType

        public CoalType getType()
        Deprecated.
        Gets the current type of this coal
        Returns:
        CoalType of this coal
      • setType

        public void setType​(CoalType type)
        Deprecated.
        Sets the type of this coal
        Parameters:
        type - New type of this coal