setCommand

public abstract void setCommand(String command)

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.

Parameters

command

Command that this CommandBlock will run when powered.