geforkt von Mirrors/Paper
SPIGOT-918: Add constructor for DyeColor to Dye
By: t7seven7t <t7seven7t@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
5ec19def07
Commit
5232a2cbba
@ -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
|
||||
*
|
||||
|
@ -57,6 +57,7 @@ public class DyeColorTest {
|
||||
@Test
|
||||
public void getDyeDyeColor() {
|
||||
testColorable(new Dye(Material.INK_SACK, dye.getDyeData()));
|
||||
testColorable(new Dye(dye));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren