public interface CommandBlock extends BlockState
Modifier and Type | Method and Description |
---|---|
String |
getCommand()
Gets the command that this CommandBlock will run when powered.
|
String |
getName()
Gets the name of this CommandBlock.
|
void |
setCommand(String command)
Sets the command that this CommandBlock will run when powered.
|
void |
setName(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
String getCommand()
void setCommand(String command)
command
- Command that this CommandBlock will run when powered.String getName()
void setName(String name)
name
- New name for this CommandBlock.Copyright © 2022. All rights reserved.