Package net.minecraft.nbt
Class AbstractNbtNumber
java.lang.Object
net.minecraft.nbt.AbstractNbtNumber
- All Implemented Interfaces:
class_4373
- Mappings:
Namespace Name official hlintermediary net/minecraft/class_1947named net/minecraft/nbt/AbstractNbtNumber
-
Field Summary
Fields inherited from interface net.minecraft.class_4373
field_21488, field_21489, field_21490, field_21491, field_21492 -
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.class_4373
method_1645, method_1649, method_1650, method_1651, method_20146, method_20147, method_7370, toString
-
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 dLhl;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 eLhl;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 fLhl;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 gLhl;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 hLhl;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 iLhl;i()Fintermediary method_7376Lnet/minecraft/class_1947;method_7376()Fnamed floatValueLnet/minecraft/nbt/AbstractNbtNumber;floatValue()F
-
numberValue
Gets the value as a generic number.- Returns:
- the value as a
Number - Mappings:
Namespace Name Mixin selector official jLhl;j()Ljava/lang/Number;intermediary method_20143Lnet/minecraft/class_1947;method_20143()Ljava/lang/Number;named numberValueLnet/minecraft/nbt/AbstractNbtNumber;numberValue()Ljava/lang/Number;
-