类 Coal

所有已实现的接口:
Cloneable

@Deprecated(since="1.14.1") public class Coal extends MaterialData
已过时。
所有 MaterialData 的用法均已弃用并可能被移除。 请使用 BlockData。
代表不同类型的煤炭。
  • 构造器详细资料

    • Coal

      public Coal()
      已过时。
    • Coal

      public Coal(CoalType type)
      已过时。
    • Coal

      public Coal(Material type)
      已过时。
    • Coal

      @Deprecated(since="1.6.2") public Coal(Material type, byte data)
      已过时。
      魔法值
      参数:
      type - 类型
      data - 原始数据值
  • 方法详细资料

    • getType

      public CoalType getType()
      已过时。
      获取此煤炭的当前类型。
      返回:
      此煤炭的 CoalType

      原文:Gets the current type of this coal

    • setType

      public void setType(CoalType type)
      已过时。
      设置此煤炭的类型。
      参数:
      type - 此煤炭的新类型

      原文:Sets the type of this coal

    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 MaterialData
    • clone

      public Coal clone()
      已过时。
      覆盖:
      clone 在类中 MaterialData