Bukkit
1.4.7-R1.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
Pages
Crops.java
Go to the documentation of this file.
1
package
org.bukkit.material;
2
3
import
org.bukkit.CropState;
4
import
org.bukkit.Material;
5
9
public
class
Crops
extends
MaterialData
{
10
public
Crops
() {
11
super(
Material
.
CROPS
);
12
}
13
14
public
Crops
(
CropState
state) {
15
this
();
16
setState
(state);
17
}
18
19
public
Crops
(
final
int
type) {
20
super(type);
21
}
22
23
public
Crops
(
final
Material
type) {
24
super(type);
25
}
26
27
public
Crops
(
final
int
type,
final
byte data) {
28
super(type, data);
29
}
30
31
public
Crops
(
final
Material
type,
final
byte data) {
32
super(type, data);
33
}
34
40
public
CropState
getState
() {
41
return
CropState
.
getByData
(
getData
());
42
}
43
49
public
void
setState
(
CropState
state) {
50
setData
(state.
getData
());
51
}
52
53
@Override
54
public
String
toString
() {
55
return
getState
() +
" "
+ super.toString();
56
}
57
58
@Override
59
public
Crops
clone
() {
60
return
(
Crops
) super.
clone
();
61
}
62
}
org
bukkit
material
Crops.java
Generated on Thu May 23 2013 09:16:33 for Bukkit by
1.8.2