Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.block.CommandBlock Interface Reference
Inheritance diagram for org.bukkit.block.CommandBlock:
org.bukkit.block.BlockState org.bukkit.metadata.Metadatable

Public Member Functions

String getCommand ()
 
void setCommand (String command)
 
String getName ()
 
void setName (String name)
 
- Public Member Functions inherited from org.bukkit.block.BlockState
Block getBlock ()
 
MaterialData getData ()
 
Material getType ()
 
int getTypeId ()
 
byte getLightLevel ()
 
World getWorld ()
 
int getX ()
 
int getY ()
 
int getZ ()
 
Location getLocation ()
 
Location getLocation (Location loc)
 
Chunk getChunk ()
 
void setData (MaterialData data)
 
void setType (Material type)
 
boolean setTypeId (int type)
 
boolean update ()
 
boolean update (boolean force)
 
boolean update (boolean force, boolean applyPhysics)
 
byte getRawData ()
 
void setRawData (byte data)
 

Detailed Description

Definition at line 3 of file CommandBlock.java.

Member Function Documentation

String org.bukkit.block.CommandBlock.getCommand ( )

Gets the command that this CommandBlock will run when powered. This will never return null. If the CommandBlock does not have a command, an empty String will be returned instead.

Returns
Command that this CommandBlock will run when powered.
String org.bukkit.block.CommandBlock.getName ( )

Gets the name of this CommandBlock. The name is used with commands that this CommandBlock executes. This name will never be null, and by default is "@".

Returns
Name of this CommandBlock.
void org.bukkit.block.CommandBlock.setCommand ( String  command)

Sets the command that this CommandBlock will run when powered. Setting the command to null is the same as setting it to an empty String.

Parameters
commandCommand that this CommandBlock will run when powered.
void org.bukkit.block.CommandBlock.setName ( String  name)

Sets the name of this CommandBlock. The name is used with commands that this CommandBlock executes. Setting the name to null is the same as setting it to "@".

Parameters
nameNew name for this CommandBlock.

The documentation for this interface was generated from the following file: