接口 Colorable

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

public interface Colorable
An object that can be colored.
  • 方法概要

    修饰符和类型
    方法
    说明
    Gets the color of this object.
    void
    Sets the color of this object to the specified DyeColor.
  • 方法详细资料

    • getColor

      Gets the color of this object.
      This may be null to represent the default color of an object, if the object has a special default color (e.g Shulkers).
      返回:
      The DyeColor of this object.
    • setColor

      void setColor(DyeColor color)
      Sets the color of this object to the specified DyeColor.
      This may be null to represent the default color of an object, if the object has a special default color (e.g Shulkers).
      参数:
      color - The color of the object, as a DyeColor.
      抛出:
      NullPointerException - if argument is null and this implementation does not support null