org.bukkit.material
Class Command

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.Command
All Implemented Interfaces:
Cloneable, Redstone

public class Command
extends MaterialData
implements Redstone

Represents a command block


Constructor Summary
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
 
Method Summary
 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()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Command

public Command()

Command

@Deprecated
public Command(int type)
Deprecated. Magic value


Command

public Command(Material type)

Command

@Deprecated
public Command(int type,
                          byte data)
Deprecated. Magic value


Command

@Deprecated
public Command(Material type,
                          byte data)
Deprecated. Magic value

Method Detail

isPowered

public boolean isPowered()
Gets the current state of this Material, indicating if it's powered or unpowered

Specified by:
isPowered in interface Redstone
Returns:
true if powered, otherwise false

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:
toString in class MaterialData

clone

public Command clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.