Class BalloonUnleashListener

java.lang.Object
net.jeqo.bloons.listeners.BalloonUnleashListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class BalloonUnleashListener extends Object implements org.bukkit.event.Listener
A class that listens for events related to balloon unleashing and leashing
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onLeadBreak(org.bukkit.event.entity.EntityUnleashEvent event)
    Prevents breaking of the lead from chicken with the internal ID
    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
    void
    onUnleash(org.bukkit.event.player.PlayerUnleashEntityEvent event)
    Prevents unleashing of chicken with the internal ID

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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