1 package org.bukkit.event.player;
3 import org.bukkit.entity.CreatureType;
4 import org.bukkit.entity.Egg;
5 import org.bukkit.entity.EntityType;
6 import org.bukkit.entity.Player;
7 import org.bukkit.event.HandlerList;
14 private final Egg egg;
15 private boolean hatching;
17 private byte numHatches;
22 this.hatching = hatching;
23 this.numHatches = numHatches;
24 this.hatchType = hatchingType;
58 this.hatching = hatching;
98 if(!hatchType.
isSpawnable())
throw new IllegalArgumentException(
"Can't spawn that entity type from an egg!");
99 this.hatchType = hatchType;
125 this.numHatches = numHatches;