mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 03:35:51 -07:00
SPIGOT-918: Add constructor for DyeColor to Dye
By: t7seven7t <t7seven7t@gmail.com>
This commit is contained in:
@@ -44,6 +44,13 @@ public class Dye extends MaterialData implements Colorable {
|
||||
super(type, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param color color of the dye
|
||||
*/
|
||||
public Dye(final DyeColor color) {
|
||||
super(Material.INK_SACK, color.getDyeData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current color of this dye
|
||||
*
|
||||
|
Reference in New Issue
Block a user