Package net.minecraft.nbt
Record Class SnbtParsing.NumberSuffix
java.lang.Object
java.lang.Record
net.minecraft.nbt.SnbtParsing.NumberSuffix
- Record Components:
signed-type-
- Enclosing class:
SnbtParsing
private static record SnbtParsing.NumberSuffix(@Nullable SnbtParsing.Signedness signed, @Nullable SnbtParsing.NumericType type)
extends Record
- Mappings:
Namespace Name named net/minecraft/nbt/SnbtParsing$NumberSuffixintermediary net/minecraft/class_10900$class_10904official uu$dnamed signedintermediary comp_3827official bnamed typeintermediary comp_3828official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SnbtParsing.NumberSuffixprivate final @Nullable SnbtParsing.SignednessThe field for thesignedrecord component.private final @Nullable SnbtParsing.NumericTypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNumberSuffix(@Nullable SnbtParsing.Signedness signedness, @Nullable SnbtParsing.NumericType numericType) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.signed()Returns the value of thesignedrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
signed
The field for thesignedrecord component. -
type
The field for thetyperecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/nbt/SnbtParsing$NumberSuffix;DEFAULT:Lnet/minecraft/nbt/SnbtParsing$NumberSuffix;intermediary field_58013Lnet/minecraft/class_10900$class_10904;field_58013:Lnet/minecraft/class_10900$class_10904;official aLuu$d;a:Luu$d;
-
-
Constructor Details
-
NumberSuffix
NumberSuffix(@Nullable @Nullable SnbtParsing.Signedness signedness, @Nullable @Nullable SnbtParsing.NumericType numericType)
-
-
Method Details
-
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). -
signed
Returns the value of thesignedrecord component.- Returns:
- the value of the
signedrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-