mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-19 21:06:03 +00:00
Added PlayerEggThrowEvent.getEgg().
This commit is contained in:
parent
9a6bdd039d
commit
1c999edda4
1 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
package org.bukkit.event.player;
|
package org.bukkit.event.player;
|
||||||
|
|
||||||
|
import org.bukkit.entity.Egg;
|
||||||
import org.bukkit.entity.MobType;
|
import org.bukkit.entity.MobType;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
@ -10,17 +11,28 @@ import org.bukkit.entity.Player;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class PlayerEggThrowEvent extends PlayerEvent {
|
public class PlayerEggThrowEvent extends PlayerEvent {
|
||||||
|
private Egg egg;
|
||||||
private boolean hatching;
|
private boolean hatching;
|
||||||
private MobType hatchType;
|
private MobType hatchType;
|
||||||
private byte numHatches;
|
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);
|
super(type, player);
|
||||||
|
this.egg = egg;
|
||||||
this.hatching = hatching;
|
this.hatching = hatching;
|
||||||
this.numHatches = numHatches;
|
this.numHatches = numHatches;
|
||||||
this.hatchType = hatchType;
|
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
|
* Grabs whether the egg is hatching or not. Will be what the server
|
||||||
* would've done without interaction.
|
* would've done without interaction.
|
||||||
|
|
Loading…
Add table
Reference in a new issue