public class WauzPetEgg
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static io.lumine.xikage.mythicmobs.api.bukkit.BukkitAPIHelper |
mythicMobs
Access to the MythicMobs API.
|
Constructor and Description |
---|
WauzPetEgg() |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.inventory.ItemStack |
getEggItem(org.bukkit.entity.Player owner,
WauzPet pet,
WauzPetAbility ability,
long hatchTime)
Generates an egg item stack for the given pet.
|
static boolean |
tryToFeed(org.bukkit.event.inventory.InventoryClickEvent event)
Tries to feed a pet by dragging food on its egg item stack.
|
static void |
tryToSummon(org.bukkit.event.player.PlayerInteractEvent event)
Tries to spawn a pet by interacting with its egg item stack.
|
private static io.lumine.xikage.mythicmobs.api.bukkit.BukkitAPIHelper mythicMobs
public static org.bukkit.inventory.ItemStack getEggItem(org.bukkit.entity.Player owner, WauzPet pet, WauzPetAbility ability, long hatchTime)
owner
- The owner of the pet.pet
- The pet to get an egg item of.ability
- The ability of the pet.hatchTime
- The timestamp when the pet can hatch.public static void tryToSummon(org.bukkit.event.player.PlayerInteractEvent event)
event
- The interact event.public static boolean tryToFeed(org.bukkit.event.inventory.InventoryClickEvent event)
event
- The click event.