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)
           
Command(int type, byte data)
           
Command(Material type)
           
Command(Material type, byte data)
           
 
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

public Command(int type)

Command

public Command(Material type)

Command

public Command(int type,
               byte data)

Command

public Command(Material type,
               byte data)
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.