Class HologramClickListener

java.lang.Object
tk.airshipcraft.commonlib.gui.events.HologramClickListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class HologramClickListener extends Object implements org.bukkit.event.Listener
Listener class for handling HologramClickEvents. This class listens for any HologramClickEvent fired within the game and processes them. Specifically, it iterates through all instances of Holograms and invokes their respective click actions.

The class demonstrates how to handle custom events within a Bukkit plugin context, especially those related to hologram interactions.

Since:
2023-04-11
Version:
1.0.0
Author:
Locutusque
  • Constructor Details

    • HologramClickListener

      public HologramClickListener()
  • Method Details

    • executeClickEvents

      public void executeClickEvents(HologramClickEvent event)
      Handles the HologramClickEvent when it is fired. Iterates through all registered Hologram instances and executes their defined click actions. This method is invoked automatically by the Bukkit event system whenever a HologramClickEvent occurs.
      Parameters:
      event - The HologramClickEvent that was fired.