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 aozintermediary net/minecraft/class_6683named net/minecraft/util/ModStatusofficial aintermediary comp_171named confidenceofficial bintermediary comp_172named description
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ModStatus.ConfidenceThe field for theconfidencerecord component.private final StringThe field for thedescriptionrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModStatusReturns 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 theconfidencerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisModded()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
confidence
The field for theconfidencerecord component. -
description
The field for thedescriptionrecord 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 aLaoz;a(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/Class;)Laoz;intermediary method_39031Lnet/minecraft/class_6683;method_39031(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/class_6683;named checkLnet/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 aLaoz;a()Zintermediary method_39029Lnet/minecraft/class_6683;method_39029()Znamed isModdedLnet/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 aLaoz;a(Laoz;)Laoz;intermediary method_39030Lnet/minecraft/class_6683;method_39030(Lnet/minecraft/class_6683;)Lnet/minecraft/class_6683;named combineLnet/minecraft/util/ModStatus;combine(Lnet/minecraft/util/ModStatus;)Lnet/minecraft/util/ModStatus;
-
getMessage
- Mappings:
Namespace Name Mixin selector official bLaoz;b()Ljava/lang/String;intermediary method_39032Lnet/minecraft/class_6683;method_39032()Ljava/lang/String;named getMessageLnet/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 theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-