public class Wool extends MaterialData implements Colorable
构造器和说明 |
---|
Wool() |
Wool(DyeColor color) |
Wool(int type)
已过时。
不安全的参数
|
Wool(int type,
byte data)
已过时。
不安全的参数
|
Wool(Material type) |
Wool(Material type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
Wool |
clone() |
DyeColor |
getColor()
获取颜色。
|
void |
setColor(DyeColor color)
设置颜色。
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Wool()
public Wool(DyeColor color)
@Deprecated public Wool(int type)
type
- the raw type idpublic Wool(Material type)
@Deprecated public Wool(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Wool(Material type, byte data)
type
- the typedata
- the raw data valuepublic 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 Wool clone()
clone
在类中 MaterialData