Record Class InventoryClickAction
java.lang.Object
java.lang.Record
com.burchard36.api.inventory.actions.InventoryClickAction
public record InventoryClickAction(org.bukkit.event.inventory.InventoryClickEvent clickEvent)
extends Record
Executor method for
GuiClickAction
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryClickAction(org.bukkit.event.inventory.InventoryClickEvent clickEvent)
Creates an instance of aInventoryClickAction
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.event.inventory.InventoryClickEvent
Returns the value of theclickEvent
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.toString()
Returns a string representation of this record class.
-
Constructor Details
-
InventoryClickAction
public InventoryClickAction(org.bukkit.event.inventory.InventoryClickEvent clickEvent)Creates an instance of aInventoryClickAction
record class.- Parameters:
clickEvent
- the value for theclickEvent
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
clickEvent
public org.bukkit.event.inventory.InventoryClickEvent clickEvent()Returns the value of theclickEvent
record component.- Returns:
- the value of the
clickEvent
record component
-