Package org.bukkit.material
Class Command
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Command
-
@Deprecated public class Command extends MaterialData implements Redstone
Deprecated.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.Represents a command block
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Command
clone()
Deprecated.boolean
isPowered()
Deprecated.Gets the current state of this Material, indicating if it's powered or unpoweredvoid
setPowered(boolean bool)
Deprecated.Sets the current state of this MaterialString
toString()
Deprecated.-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Command
public Command()
Deprecated.
-
Command
public Command(Material type)
Deprecated.
-
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()
Deprecated.Gets the current state of this Material, indicating if it's powered or unpowered
-
setPowered
public void setPowered(boolean bool)
Deprecated.Sets the current state of this Material- Parameters:
bool
- whether or not the command block is powered
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classMaterialData
-
clone
public Command clone()
Deprecated.- Overrides:
clone
in classMaterialData
-
-