Record Class GuideEntry
java.lang.Object
java.lang.Record
ke.ric.api.guide.GuideEntry
public record GuideEntry(int slot, org.bukkit.inventory.ItemStack item, GuideAction leftClick, GuideAction rightClick)
extends Record
One fixed-position item rendered in a Core-owned addon guide page.
-
Constructor Summary
ConstructorsConstructorDescriptionGuideEntry(int slot, org.bukkit.inventory.ItemStack item) GuideEntry(int slot, org.bukkit.inventory.ItemStack item, GuideAction leftClick) GuideEntry(int slot, org.bukkit.inventory.ItemStack item, GuideAction leftClick, GuideAction rightClick) Creates an instance of aGuideEntryrecord 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.intslot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuideEntry
public GuideEntry(int slot, org.bukkit.inventory.ItemStack item) -
GuideEntry
-
GuideEntry
public GuideEntry(int slot, org.bukkit.inventory.ItemStack item, GuideAction leftClick, GuideAction rightClick) Creates an instance of aGuideEntryrecord class.- Parameters:
slot- the value for theslotrecord componentitem- 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
slot
public int slot()Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
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
-