Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
CommandMinecart.java
1 package org.bukkit.entity.minecart;
2 
5 
6 public interface CommandMinecart extends Minecart, CommandSender {
7 
8  /**
9  * Gets the command that this CommandMinecart will run when activated.
10  * This will never return null. If the CommandMinecart does not have a
11  * command, an empty String will be returned instead.
12  *
13  * @return Command that this CommandMinecart will run when powered.
14  */
15  public String getCommand();
16 
17  /**
18  * Sets the command that this CommandMinecart will run when activated.
19  * Setting the command to null is the same as setting it to an empty
20  * String.
21  *
22  * @param command Command that this CommandMinecart will run when
23  * activated.
24  */
25  public void setCommand(String command);
26 
27  /**
28  * Sets the name of this CommandMinecart. The name is used with commands
29  * that this CommandMinecart executes. Setting the name to null is the
30  * same as setting it to "@".
31  *
32  * @param name New name for this CommandMinecart.
33  */
34  public void setName(String name);
35 
36 }