Bukkit
1.4.7-R1.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
Pages
Dye.java
Go to the documentation of this file.
1
package
org.bukkit.material;
2
3
import
org.bukkit.DyeColor;
4
import
org.bukkit.Material;
5
9
public
class
Dye
extends
MaterialData
implements
Colorable
{
10
public
Dye
() {
11
super(
Material
.
INK_SACK
);
12
}
13
14
public
Dye
(
final
int
type) {
15
super(type);
16
}
17
18
public
Dye
(
final
Material
type) {
19
super(type);
20
}
21
22
public
Dye
(
final
int
type,
final
byte data) {
23
super(type, data);
24
}
25
26
public
Dye
(
final
Material
type,
final
byte data) {
27
super(type, data);
28
}
29
35
public
DyeColor
getColor
() {
36
return
DyeColor
.
getByDyeData
(
getData
());
37
}
38
44
public
void
setColor
(
DyeColor
color) {
45
setData
(color.
getDyeData
());
46
}
47
48
@Override
49
public
String
toString
() {
50
return
getColor
() +
" DYE("
+
getData
() +
")"
;
51
}
52
53
@Override
54
public
Dye
clone
() {
55
return
(
Dye
) super.
clone
();
56
}
57
}
org
bukkit
material
Dye.java
Generated on Sat May 25 2013 10:16:34 for Bukkit by
1.8.2