Package org.bukkit.material
Class Command
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Command
- All Implemented Interfaces:
- java.lang.Cloneable,- Redstone
public class Command extends MaterialData implements Redstone
Represents a command block
- 
Constructor Summary
- 
Method SummaryModifier and Type Method Description Commandclone()booleanisPowered()Gets the current state of this Material, indicating if it's powered or unpoweredvoidsetPowered(boolean bool)Sets the current state of this Materialjava.lang.StringtoString()Methods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
Commandpublic Command()
- 
Command@Deprecated public Command(int type)Deprecated.Magic value- Parameters:
- type- the raw type id
 
- 
Command
- 
Command@Deprecated public Command(int type, byte data)Deprecated.Magic value- Parameters:
- type- the raw type id
- data- the raw data value
 
- 
CommandDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
isPoweredpublic boolean isPowered()Gets the current state of this Material, indicating if it's powered or unpowered
- 
setPoweredpublic void setPowered(boolean bool)Sets the current state of this Material- Parameters:
- bool- whether or not the command block is powered
 
- 
toStringpublic java.lang.String toString()- Overrides:
- toStringin class- MaterialData
 
- 
clone- Overrides:
- clonein class- MaterialData
 
 
-