Update Bukkit for Minecraft 1.5

By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
Bukkit/Spigot
2013-03-13 17:32:25 -05:00
parent 69740791f7
commit 4f2b86fd8b
7 changed files with 108 additions and 5 deletions

View File

@@ -69,14 +69,19 @@ public enum EntityType {
*/
FALLING_BLOCK("FallingSand", FallingBlock.class, 21, false),
FIREWORK("FireworksRocketEntity", Firework.class, 22, false),
/**
* A placed minecart of any type.
*/
MINECART("Minecart", Minecart.class, 40),
/**
* A placed boat.
*/
BOAT("Boat", Boat.class, 41),
/**
* A minecart entities can ride
*/
MINECART("MinecartRideable", Minecart.class, 42),
MINECART_CHEST("MinecartChest", StorageMinecart.class, 43),
MINECART_FURNACE("MinecartFurnace", PoweredMinecart.class, 44),
MINECART_TNT("MinecartTNT", MinecartTNT.class, 45),
MINECART_HOPPER("MinecartHopper", MinecartHopper.class, 46),
MINECART_MOB_SPAWNER("MinecartMobSpawner", MinecartMobSpawner.class, 47),
CREEPER("Creeper", Creeper.class, 50),
SKELETON("Skeleton", Skeleton.class, 51),
SPIDER("Spider", Spider.class, 52),

View File

@@ -277,4 +277,45 @@ public interface LivingEntity extends Entity, Damageable {
* @return whether or not the entity can pick up items
*/
public boolean getCanPickupItems();
/**
* Sets a custom name on a mob. This name will be used in death messages
* and can be sent to the client as a nameplate over the mob.
* <p>
* Setting the name to null or an empty string will clear it.
* <p>
* This value has no effect on players, they will always use their real
* name.
* @param name name to set
*/
public void setCustomName(String name);
/**
* Gets the custom name on a mob. If there is no name this method will
* return null.
* <p>
* This value has no effect on players, they will always use their real
* name.
* @return name of the mob or null
*/
public String getCustomName();
/**
* Sets whether or not to display the mob's custom name client side.
* The name will be displayed above the mob similarly to a player.
* <p>
* This value has no effect on players, they will always display their
* name.
* @param flag show custom name
*/
public void setCustomNameVisible(boolean flag);
/**
* Gets whether or not the mob's custom name is displayed client side.
* <p>
* This value has no effect on players, they will always display their
* name.
* @return if the custom name is displayed
*/
public boolean getCustomNameVisible();
}

View File

@@ -0,0 +1,7 @@
package org.bukkit.entity;
/**
* Represents a Minecart with a Hopper inside it
*/
public interface MinecartHopper extends Minecart {
}

View File

@@ -0,0 +1,7 @@
package org.bukkit.entity;
/**
* Represents a Minecart with a Mob Spawner inside it.
*/
public interface MinecartMobSpawner extends Minecart {
}

View File

@@ -0,0 +1,7 @@
package org.bukkit.entity;
/**
* Represents a Minecart with TNT inside it.
*/
public interface MinecartTNT extends Minecart {
}