Record Class InventoryOpenAction
java.lang.Object
java.lang.Record
com.burchard36.api.inventory.actions.InventoryOpenAction
public record InventoryOpenAction(org.bukkit.event.inventory.InventoryOpenEvent openEvent)
extends Record
Executor method for
GuiOpenAction-
Constructor Summary
ConstructorsConstructorDescriptionInventoryOpenAction(org.bukkit.event.inventory.InventoryOpenEvent openEvent)Creates an instance of aInventoryOpenActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.org.bukkit.event.inventory.InventoryOpenEventReturns the value of theopenEventrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
InventoryOpenAction
public InventoryOpenAction(org.bukkit.event.inventory.InventoryOpenEvent openEvent)Creates an instance of aInventoryOpenActionrecord class.- Parameters:
openEvent- the value for theopenEventrecord 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). -
openEvent
public org.bukkit.event.inventory.InventoryOpenEvent openEvent()Returns the value of theopenEventrecord component.- Returns:
- the value of the
openEventrecord component
-