public class Dye extends MaterialData implements Colorable
构造器和说明 |
---|
Dye() |
Dye(DyeColor color) |
Dye(int type)
已过时。
不安全的参数
|
Dye(int type,
byte data)
已过时。
不安全的参数
|
Dye(Material type) |
Dye(Material type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
Dye |
clone() |
DyeColor |
getColor()
获取这个染料的颜色.
|
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
- 染料的颜色public DyeColor getColor()
原文:Gets the current color of this dye
public void setColor(DyeColor color)
原文: Sets the color of this dye
public java.lang.String toString()
toString
在类中 MaterialData
public Dye clone()
clone
在类中 MaterialData