Bukkit
1.4.7-R1.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
Pages
RedstoneTorch.java
Go to the documentation of this file.
1
package
org.bukkit.material;
2
3
import
org.bukkit.Material;
4
8
public
class
RedstoneTorch
extends
Torch
implements
Redstone
{
9
public
RedstoneTorch
() {
10
super(
Material
.
REDSTONE_TORCH_ON
);
11
}
12
13
public
RedstoneTorch
(
final
int
type) {
14
super(type);
15
}
16
17
public
RedstoneTorch
(
final
Material
type) {
18
super(type);
19
}
20
21
public
RedstoneTorch
(
final
int
type,
final
byte data) {
22
super(type, data);
23
}
24
25
public
RedstoneTorch
(
final
Material
type,
final
byte data) {
26
super(type, data);
27
}
28
35
public
boolean
isPowered
() {
36
return
getItemType
() ==
Material
.
REDSTONE_TORCH_ON
;
37
}
38
39
@Override
40
public
String
toString
() {
41
return
super.toString() +
" "
+ (
isPowered
() ?
""
:
"NOT "
) +
"POWERED"
;
42
}
43
44
@Override
45
public
RedstoneTorch
clone
() {
46
return
(
RedstoneTorch
) super.
clone
();
47
}
48
}
org
bukkit
material
RedstoneTorch.java
Generated on Sat May 18 2013 23:16:36 for Bukkit by
1.8.2