Sets the color of this dye @param color New color of this dye
(DyeColor color)
| 42 | * @param color New color of this dye |
| 43 | */ |
| 44 | public void setColor(DyeColor color) { |
| 45 | setData((byte) (15 - color.getData())); |
| 46 | } |
| 47 | |
| 48 | @Override |
| 49 | public String toString() { |