@@ -35,6 +35,7 @@ public class Wool extends MaterialData implements Colorable {
|
||||
*
|
||||
* @return DyeColor of this dye
|
||||
*/
|
||||
@Override
|
||||
public DyeColor getColor() {
|
||||
return DyeColor.getByWoolData(getData());
|
||||
}
|
||||
@@ -44,6 +45,7 @@ public class Wool extends MaterialData implements Colorable {
|
||||
*
|
||||
* @param color New color of this dye
|
||||
*/
|
||||
@Override
|
||||
public void setColor(DyeColor color) {
|
||||
setData(color.getWoolData());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user