Record Class ShopItemBuilder
java.lang.Object
java.lang.Record
xericker.arenalegends.handler.item.ShopItemBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionShopItemBuilder(org.bukkit.entity.Player player, ShopItem shopItem) Creates an instance of aShopItemBuilderrecord 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.entity.Playerplayer()Returns the value of theplayerrecord component.voidset(xericker.xerlib.item.stack.StackBuilder stackBuilder) shopItem()Returns the value of theshopItemrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShopItemBuilder
Creates an instance of aShopItemBuilderrecord class.- Parameters:
player- the value for theplayerrecord componentshopItem- the value for theshopItemrecord component
-
-
Method Details
-
set
public void set(xericker.xerlib.item.stack.StackBuilder stackBuilder) -
parseLore
-
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). -
player
public org.bukkit.entity.Player player()Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
shopItem
Returns the value of theshopItemrecord component.- Returns:
- the value of the
shopItemrecord component
-