BlockState, Metadatablepublic 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, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, updategetMetadata, hasMetadata, removeMetadata, setMetadatajava.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.