mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 09:59:42 -05:00
1 parent
d7456c8007
commit
6c00742888
1 file changed
+13
-1
@@ -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,17 +11,28 @@ 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.
|
||||
|
||||
Reference in new issue
Block a user