Interface Colorable

All Known Subinterfaces:
Sheep
All Known Implementing Classes:
Dye, Wool

public interface Colorable
An object that can be colored.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the color of this object.
    void
    Sets the color of this object to the specified DyeColor.
  • Method Details

    • getColor

      DyeColor getColor()
      Gets the color of this object.
      Returns:
      The DyeColor of this object.
    • setColor

      void setColor(DyeColor color)
      Sets the color of this object to the specified DyeColor.
      Parameters:
      color - The color of the object, as a DyeColor.