类 Dye

所有已实现的接口:
Cloneable, Colorable

@Deprecated(since="1.14.1") public class Dye extends MaterialData implements Colorable
已过时。
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
代表染料。
  • 构造器详细资料

    • Dye

      public Dye()
      已过时。
    • Dye

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

      @Deprecated(since="1.6.2") public Dye(Material type, byte data)
      已过时。
      魔法值
      参数:
      type - 物品类型
      data - 原始数据值
    • Dye

      public Dye(DyeColor color)
      已过时。
      参数:
      color - 染料的颜色
  • 方法详细资料

    • getColor

      public DyeColor getColor()
      已过时。
      获取此染料的当前颜色。

      原文:Gets the current color of this dye

      指定者:
      getColor 在接口中 Colorable
      返回:
      此染料的 DyeColor
    • setColor

      public void setColor(DyeColor color)
      已过时。
      设置此染料的颜色。

      原文:Sets the color of this dye

      指定者:
      setColor 在接口中 Colorable
      参数:
      color - 此染料的新颜色
    • toString

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

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