Record Class PaginationMenu.ClickContext
java.lang.Object
java.lang.Record
me.tayebyassine.homestead.gui.PaginationMenu.ClickContext
- Record Components:
event- the raw inventory click eventindex- the index of the clicked item in the content listitems- the current content listinstance- the menu instance
- Enclosing class:
PaginationMenu
public static record PaginationMenu.ClickContext(org.bukkit.event.inventory.InventoryClickEvent event, int index, List<org.bukkit.inventory.ItemStack> items, PaginationMenu instance)
extends Record
Context passed to content click callbacks.
-
Constructor Summary
ConstructorsConstructorDescriptionClickContext(org.bukkit.event.inventory.InventoryClickEvent event, int index, List<org.bukkit.inventory.ItemStack> items, PaginationMenu instance) Creates an instance of aClickContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.bukkit.event.inventory.InventoryClickEventevent()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.instance()Returns the value of theinstancerecord component.List<org.bukkit.inventory.ItemStack> items()Returns the value of theitemsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClickContext
public ClickContext(org.bukkit.event.inventory.InventoryClickEvent event, int index, List<org.bukkit.inventory.ItemStack> items, PaginationMenu instance) Creates an instance of aClickContextrecord class.
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
event
-
index
-
items
-
instance
-