Class HologramUpdateEvent
java.lang.Object
org.bukkit.event.Event
de.oliver.fancyholograms.api.events.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
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents 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
ConstructorsConstructorDescriptionHologramUpdateEvent(@NotNull Hologram hologram, @NotNull org.bukkit.command.CommandSender player, @NotNull HologramData updatedData, @NotNull HologramUpdateEvent.HologramModification modification) -
Method Summary
Modifier and TypeMethodDescription@NotNull HologramDataReturns the current data of the hologram.static org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListReturns the type of modification performed on the hologram.@NotNull org.bukkit.command.CommandSender@NotNull HologramDataReturns the updated data of the hologram.Methods inherited from class HologramEvent
getHologram, isCancelled, setCancelledMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
HologramUpdateEvent
public HologramUpdateEvent(@NotNull @NotNull Hologram hologram, @NotNull @NotNull org.bukkit.command.CommandSender 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.command.CommandSender 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:
getHandlersin classorg.bukkit.event.Event
-