public interface CommandBlock extends TileState
Modifier and Type | Method and Description |
---|---|
@NotNull String |
getCommand()
Gets the command that this CommandBlock will run when powered.
|
@NotNull String |
getName()
Gets the name of this CommandBlock.
|
void |
setCommand(@Nullable String command)
Sets the command that this CommandBlock will run when powered.
|
void |
setName(@Nullable String name)
Sets the name of this CommandBlock.
|
getPersistentDataContainer
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
@NotNull @NotNull String getCommand()
void setCommand(@Nullable @Nullable String command)
command
- Command that this CommandBlock will run when powered.@NotNull @NotNull String getName()
Copyright © 2021. All rights reserved.