Package org.bukkit.material
Class Command
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Command
-
public class Command extends MaterialData implements Redstone
Represents a command block
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier 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 MaterialStringtoString()-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Command
public Command()
-
Command
public Command(Material type)
-
Command
@Deprecated public Command(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Detail
-
isPowered
public boolean isPowered()
Gets the current state of this Material, indicating if it's powered or unpowered
-
setPowered
public void setPowered(boolean bool)
Sets the current state of this Material- Parameters:
bool- whether or not the command block is powered
-
toString
public String toString()
- Overrides:
toStringin classMaterialData
-
clone
public Command clone()
- Overrides:
clonein classMaterialData
-
-