Record Class AbuseReportLimits

java.lang.Object
java.lang.Record
com.mojang.authlib.minecraft.report.AbuseReportLimits

public record AbuseReportLimits(int maxOpinionCommentsLength, int maxReportedMessageCount, int maxEvidenceMessageCount, int leadingContextMessageCount, int trailingContextMessageCount) extends Record
  • Field Details

    • maxOpinionCommentsLength

      private final int maxOpinionCommentsLength
      The field for the maxOpinionCommentsLength record component.
    • maxReportedMessageCount

      private final int maxReportedMessageCount
      The field for the maxReportedMessageCount record component.
    • maxEvidenceMessageCount

      private final int maxEvidenceMessageCount
      The field for the maxEvidenceMessageCount record component.
    • leadingContextMessageCount

      private final int leadingContextMessageCount
      The field for the leadingContextMessageCount record component.
    • trailingContextMessageCount

      private final int trailingContextMessageCount
      The field for the trailingContextMessageCount record component.
    • DEFAULTS

      public static final AbuseReportLimits DEFAULTS
  • Constructor Details

    • AbuseReportLimits

      public AbuseReportLimits(int maxOpinionCommentsLength, int maxReportedMessageCount, int maxEvidenceMessageCount, int leadingContextMessageCount, int trailingContextMessageCount)
      Creates an instance of a AbuseReportLimits record class.
      Parameters:
      maxOpinionCommentsLength - the value for the maxOpinionCommentsLength record component
      maxReportedMessageCount - the value for the maxReportedMessageCount record component
      maxEvidenceMessageCount - the value for the maxEvidenceMessageCount record component
      leadingContextMessageCount - the value for the leadingContextMessageCount record component
      trailingContextMessageCount - the value for the trailingContextMessageCount record component
  • Method Details

    • 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. All components in this record class 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.
    • maxOpinionCommentsLength

      public int maxOpinionCommentsLength()
      Returns the value of the maxOpinionCommentsLength record component.
      Returns:
      the value of the maxOpinionCommentsLength record component
    • maxReportedMessageCount

      public int maxReportedMessageCount()
      Returns the value of the maxReportedMessageCount record component.
      Returns:
      the value of the maxReportedMessageCount record component
    • maxEvidenceMessageCount

      public int maxEvidenceMessageCount()
      Returns the value of the maxEvidenceMessageCount record component.
      Returns:
      the value of the maxEvidenceMessageCount record component
    • leadingContextMessageCount

      public int leadingContextMessageCount()
      Returns the value of the leadingContextMessageCount record component.
      Returns:
      the value of the leadingContextMessageCount record component
    • trailingContextMessageCount

      public int trailingContextMessageCount()
      Returns the value of the trailingContextMessageCount record component.
      Returns:
      the value of the trailingContextMessageCount record component