Record Class ItemGroup
java.lang.Object
java.lang.Record
com.github.darksoulq.ner.model.ItemGroup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleananimate()Returns the value of theanimaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.List<org.bukkit.inventory.ItemStack> items()Returns the value of theitemsrecord component.net.kyori.adventure.text.Componenttitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemGroup
public ItemGroup(String id, net.kyori.adventure.text.Component title, List<org.bukkit.inventory.ItemStack> items, boolean animate) Creates an instance of aItemGrouprecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentitems- the value for theitemsrecord componentanimate- the value for theanimaterecord component
-
-
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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
public net.kyori.adventure.text.Component title()Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
animate
public boolean animate()Returns the value of theanimaterecord component.- Returns:
- the value of the
animaterecord component
-