public class Command extends MaterialData implements Redstone
| Constructor and Description | 
|---|
| 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 | 
| Modifier and Type | Method and Description | 
|---|---|
| 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() | 
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Command()
@Deprecated public Command(int type)
type - the raw type idpublic Command(Material type)
@Deprecated public Command(int type, byte data)
type - the raw type iddata - the raw data value@Deprecated public Command(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isPowered()
public void setPowered(boolean bool)
bool - whether or not the command block is poweredpublic String toString()
toString in class MaterialDatapublic Command clone()
clone in class MaterialDataCopyright © 2017. All rights reserved.