BlockState
, Metadatable
public interface CommandBlock extends BlockState
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getCommand() |
Gets the command that this CommandBlock will run when powered.
|
java.lang.String |
getName() |
Gets the name of this CommandBlock.
|
void |
setCommand(java.lang.String command) |
Sets the command that this CommandBlock will run when powered.
|
void |
setName(java.lang.String name) |
Sets the name of this CommandBlock.
|
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
java.lang.String getCommand()
void setCommand(java.lang.String command)
command
- Command that this CommandBlock will run when powered.java.lang.String getName()
void setName(java.lang.String name)
name
- New name for this CommandBlock.Copyright © 2018. All rights reserved.