Record Class BoardObjectives
java.lang.Object
java.lang.Record
xericker.arenalegends.core.board.handler.BoardObjectives
-
Constructor Summary
ConstructorsConstructorDescriptionBoardObjectives(PlayerBoard playerBoard) Creates an instance of aBoardObjectivesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Set<org.bukkit.scoreboard.Objective> get()final inthashCode()Returns a hash code value for this object.Returns the value of theplayerBoardrecord component.voidregister()final StringtoString()Returns a string representation of this record class.voidupdate()
-
Constructor Details
-
BoardObjectives
Creates an instance of aBoardObjectivesrecord class.- Parameters:
playerBoard- the value for theplayerBoardrecord component
-
-
Method Details
-
get
-
register
public void register() -
update
public void update() -
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). -
playerBoard
Returns the value of theplayerBoardrecord component.- Returns:
- the value of the
playerBoardrecord component
-