Record Class MatchupAnnouncer
java.lang.Object
java.lang.Record
xericker.arenalegends.core.game.matchup.MatchupAnnouncer
-
Constructor Summary
ConstructorsConstructorDescriptionMatchupAnnouncer(MatchupManager manager) Creates an instance of aMatchupAnnouncerrecord 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.manager()Returns the value of themanagerrecord component.voidsendIntro(org.bukkit.entity.Player player, MatchupInstance matchupInstance) static voidsendNext(org.bukkit.entity.Player player, Game game, MatchupInstance matchupInstance) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MatchupAnnouncer
Creates an instance of aMatchupAnnouncerrecord class.- Parameters:
manager- the value for themanagerrecord component
-
-
Method Details
-
sendNext
public static void sendNext(org.bukkit.entity.Player player, Game game, @Nullable MatchupInstance matchupInstance) -
sendIntro
-
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). -
manager
Returns the value of themanagerrecord component.- Returns:
- the value of the
managerrecord component
-