Class HologramUpdateEvent
java.lang.Object
org.bukkit.event.Event
de.oliver.fancyholograms.api.HologramEvent
de.oliver.fancyholograms.api.events.HologramUpdateEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Called when a hologram is being updated, the data in the hologram is current and the event holds the new data
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents the various types of modifications that can be made to a Hologram.Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionHologramUpdateEvent
(@NotNull Hologram hologram, @NotNull org.bukkit.entity.Player player, @NotNull HologramData updatedData, @NotNull HologramUpdateEvent.HologramModification modification) -
Method Summary
Modifier and TypeMethodDescription@NotNull HologramData
Returns the current data of the hologram.static org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
Returns the type of modification performed on the hologram.@NotNull org.bukkit.entity.Player
@NotNull HologramData
Returns the updated data of the hologram.Methods inherited from class de.oliver.fancyholograms.api.HologramEvent
getHologram, isCancelled, setCancelled
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
HologramUpdateEvent
public HologramUpdateEvent(@NotNull @NotNull Hologram hologram, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull HologramData updatedData, @NotNull @NotNull HologramUpdateEvent.HologramModification modification)
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getPlayer
@NotNull public @NotNull org.bukkit.entity.Player getPlayer() -
getCurrentData
Returns the current data of the hologram.- Returns:
- the current data of the hologram
-
getUpdatedData
Returns the updated data of the hologram.- Returns:
- the updated data of the hologram
-
getModification
Returns the type of modification performed on the hologram.- Returns:
- the type of modification performed on the hologram
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-