Record Class AnvilDisplay
java.lang.Object
java.lang.Record
xericker.arenalegends.gameplay.anvilstat.AnvilDisplay
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnvilDisplay(org.bukkit.entity.Player player, AnvilStat anvilStat) Creates an instance of aAnvilDisplayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModifiers(List<String> strings) Returns the value of theanvilStatrecord component.final 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.voidsendChosen(org.bukkit.entity.Player player, Map<GameModifier, AnvilStat.ValueOperationPair> anvilsApplied) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
RANGE_PATTERN
-
-
Constructor Details
-
AnvilDisplay
Creates an instance of aAnvilDisplayrecord class.- Parameters:
player- the value for theplayerrecord componentanvilStat- the value for theanvilStatrecord component
-
-
Method Details
-
addModifiers
-
getList
-
sendChosen
public void sendChosen(org.bukkit.entity.Player player, Map<GameModifier, AnvilStat.ValueOperationPair> anvilsApplied) -
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
-
anvilStat
Returns the value of theanvilStatrecord component.- Returns:
- the value of the
anvilStatrecord component
-