java.lang.Cloneable
, Colorable
public class Dye extends MaterialData implements Colorable
Constructor | Description |
---|---|
Dye() |
|
Dye(int type) |
Deprecated.
Magic value
|
Dye(int type,
byte data) |
Deprecated.
Magic value
|
Dye(DyeColor color) |
|
Dye(Material type) |
|
Dye(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | Description |
---|---|---|
Dye |
clone() |
|
DyeColor |
getColor() |
Gets the current color of this dye
|
void |
setColor(DyeColor color) |
Sets the color of this dye
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Dye()
@Deprecated public Dye(int type)
type
- the raw type idpublic Dye(Material type)
@Deprecated public Dye(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Dye(Material type, byte data)
type
- the typedata
- the raw data valuepublic Dye(DyeColor color)
color
- color of the dyepublic DyeColor getColor()
public void setColor(DyeColor color)
public java.lang.String toString()
toString
in class MaterialData
public Dye clone()
clone
in class MaterialData
Copyright © 2018. All rights reserved.