Record Class SyncProxyMotd
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.syncproxy.config.SyncProxyMotd
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theautoSlotrecord component.private final intThe field for theautoSlotMaxPlayersDistancerecord component.The field for thefirstLinerecord component.The field for theplayerInforecord component.The field for theprotocolTextrecord component.The field for thesecondLinerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanautoSlot()Returns the value of theautoSlotrecord component.intReturns the value of theautoSlotMaxPlayersDistancerecord component.static @NonNull SyncProxyMotd.Builderbuilder()static @NonNull SyncProxyMotd.Builderbuilder(@NonNull SyncProxyMotd motd) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstLinerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theplayerInforecord component.Returns the value of theprotocolTextrecord component.Returns the value of thesecondLinerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
firstLine
-
secondLine
-
autoSlot
private final boolean autoSlotThe field for theautoSlotrecord component. -
autoSlotMaxPlayersDistance
private final int autoSlotMaxPlayersDistanceThe field for theautoSlotMaxPlayersDistancerecord component. -
playerInfo
-
protocolText
-
-
Constructor Details
-
SyncProxyMotd
public SyncProxyMotd(@NonNull @NonNull String firstLine, @NonNull @NonNull String secondLine, boolean autoSlot, int autoSlotMaxPlayersDistance, @Nullable @Nullable String[] playerInfo, @Nullable @Nullable String protocolText) Creates an instance of aSyncProxyMotdrecord class.- Parameters:
firstLine- the value for thefirstLinerecord componentsecondLine- the value for thesecondLinerecord componentautoSlot- the value for theautoSlotrecord componentautoSlotMaxPlayersDistance- the value for theautoSlotMaxPlayersDistancerecord componentplayerInfo- the value for theplayerInforecord componentprotocolText- the value for theprotocolTextrecord component
-
-
Method Details
-
builder
-
builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
firstLine
-
secondLine
-
autoSlot
public boolean autoSlot()Returns the value of theautoSlotrecord component.- Returns:
- the value of the
autoSlotrecord component
-
autoSlotMaxPlayersDistance
public int autoSlotMaxPlayersDistance()Returns the value of theautoSlotMaxPlayersDistancerecord component.- Returns:
- the value of the
autoSlotMaxPlayersDistancerecord component
-
playerInfo
-
protocolText
-