@ -1,31 +1,32 @@
|
||||
declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace block {
|
||||
class CommandBlock {
|
||||
// @ts-ignore
|
||||
interface CommandBlock extends org.bukkit.block.TileState {
|
||||
/**
|
||||
* Gets the command that this CommandBlock will run when powered.
|
||||
* This will never return null. If the CommandBlock does not have a
|
||||
* command, an empty String will be returned instead.
|
||||
*/
|
||||
public getCommand(): string;
|
||||
getCommand(): string;
|
||||
/**
|
||||
* Sets the command that this CommandBlock will run when powered.
|
||||
* Setting the command to null is the same as setting it to an empty
|
||||
* String.
|
||||
*/
|
||||
public setCommand(command: string): void;
|
||||
setCommand(command: string): void;
|
||||
/**
|
||||
* Gets the name of this CommandBlock. The name is used with commands
|
||||
* that this CommandBlock executes. This name will never be null, and
|
||||
* by default is "@".
|
||||
*/
|
||||
public getName(): string;
|
||||
getName(): string;
|
||||
/**
|
||||
* Sets the name of this CommandBlock. The name is used with commands
|
||||
* that this CommandBlock executes. Setting the name to null is the
|
||||
* same as setting it to "@".
|
||||
*/
|
||||
public setName(name: string): void;
|
||||
setName(name: string): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user