Package net.minecraft.util
Record Class ModStatus
java.lang.Object
java.lang.Record
net.minecraft.util.ModStatus
- Record Components:
confidence
-description
-
- Mappings:
Namespace Name official aox
intermediary net/minecraft/class_6683
named net/minecraft/util/ModStatus
official a
intermediary comp_171
named confidence
official b
intermediary comp_172
named description
-
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 official a
Laox;a(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/Class;)Laox;
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
Laox;a()Z
intermediary method_39029
Lnet/minecraft/class_6683;method_39029()Z
named isModded
Lnet/minecraft/util/ModStatus;isModded()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 official a
Laox;a(Laox;)Laox;
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
- Mappings:
Namespace Name Mixin selector official b
Laox;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
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
-