|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData org.bukkit.material.Command
public class Command
Represents a command block
Constructor Summary | |
---|---|
Command()
|
|
Command(int type)
Deprecated. Magic value |
|
Command(int type,
byte data)
Deprecated. Magic value |
|
Command(Material type)
|
|
Command(Material type,
byte data)
Deprecated. Magic value |
Method Summary | |
---|---|
Command |
clone()
|
boolean |
isPowered()
Gets the current state of this Material, indicating if it's powered or unpowered |
void |
setPowered(boolean bool)
Sets the current state of this Material |
String |
toString()
|
Methods inherited from class org.bukkit.material.MaterialData |
---|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Command()
@Deprecated public Command(int type)
public Command(Material type)
@Deprecated public Command(int type, byte data)
@Deprecated public Command(Material type, byte data)
Method Detail |
---|
public boolean isPowered()
isPowered
in interface Redstone
public void setPowered(boolean bool)
bool
- whether or not the command block is poweredpublic String toString()
toString
in class MaterialData
public Command clone()
clone
in class MaterialData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |