Package net.minecraft.nbt
Record Class SnbtParsing.IntValue
java.lang.Object
java.lang.Record
net.minecraft.nbt.SnbtParsing.IntValue
- Record Components:
sign-base-digits-suffix-
- Enclosing class:
SnbtParsing
private static record SnbtParsing.IntValue(SnbtParsing.Sign sign, SnbtParsing.Radix base, String digits, SnbtParsing.NumberSuffix suffix)
extends Record
- Mappings:
Namespace Name named net/minecraft/nbt/SnbtParsing$IntValueintermediary net/minecraft/class_10900$class_10903official uu$cnamed signintermediary comp_3823official anamed baseintermediary comp_3824official bnamed digitsintermediary comp_3825official cnamed suffixintermediary comp_3826official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SnbtParsing.RadixThe field for thebaserecord component.private final StringThe field for thedigitsrecord component.private final SnbtParsing.SignThe field for thesignrecord component.private final SnbtParsing.NumberSuffixThe field for thesuffixrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionIntValue(SnbtParsing.Sign sign, SnbtParsing.Radix radix, String string, SnbtParsing.NumberSuffix numberSuffix) -
Method Summary
Modifier and TypeMethodDescriptionbase()Returns the value of thebaserecord component.<T> Tdecode(com.mojang.serialization.DynamicOps<T> ops, SnbtParsing.NumericType type, ParsingState<?> state) <T> Tdecode(com.mojang.serialization.DynamicOps<T> ops, ParsingState<?> state) digits()Returns the value of thedigitsrecord component.final booleanIndicates whether some other object is "equal to" this one.private SnbtParsing.Signednessfinal inthashCode()Returns a hash code value for this object.sign()Returns the value of thesignrecord component.suffix()Returns the value of thesuffixrecord component.final StringtoString()Returns a string representation of this record class.private StringtoString(SnbtParsing.Sign sign)
-
Field Details
-
Constructor Details
-
IntValue
IntValue(SnbtParsing.Sign sign, SnbtParsing.Radix radix, String string, SnbtParsing.NumberSuffix numberSuffix)
-
-
Method Details
-
getSignedness
- Mappings:
Namespace Name Mixin selector named getSignednessLnet/minecraft/nbt/SnbtParsing$IntValue;getSignedness()Lnet/minecraft/nbt/SnbtParsing$Signedness;intermediary method_68652Lnet/minecraft/class_10900$class_10903;method_68652()Lnet/minecraft/class_10900$class_10907;official eLuu$c;e()Luu$g;
-
toString
- Mappings:
Namespace Name Mixin selector named toStringLnet/minecraft/nbt/SnbtParsing$IntValue;toString(Lnet/minecraft/nbt/SnbtParsing$Sign;)Ljava/lang/String;intermediary method_68651Lnet/minecraft/class_10900$class_10903;method_68651(Lnet/minecraft/class_10900$class_10905;)Ljava/lang/String;official aLuu$c;a(Luu$e;)Ljava/lang/String;
-
decode
- Mappings:
Namespace Name Mixin selector named decodeLnet/minecraft/nbt/SnbtParsing$IntValue;decode(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/util/packrat/ParsingState;)Ljava/lang/Object;intermediary method_68649Lnet/minecraft/class_10900$class_10903;method_68649(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_9393;)Ljava/lang/Object;official aLuu$c;a(Lcom/mojang/serialization/DynamicOps;Lbqk;)Ljava/lang/Object;
-
decode
@Nullable public <T> T decode(com.mojang.serialization.DynamicOps<T> ops, SnbtParsing.NumericType type, ParsingState<?> state) - Mappings:
Namespace Name Mixin selector named decodeLnet/minecraft/nbt/SnbtParsing$IntValue;decode(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/nbt/SnbtParsing$NumericType;Lnet/minecraft/util/packrat/ParsingState;)Ljava/lang/Object;intermediary method_68650Lnet/minecraft/class_10900$class_10903;method_68650(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_10900$class_10909;Lnet/minecraft/class_9393;)Ljava/lang/Object;official aLuu$c;a(Lcom/mojang/serialization/DynamicOps;Luu$i;Lbqk;)Ljava/lang/Object;
-
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). -
sign
Returns the value of thesignrecord component.- Returns:
- the value of the
signrecord component
-
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
digits
Returns the value of thedigitsrecord component.- Returns:
- the value of the
digitsrecord component
-
suffix
Returns the value of thesuffixrecord component.- Returns:
- the value of the
suffixrecord component
-