Class HologramEvent

java.lang.Object
org.bukkit.event.Event
de.oliver.fancyholograms.api.events.HologramEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable
Direct Known Subclasses:
HologramCreateEvent, HologramDeleteEvent, HologramHideEvent, HologramShowEvent, HologramUpdateEvent

public abstract class HologramEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Represents a base event related to Holograms. This is an abstract class that other event classes related to Holograms should extend. This event is cancellable, which means it can be prevented from being processed by the server.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    HologramEvent(@NotNull Hologram hologram, boolean isAsync)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final @NotNull Hologram
    Returns the hologram involved in this event.
    final boolean
     
    final void
    setCancelled(boolean cancel)
     

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, getHandlers, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HologramEvent

      protected HologramEvent(@NotNull @NotNull Hologram hologram, boolean isAsync)
  • Method Details

    • getHologram

      @NotNull public final @NotNull Hologram getHologram()
      Returns the hologram involved in this event.
      Returns:
      the hologram involved in this event
    • isCancelled

      public final boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public final void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable