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 Summary
Modifier and Type Method Description Command
clone()
boolean
isPowered()
Gets the current state of this Material, indicating if it's powered or unpoweredvoid
setPowered(boolean bool)
Sets the current state of this Materialjava.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Command
public 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 iddata
- the raw data value
-
Command
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
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 java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-