summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-01-23 14:06:16 -0800
committersk89q <the.sk89q@gmail.com>2011-01-23 14:06:16 -0800
commit0675ead1692d1569c8ad43e22dff97c5225fa03e (patch)
treede0ffec8e7b929ea6faba4579c8e81b22d24a418 /src/main/java/net
parent78db3d2ec442e02418baac31427cdc7a188e4b6a (diff)
downloadcraftbukkit-0675ead1692d1569c8ad43e22dff97c5225fa03e.tar
craftbukkit-0675ead1692d1569c8ad43e22dff97c5225fa03e.tar.gz
craftbukkit-0675ead1692d1569c8ad43e22dff97c5225fa03e.tar.lz
craftbukkit-0675ead1692d1569c8ad43e22dff97c5225fa03e.tar.xz
craftbukkit-0675ead1692d1569c8ad43e22dff97c5225fa03e.zip
Added PlayerEggThrowEvent.getEgg().
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/minecraft/server/EntityEgg.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityEgg.java b/src/main/java/net/minecraft/server/EntityEgg.java
index bd9e9d34..7aaae478 100644
--- a/src/main/java/net/minecraft/server/EntityEgg.java
+++ b/src/main/java/net/minecraft/server/EntityEgg.java
@@ -4,6 +4,7 @@ import java.util.List;
import java.util.Random;
// CraftBukkit start
+import org.bukkit.entity.Egg;
import org.bukkit.entity.MobType;
import org.bukkit.entity.Player;
import org.bukkit.craftbukkit.entity.CraftEgg;
@@ -209,7 +210,9 @@ public class EntityEgg extends Entity {
Type eventType = Type.PLAYER_EGG_THROW;
Player player = (ak == null)?null:(Player) ak.getBukkitEntity();
- PlayerEggThrowEvent event = new PlayerEggThrowEvent(eventType, player, hatching, numHatching, hatchingType);
+ PlayerEggThrowEvent event = new PlayerEggThrowEvent(
+ eventType, player, (Egg)this.bukkitEntity, hatching,
+ numHatching, hatchingType);
server.getPluginManager().callEvent(event);
hatching = event.isHatching();
numHatching = event.getNumHatches();