Package net.minecraft.util
Record Class ModStatus
java.lang.Object
java.lang.Record
net.minecraft.util.ModStatus
- Record Components:
confidence
-description
-
- Mappings:
Namespace Name named net/minecraft/util/ModStatus
intermediary net/minecraft/class_6683
official ayn
named confidence
intermediary comp_171
official a
named description
intermediary comp_172
official b
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ModStatus.Confidence
The field for theconfidence
record component.private final String
The field for thedescription
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModStatus
Returns the modification status determined by the brand and whether the class is signed or not.Returns the combined modification status with the higher confidence.Returns the value of theconfidence
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isModded()
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
confidence
The field for theconfidence
record component. -
description
The field for thedescription
record component.
-
-
Constructor Details
-
ModStatus
-
-
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 named check
Lnet/minecraft/util/ModStatus;check(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/util/ModStatus;
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;
official a
Layn;a(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/Class;)Layn;
-
isModded
public boolean isModded()- Mappings:
Namespace Name Mixin selector named isModded
Lnet/minecraft/util/ModStatus;isModded()Z
intermediary method_39029
Lnet/minecraft/class_6683;method_39029()Z
official a
Layn;a()Z
-
combine
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 named combine
Lnet/minecraft/util/ModStatus;combine(Lnet/minecraft/util/ModStatus;)Lnet/minecraft/util/ModStatus;
intermediary method_39030
Lnet/minecraft/class_6683;method_39030(Lnet/minecraft/class_6683;)Lnet/minecraft/class_6683;
official a
Layn;a(Layn;)Layn;
-
getMessage
- Mappings:
Namespace Name Mixin selector named getMessage
Lnet/minecraft/util/ModStatus;getMessage()Ljava/lang/String;
intermediary method_39032
Lnet/minecraft/class_6683;method_39032()Ljava/lang/String;
official b
Layn;b()Ljava/lang/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. -
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)
. -
confidence
Returns the value of theconfidence
record component.- Returns:
- the value of the
confidence
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-