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 - aoz- 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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ModStatus.ConfidenceThe field for theconfidencerecord component.private final StringThe field for thedescriptionrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
confidenceThe field for theconfidencerecord component.
- 
descriptionThe field for thedescriptionrecord component.
 
- 
- 
Constructor Details- 
ModStatus
 
- 
- 
Method Details- 
checkpublic 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- Laoz;a(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/Class;)Laoz;- 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;
 
- 
isModdedpublic boolean isModded()- Mappings:
- Namespace - Name - Mixin selector - official - a- Laoz;a()Z- intermediary - method_39029- Lnet/minecraft/class_6683;method_39029()Z- named - isModded- Lnet/minecraft/util/ModStatus;isModded()Z
 
- 
combineReturns 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- Laoz;a(Laoz;)Laoz;- 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- Laoz;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;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
confidenceReturns the value of theconfidencerecord component.- Returns:
- the value of the confidencerecord component
 
- 
descriptionReturns the value of thedescriptionrecord component.- Returns:
- the value of the descriptionrecord component
 
 
-