Record Class SyncProxyMotd

java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.syncproxy.config.SyncProxyMotd

public record SyncProxyMotd(@NonNull String firstLine, @NonNull String secondLine, boolean autoSlot, int autoSlotMaxPlayersDistance, @Nullable String[] playerInfo, @Nullable String protocolText) extends Record
  • Field Details

    • firstLine

      @NonNull private final @NonNull String firstLine
      The field for the firstLine record component.
    • secondLine

      @NonNull private final @NonNull String secondLine
      The field for the secondLine record component.
    • autoSlot

      private final boolean autoSlot
      The field for the autoSlot record component.
    • autoSlotMaxPlayersDistance

      private final int autoSlotMaxPlayersDistance
      The field for the autoSlotMaxPlayersDistance record component.
    • playerInfo

      @Nullable private final @Nullable String[] playerInfo
      The field for the playerInfo record component.
    • protocolText

      @Nullable private final @Nullable String protocolText
      The field for the protocolText record component.
  • 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 a SyncProxyMotd record class.
      Parameters:
      firstLine - the value for the firstLine record component
      secondLine - the value for the secondLine record component
      autoSlot - the value for the autoSlot record component
      autoSlotMaxPlayersDistance - the value for the autoSlotMaxPlayersDistance record component
      playerInfo - the value for the playerInfo record component
      protocolText - the value for the protocolText record component
  • Method Details

    • builder

      @NonNull public static @NonNull SyncProxyMotd.Builder builder()
    • builder

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • firstLine

      @NonNull public @NonNull String firstLine()
      Returns the value of the firstLine record component.
      Returns:
      the value of the firstLine record component
    • secondLine

      @NonNull public @NonNull String secondLine()
      Returns the value of the secondLine record component.
      Returns:
      the value of the secondLine record component
    • autoSlot

      public boolean autoSlot()
      Returns the value of the autoSlot record component.
      Returns:
      the value of the autoSlot record component
    • autoSlotMaxPlayersDistance

      public int autoSlotMaxPlayersDistance()
      Returns the value of the autoSlotMaxPlayersDistance record component.
      Returns:
      the value of the autoSlotMaxPlayersDistance record component
    • playerInfo

      @Nullable public @Nullable String[] playerInfo()
      Returns the value of the playerInfo record component.
      Returns:
      the value of the playerInfo record component
    • protocolText

      @Nullable public @Nullable String protocolText()
      Returns the value of the protocolText record component.
      Returns:
      the value of the protocolText record component