Record Class GuideListEntry
java.lang.Object
java.lang.Record
ke.ric.api.guide.GuideListEntry
public record GuideListEntry(org.bukkit.inventory.ItemStack item, GuideAction leftClick, GuideAction rightClick)
extends Record
An item in a Core-paginated guide list.
-
Constructor Summary
ConstructorsConstructorDescriptionGuideListEntry(org.bukkit.inventory.ItemStack item) GuideListEntry(org.bukkit.inventory.ItemStack item, GuideAction leftClick, GuideAction rightClick) Creates an instance of aGuideListEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.bukkit.inventory.ItemStackitem()Returns the value of theitemrecord component.Returns the value of theleftClickrecord component.Returns the value of therightClickrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuideListEntry
public GuideListEntry(org.bukkit.inventory.ItemStack item) -
GuideListEntry
public GuideListEntry(org.bukkit.inventory.ItemStack item, GuideAction leftClick, GuideAction rightClick) Creates an instance of aGuideListEntryrecord class.- Parameters:
item- the value for theitemrecord componentleftClick- the value for theleftClickrecord componentrightClick- the value for therightClickrecord component
-
-
Method Details
-
item
public org.bukkit.inventory.ItemStack item()Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
leftClick
Returns the value of theleftClickrecord component.- Returns:
- the value of the
leftClickrecord component
-
rightClick
Returns the value of therightClickrecord component.- Returns:
- the value of the
rightClickrecord component
-