Record Class GamesManagerSettings
java.lang.Object
java.lang.Record
fr.multimc.api.spigot.games.settings.GamesManagerSettings
public record GamesManagerSettings(@NotNull GameSettings gameSettings, @NotNull Class<? extends GameInstance> instanceClass, @NotNull MmcWorld lobbyWorld, @NotNull MmcWorld gameWorld, @Nullable MessagesFactory messagesFactory)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGamesManagerSettings(@NotNull GameSettings gameSettings, @NotNull Class<? extends GameInstance> instanceClass, @NotNull MmcWorld lobbyWorld, @NotNull MmcWorld gameWorld, @Nullable MessagesFactory messagesFactory) Creates an instance of aGamesManagerSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull GameSettingsReturns the value of thegameSettingsrecord component.@NotNull MmcWorldReturns the value of thegameWorldrecord component.final inthashCode()Returns a hash code value for this object.@NotNull Class<? extends GameInstance>Returns the value of theinstanceClassrecord component.@NotNull MmcWorldReturns the value of thelobbyWorldrecord component.@Nullable MessagesFactoryReturns the value of themessagesFactoryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GamesManagerSettings
public GamesManagerSettings(@NotNull @NotNull GameSettings gameSettings, @NotNull @NotNull Class<? extends GameInstance> instanceClass, @NotNull @NotNull MmcWorld lobbyWorld, @NotNull @NotNull MmcWorld gameWorld, @Nullable @Nullable MessagesFactory messagesFactory) Creates an instance of aGamesManagerSettingsrecord class.- Parameters:
gameSettings- the value for thegameSettingsrecord componentinstanceClass- the value for theinstanceClassrecord componentlobbyWorld- the value for thelobbyWorldrecord componentgameWorld- the value for thegameWorldrecord componentmessagesFactory- the value for themessagesFactoryrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
gameSettings
Returns the value of thegameSettingsrecord component.- Returns:
- the value of the
gameSettingsrecord component
-
instanceClass
Returns the value of theinstanceClassrecord component.- Returns:
- the value of the
instanceClassrecord component
-
lobbyWorld
Returns the value of thelobbyWorldrecord component.- Returns:
- the value of the
lobbyWorldrecord component
-
gameWorld
Returns the value of thegameWorldrecord component.- Returns:
- the value of the
gameWorldrecord component
-
messagesFactory
Returns the value of themessagesFactoryrecord component.- Returns:
- the value of the
messagesFactoryrecord component
-