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 aInventoryClickActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.event.inventory.InventoryClickEventReturns the value of theclickEventrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()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 aInventoryClickActionrecord class.- Parameters:
clickEvent- the value for theclickEventrecord 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 theclickEventrecord component.- Returns:
- the value of the
clickEventrecord component
-