HologramClickEvent

class HologramClickEvent(hologram: Hologram, player: Player, clickType: EnumWrappers.EntityUseAction, entityId: Int, packetEvent: PacketEvent) : Event, Cancellable

An event called when a player clicks on a hologram.

Parameters

hologram

the hologram that was clicked.

player

the player who clicked the hologram.

clickType

the type of click. can be ATTACK, INTERACT or INTERACT_AT

entityId

the ID of the line that was clicked.

packetEvent

the rest of the event if you need anything from it.

Constructors

HologramClickEvent
Link copied to clipboard
fun HologramClickEvent(hologram: Hologram, player: Player, clickType: EnumWrappers.EntityUseAction, entityId: Int, packetEvent: PacketEvent)
the hologram that was clicked.

Types

Companion
Link copied to clipboard
object Companion

Functions

callEvent
Link copied to clipboard
open fun callEvent(): Boolean
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getEventName
Link copied to clipboard
@NotNull()
open fun getEventName(): String
getHandlers
Link copied to clipboard
open override fun getHandlers(): HandlerList
hashCode
Link copied to clipboard
open fun hashCode(): Int
isAsynchronous
Link copied to clipboard
fun isAsynchronous(): Boolean
isCancelled
Link copied to clipboard
open override fun isCancelled(): Boolean
Gets the cancellation state of this event.
setCancelled
Link copied to clipboard
open override fun setCancelled(cancel: Boolean)
Sets the cancellation state of this event.
toString
Link copied to clipboard
open fun toString(): String

Properties

clickType
Link copied to clipboard
val clickType: EnumWrappers.EntityUseAction
the type of click.
entityId
Link copied to clipboard
val entityId: Int
the ID of the line that was clicked.
hologram
Link copied to clipboard
val hologram: Hologram
the hologram that was clicked.
packetEvent
Link copied to clipboard
val packetEvent: PacketEvent
the rest of the event if you need anything from it.
player
Link copied to clipboard
val player: Player
the player who clicked the hologram.