Package net.minecraft.nbt
Interface AbstractNbtNumber
- All Superinterfaces:
 NbtElement,NbtPrimitive
Represents an NBT number.
- Mappings:
 Namespace Name named net/minecraft/nbt/AbstractNbtNumberintermediary net/minecraft/class_2514official uy
- 
Field Summary
Fields inherited from interface net.minecraft.nbt.NbtElement
BYTE_ARRAY_TYPE, BYTE_TYPE, COMPOUND_TYPE, DOUBLE_TYPE, END_TYPE, field_33246, field_33247, field_33248, field_33249, FLOAT_TYPE, INT_ARRAY_TYPE, INT_TYPE, LIST_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, MAX_DEPTH, SHORT_TYPE, STRING_TYPE - 
Method Summary
Modifier and TypeMethodDescriptionasByte()asDouble()asFloat()asInt()asLong()asNumber()asShort()byteGets the value as an 8-bit integer.doubleGets the value as a 64-bit floating-point number.floatGets the value as a 32-bit floating-point number.intintValue()Gets the value as a 32-bit integer.longGets the value as a 64-bit integer.Gets the value as a generic number.shortGets the value as a 16-bit integer.Methods inherited from interface net.minecraft.nbt.NbtElement
accept, accept, asByteArray, asCompound, asIntArray, asLongArray, asNbtList, asString, doAccept, getNbtType, getSizeInBytes, getType, toString, writeMethods inherited from interface net.minecraft.nbt.NbtPrimitive
copy 
- 
Method Details
- 
byteValue
byte byteValue()Gets the value as an 8-bit integer.- Returns:
 - the value as a byte
 - Mappings:
 Namespace Name Mixin selector named byteValueLnet/minecraft/nbt/AbstractNbtNumber;byteValue()Bintermediary method_10698Lnet/minecraft/class_2514;method_10698()Bofficial jLuy;j()B
 - 
shortValue
short shortValue()Gets the value as a 16-bit integer.- Returns:
 - the value as a short
 - Mappings:
 Namespace Name Mixin selector named shortValueLnet/minecraft/nbt/AbstractNbtNumber;shortValue()Sintermediary method_10696Lnet/minecraft/class_2514;method_10696()Sofficial iLuy;i()S
 - 
intValue
int intValue()Gets the value as a 32-bit integer.- Returns:
 - the value as an int
 - Mappings:
 Namespace Name Mixin selector named intValueLnet/minecraft/nbt/AbstractNbtNumber;intValue()Iintermediary method_10701Lnet/minecraft/class_2514;method_10701()Iofficial hLuy;h()I
 - 
longValue
long longValue()Gets the value as a 64-bit integer.- Returns:
 - the value as a long
 - Mappings:
 Namespace Name Mixin selector named longValueLnet/minecraft/nbt/AbstractNbtNumber;longValue()Jintermediary method_10699Lnet/minecraft/class_2514;method_10699()Jofficial gLuy;g()J
 - 
floatValue
float floatValue()Gets the value as a 32-bit floating-point number.- Returns:
 - the value as a float
 - Mappings:
 Namespace Name Mixin selector named floatValueLnet/minecraft/nbt/AbstractNbtNumber;floatValue()Fintermediary method_10700Lnet/minecraft/class_2514;method_10700()Fofficial lLuy;l()F
 - 
doubleValue
double doubleValue()Gets the value as a 64-bit floating-point number.- Returns:
 - the value as a double
 - Mappings:
 Namespace Name Mixin selector named doubleValueLnet/minecraft/nbt/AbstractNbtNumber;doubleValue()Dintermediary method_10697Lnet/minecraft/class_2514;method_10697()Dofficial kLuy;k()D
 - 
numberValue
Number numberValue()Gets the value as a generic number.- Returns:
 - the value as a 
Number - Mappings:
 Namespace Name Mixin selector named numberValueLnet/minecraft/nbt/AbstractNbtNumber;numberValue()Ljava/lang/Number;intermediary method_10702Lnet/minecraft/class_2514;method_10702()Ljava/lang/Number;official mLuy;m()Ljava/lang/Number;
 - 
asNumber
- Specified by:
 asNumberin interfaceNbtElement- Mappings:
 Namespace Name Mixin selector named asNumberLnet/minecraft/nbt/NbtElement;asNumber()Ljava/util/Optional;intermediary method_68599Lnet/minecraft/class_2520;method_68599()Ljava/util/Optional;official oLvi;o()Ljava/util/Optional;
 - 
asByte
- Specified by:
 asBytein interfaceNbtElement- Mappings:
 Namespace Name Mixin selector named asByteLnet/minecraft/nbt/NbtElement;asByte()Ljava/util/Optional;intermediary method_68600Lnet/minecraft/class_2520;method_68600()Ljava/util/Optional;official pLvi;p()Ljava/util/Optional;
 - 
asShort
- Specified by:
 asShortin interfaceNbtElement- Mappings:
 Namespace Name Mixin selector named asShortLnet/minecraft/nbt/NbtElement;asShort()Ljava/util/Optional;intermediary method_68601Lnet/minecraft/class_2520;method_68601()Ljava/util/Optional;official qLvi;q()Ljava/util/Optional;
 - 
asInt
- Specified by:
 asIntin interfaceNbtElement- Mappings:
 Namespace Name Mixin selector named asIntLnet/minecraft/nbt/NbtElement;asInt()Ljava/util/Optional;intermediary method_68602Lnet/minecraft/class_2520;method_68602()Ljava/util/Optional;official rLvi;r()Ljava/util/Optional;
 - 
asLong
- Specified by:
 asLongin interfaceNbtElement- Mappings:
 Namespace Name Mixin selector named asLongLnet/minecraft/nbt/NbtElement;asLong()Ljava/util/Optional;intermediary method_68603Lnet/minecraft/class_2520;method_68603()Ljava/util/Optional;official sLvi;s()Ljava/util/Optional;
 - 
asFloat
- Specified by:
 asFloatin interfaceNbtElement- Mappings:
 Namespace Name Mixin selector named asFloatLnet/minecraft/nbt/NbtElement;asFloat()Ljava/util/Optional;intermediary method_68604Lnet/minecraft/class_2520;method_68604()Ljava/util/Optional;official tLvi;t()Ljava/util/Optional;
 - 
asDouble
- Specified by:
 asDoublein interfaceNbtElement- Mappings:
 Namespace Name Mixin selector named asDoubleLnet/minecraft/nbt/NbtElement;asDouble()Ljava/util/Optional;intermediary method_68605Lnet/minecraft/class_2520;method_68605()Ljava/util/Optional;official uLvi;u()Ljava/util/Optional;
 - 
asBoolean
- Specified by:
 asBooleanin interfaceNbtElement- Mappings:
 Namespace Name Mixin selector named asBooleanLnet/minecraft/nbt/NbtElement;asBoolean()Ljava/util/Optional;intermediary method_68606Lnet/minecraft/class_2520;method_68606()Ljava/util/Optional;official vLvi;v()Ljava/util/Optional;
 
 -