setCommand

public abstract void setCommand(String command)

Sets the command that this CommandMinecart will run when activated. Setting the command to null is the same as setting it to an empty String.

Parameters

command

Command that this CommandMinecart will run when activated.