Package net.minecraft.nbt
Class AbstractNbtNumber
java.lang.Object
net.minecraft.nbt.AbstractNbtNumber
- All Implemented Interfaces:
 NbtElement
Represents an NBT number.
 
 The type NUMBER_TYPE can be used to
 check for the existence of any numeric element in a NBT compound object.
- Mappings:
 Namespace Name named net/minecraft/nbt/AbstractNbtNumberintermediary net/minecraft/class_2514official ur
- 
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, NUMBER_TYPE, SHORT_TYPE, STRING_TYPE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract byteGets the value as an 8-bit integer.abstract doubleGets the value as a 64-bit floating-point number.abstract floatGets the value as a 32-bit floating-point number.abstract intintValue()Gets the value as a 32-bit integer.abstract longGets the value as a 64-bit integer.abstract NumberGets the value as a generic number.abstract shortGets the value as a 16-bit integer.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.nbt.NbtElement
accept, accept, asString, copy, doAccept, getNbtType, getSizeInBytes, getType, write 
- 
Constructor Details
- 
AbstractNbtNumber
protected AbstractNbtNumber() 
 - 
 - 
Method Details
- 
longValue
public abstract 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 fLur;f()J
 - 
intValue
public abstract 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 gLur;g()I
 - 
shortValue
public abstract 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 hLur;h()S
 - 
byteValue
public abstract 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 iLur;i()B
 - 
doubleValue
public abstract 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 jLur;j()D
 - 
floatValue
public abstract 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 kLur;k()F
 - 
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 lLur;l()Ljava/lang/Number;
 - 
toString
- Specified by:
 toStringin interfaceNbtElement- Overrides:
 toStringin classObject
 
 -