Bukkit
1.4.7-R1.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
Pages
SandstoneType.java
Go to the documentation of this file.
1
package
org.bukkit;
2
3
import
java.util.Map;
4
5
import
com.google.common.collect.Maps;
6
10
public
enum
SandstoneType
{
11
CRACKED
(0x0),
12
GLYPHED
(0x1),
13
SMOOTH
(0x2);
14
15
private
final
byte data;
16
private
final
static
Map<Byte, SandstoneType> BY_DATA = Maps.newHashMap();
17
18
private
SandstoneType
(
final
int
data) {
19
this.data = (byte) data;
20
}
21
27
public
byte
getData
() {
28
return
data;
29
}
30
39
public
static
SandstoneType
getByData
(
final
byte data) {
40
return
BY_DATA.get(data);
41
}
42
43
static
{
44
for
(
SandstoneType
type : values()) {
45
BY_DATA.put(type.data, type);
46
}
47
}
48
}
org
bukkit
SandstoneType.java
Generated on Sun May 19 2013 16:17:08 for Bukkit by
1.8.2