- 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 |
DyeColor |
getColor() |
Gets the color of this object.
|
void |
setColor(DyeColor color) |
Sets the color of this object to the specified DyeColor.
|
-
Method Details
-
Gets the color of this object.
- Returns:
- The DyeColor of this object.
-
Sets the color of this object to the specified DyeColor.
- Parameters:
color
- The color of the object, as a DyeColor.