SplatterFestEvent

The Splatter Fest Event is an event called when a player left clicks the air with a Splatter Fest hoe.

Description
The SplatterFestEvent is a class that adds two local variables: takeEgg, which is whether the event will take an egg from the player, and hasEgg, which returns whether the player has at least one egg. If takeEgg is true and hasEgg is false, the event will be cancelled.

Constructor
SplatterFestEvent(Player who, ItemStack item, boolean takeEgg, boolean hasEgg)
 * // Player who - the player throwing the egg
 * // ItemStack item - the item with Splatter Fest
 * // boolean takeEgg - whether the player should lose an egg through the event
 * // boolean hasEgg - whether the player has an egg

Implements
None

Extends
InteractEvent

boolean takeEgg
Whether the event should take an egg from the player

void setTakeEgg(boolean takeEgg)
Sets whether the event should take an egg to the specified value

boolean hasEgg
Whether the player has an egg currently in their inventory