接口 Colorable

所有已知子接口:
Bed, Sheep, Shulker
所有已知实现类:
Dye, Wool

public interface Colorable
代表可染色的物品.
  • 方法概要

    修饰符和类型
    方法
    说明
    获取这个物品的颜色.
    void
    设置这个物品的颜色.
  • 方法详细资料

    • getColor

      DyeColor getColor()
      获取这个物品的颜色.

      原文:Gets the color of this object.

      返回:
      物品的DyeColor
    • setColor

      void setColor(DyeColor color)
      设置这个物品的颜色.

      原文:Sets the color of this object to the specified DyeColor.

      参数:
      color - 物品的DyeColor