Package net.minecraft.nbt
Class AbstractNbtNumber
java.lang.Object
net.minecraft.nbt.NbtElement
net.minecraft.nbt.AbstractNbtNumber
- Mappings:
Namespace Name official gkintermediary net/minecraft/class_1947named net/minecraft/nbt/AbstractNbtNumber
-
Field Summary
Fields inherited from class net.minecraft.nbt.NbtElement
TYPES -
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 shortGets the value as a 16-bit integer.Methods inherited from class net.minecraft.nbt.NbtElement
asString, copy, createFromType, equals, getType, getTypeName, hashCode, isEmpty, read, toString, 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 official dLgk;d()Jintermediary method_7371Lnet/minecraft/class_1947;method_7371()Jnamed longValueLnet/minecraft/nbt/AbstractNbtNumber;longValue()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 official eLgk;e()Iintermediary method_7372Lnet/minecraft/class_1947;method_7372()Inamed intValueLnet/minecraft/nbt/AbstractNbtNumber;intValue()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 official fLgk;f()Sintermediary method_7373Lnet/minecraft/class_1947;method_7373()Snamed shortValueLnet/minecraft/nbt/AbstractNbtNumber;shortValue()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 official gLgk;g()Bintermediary method_7374Lnet/minecraft/class_1947;method_7374()Bnamed byteValueLnet/minecraft/nbt/AbstractNbtNumber;byteValue()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 official hLgk;h()Dintermediary method_7375Lnet/minecraft/class_1947;method_7375()Dnamed doubleValueLnet/minecraft/nbt/AbstractNbtNumber;doubleValue()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 official iLgk;i()Fintermediary method_7376Lnet/minecraft/class_1947;method_7376()Fnamed floatValueLnet/minecraft/nbt/AbstractNbtNumber;floatValue()F
-