Update Update Bukkit to 1.7.2

By: mbax <matt@phozop.net>
This commit is contained in:
Bukkit/Spigot
2013-11-13 17:53:49 -07:00
parent 1945a3b7ea
commit aa66c8025a
19 changed files with 327 additions and 205 deletions

View File

@@ -3,6 +3,7 @@ package org.bukkit.entity;
import java.util.HashMap;
import java.util.Map;
import org.bukkit.entity.minecart.CommandMinecart;
import org.bukkit.entity.minecart.HopperMinecart;
import org.bukkit.entity.minecart.SpawnerMinecart;
import org.bukkit.entity.minecart.RideableMinecart;
@@ -80,6 +81,10 @@ public enum EntityType {
*/
FALLING_BLOCK("FallingSand", FallingBlock.class, 21, false),
FIREWORK("FireworksRocketEntity", Firework.class, 22, false),
/**
* @see CommandMinecart
*/
MINECART_COMMAND("MinecartCommandBlock", CommandMinecart.class, 40),
/**
* A placed boat.
*/

View File

@@ -0,0 +1,36 @@
package org.bukkit.entity.minecart;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Minecart;
public interface CommandMinecart extends Minecart, CommandSender {
/**
* Gets the command that this CommandMinecart will run when activated.
* This will never return null. If the CommandMinecart does not have a
* command, an empty String will be returned instead.
*
* @return Command that this CommandMinecart will run when powered.
*/
public String getCommand();
/**
* 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.
*
* @param command Command that this CommandMinecart will run when
* activated.
*/
public void setCommand(String command);
/**
* Sets the name of this CommandMinecart. The name is used with commands
* that this CommandMinecart executes. Setting the name to null is the
* same as setting it to "@".
*
* @param name New name for this CommandMinecart.
*/
public void setName(String name);
}