Record Class ModStatus

java.lang.Object
java.lang.Record
net.minecraft.util.ModStatus
Record Components:
confidence -
description -

public record ModStatus(ModStatus.Confidence confidence, String description) extends Record
Mappings:
Namespace Name
official api
intermediary net/minecraft/class_6683
named net/minecraft/util/ModStatus
official a
intermediary comp_171
named confidence
official b
intermediary comp_172
named description
  • Field Details

  • Constructor Details

  • Method Details

    • check

      public static ModStatus check(String vanillaBrand, Supplier<String> brandSupplier, String environment, Class<?> clazz)
      Returns the modification status determined by the brand and whether the class is signed or not.
      Returns:
      the modification status determined by the brand and whether the class is signed or not
      Mappings:
      Namespace Name Mixin selector
      official a Lapi;a(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/Class;)Lapi;
      intermediary method_39031 Lnet/minecraft/class_6683;method_39031(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/class_6683;
      named check Lnet/minecraft/util/ModStatus;check(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/util/ModStatus;
    • isModded

      public boolean isModded()
      Mappings:
      Namespace Name Mixin selector
      official a Lapi;a()Z
      intermediary method_39029 Lnet/minecraft/class_6683;method_39029()Z
      named isModded Lnet/minecraft/util/ModStatus;isModded()Z
    • combine

      public ModStatus combine(ModStatus brand)
      Returns the combined modification status with the higher confidence.
      Returns:
      the combined modification status with the higher confidence
      API Note:
      This is used to check if either the client or the integrated server is modded.
      Mappings:
      Namespace Name Mixin selector
      official a Lapi;a(Lapi;)Lapi;
      intermediary method_39030 Lnet/minecraft/class_6683;method_39030(Lnet/minecraft/class_6683;)Lnet/minecraft/class_6683;
      named combine Lnet/minecraft/util/ModStatus;combine(Lnet/minecraft/util/ModStatus;)Lnet/minecraft/util/ModStatus;
    • getMessage

      public String getMessage()
      Mappings:
      Namespace Name Mixin selector
      official b Lapi;b()Ljava/lang/String;
      intermediary method_39032 Lnet/minecraft/class_6683;method_39032()Ljava/lang/String;
      named getMessage Lnet/minecraft/util/ModStatus;getMessage()Ljava/lang/String;
    • 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 object)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • confidence

      public ModStatus.Confidence confidence()
      Returns the value of the confidence record component.
      Returns:
      the value of the confidence record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component