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 aInventoryOpenAction
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.org.bukkit.event.inventory.InventoryOpenEvent
Returns the value of theopenEvent
record 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 aInventoryOpenAction
record class.- Parameters:
openEvent
- the value for theopenEvent
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)
. -
openEvent
public org.bukkit.event.inventory.InventoryOpenEvent openEvent()Returns the value of theopenEvent
record component.- Returns:
- the value of the
openEvent
record component
-