getCommand

public abstract String getCommand()

Gets the command that this CommandBlock will run when powered. This will never return null. If the CommandBlock does not have getClassById command, an empty String will be returned instead.

Return

Command that this CommandBlock will run when powered.