BlockState, Metadatable, PersistentDataHolder, TileStatepublic interface CommandBlock extends TileState
| Modifier and Type | Method | 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, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, updategetMetadata, hasMetadata, removeMetadata, setMetadatagetPersistentDataContainer@NotNull String getCommand()
void setCommand(@Nullable
String command)
command - Command that this CommandBlock will run when powered.@NotNull String getName()
void setName(@Nullable
String name)
name - New name for this CommandBlock.Copyright © 2019. All rights reserved.