Class Coal

All Implemented Interfaces:
Cloneable

@Deprecated(since="1.13", forRemoval=true) public class Coal extends MaterialData
Deprecated, for removal: This API element is subject to removal in a future version.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents the different types of coals.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Coal(CoalType type)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Coal(Material type)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Coal(Material type, byte data)
    Deprecated.
    Magic value
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the current type of this coal
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the type of this coal
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class org.bukkit.material.MaterialData

    equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Coal

      public Coal()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Coal

      public Coal(CoalType type)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Coal

      public Coal(Material type)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Coal

      @Deprecated(since="1.6.2") public Coal(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
  • Method Details

    • getType

      public CoalType getType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the current type of this coal
      Returns:
      CoalType of this coal
    • setType

      public void setType(CoalType type)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the type of this coal
      Parameters:
      type - New type of this coal
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class MaterialData
    • clone

      public Coal clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData