Package net.jeqo.bloons.listeners
Class BalloonUnleashListener
java.lang.Object
net.jeqo.bloons.listeners.BalloonUnleashListener
- All Implemented Interfaces:
org.bukkit.event.Listener
A class that listens for events related to balloon unleashing and leashing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onLeadBreak
(org.bukkit.event.entity.EntityUnleashEvent event) Prevents breaking of the lead from chicken with the internal IDvoid
onLeash
(org.bukkit.event.entity.PlayerLeashEntityEvent event) Used to check if player tries to unleash from their balloon, if they do then cancel itvoid
onUnleash
(org.bukkit.event.player.PlayerUnleashEntityEvent event) Prevents unleashing of chicken with the internal ID
-
Constructor Details
-
BalloonUnleashListener
public BalloonUnleashListener()
-
-
Method Details
-
onLeash
public void onLeash(org.bukkit.event.entity.PlayerLeashEntityEvent event) Used to check if player tries to unleash from their balloon, if they do then cancel it- Parameters:
event
- The event that is called when a player leashes an entity
-
onUnleash
public void onUnleash(org.bukkit.event.player.PlayerUnleashEntityEvent event) Prevents unleashing of chicken with the internal ID- Parameters:
event
- The event that is called when a player unleashes an entity, type org.bukkit.event.entity.PlayerUnleashEntityEvent
-
onLeadBreak
public void onLeadBreak(org.bukkit.event.entity.EntityUnleashEvent event) Prevents breaking of the lead from chicken with the internal ID- Parameters:
event
- The event that is called when an entity is unleashed, type org.bukkit.event.entity.EntityUnleashEvent
-