Class TriggerData
TriggerData
Class Description
TriggerData
Class DescriptionThe TriggerData
class is a fundamental part of the API, designed to manage data related to events and triggers in the game. This class allows you to encapsulate and transport relevant information about specific events that may occur during the execution of the plugin. Below is a detailed explanation of the key elements of this class:
Properties
player
:Stores the instance of the player associated with the event. May be null if the event is not related to aplayer
.entity
: Stores the entity instance (Entity
) associated with the event. It can represent various entities present in the game, such as mobs or players.block
: Stores the block instance (Block
) associated with the event. This is useful for events that involve interactions with blocks in the game world.items
: Stores anItemStack
array, allowing you to handle multiple items associated with the event.doubles
: Stores an array of values of typedouble
. It can be used to transport decimal numeric data related to the event.floats
: Stores an array of values of typefloat
. Similar todoubles
, but with lower decimal precision.ints
: Stores an array of values of typeint
. Used for integer numeric data associated with the event.event
: Stores the event instance (Event
) itself. This property allows you to access specific details of the event that triggered the action.
Last updated