diff options
author | sk89q <the.sk89q@gmail.com> | 2011-01-23 14:06:58 -0800 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-01-23 14:06:58 -0800 |
commit | 1c999edda4f6a7fc3ab308718b124b45e2acf183 (patch) | |
tree | 653edf010eb3afa071228183c0743819457594bc /src | |
parent | 9a6bdd039dd00754888f58612d73db516c8e7cf1 (diff) | |
download | bukkit-1c999edda4f6a7fc3ab308718b124b45e2acf183.tar bukkit-1c999edda4f6a7fc3ab308718b124b45e2acf183.tar.gz bukkit-1c999edda4f6a7fc3ab308718b124b45e2acf183.tar.lz bukkit-1c999edda4f6a7fc3ab308718b124b45e2acf183.tar.xz bukkit-1c999edda4f6a7fc3ab308718b124b45e2acf183.zip |
Added PlayerEggThrowEvent.getEgg().
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java b/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java index 391cc6bc..21077d92 100644 --- a/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java @@ -1,5 +1,6 @@ package org.bukkit.event.player; +import org.bukkit.entity.Egg; import org.bukkit.entity.MobType; import org.bukkit.entity.Player; @@ -10,18 +11,29 @@ import org.bukkit.entity.Player; * */ public class PlayerEggThrowEvent extends PlayerEvent { + private Egg egg; private boolean hatching; private MobType hatchType; private byte numHatches; - public PlayerEggThrowEvent(Type type, Player player, boolean hatching, byte numHatches, MobType hatchType) { + public PlayerEggThrowEvent(Type type, Player player, Egg egg, boolean hatching, byte numHatches, MobType hatchType) { super(type, player); + this.egg = egg; this.hatching = hatching; this.numHatches = numHatches; this.hatchType = hatchType; } /** + * Get the egg. + * + * @return the egg + */ + public Egg getEgg() { + return egg; + } + + /** * Grabs whether the egg is hatching or not. Will be what the server * would've done without interaction. * |