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, toItemStack
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)
public boolean isPowered()
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
Copyright © 2015. All rights reserved.