org.bukkit.material
Class Command
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Command
- All Implemented Interfaces:
- Cloneable, Redstone
public class Command
- extends MaterialData
- implements Redstone
Represents a command block
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)
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.