类 AbstractNumberTag
- java.lang.Object
-
- net.minecraft.nbt.AbstractNumberTag
-
- 所有已实现的接口:
Tag
public abstract class AbstractNumberTag extends Object implements Tag
Represents an NBT number.The type
NUMBER_TYPEcan be used to check for the existence of any numeric element in a NBT compound object.- Mappings:
Namespace Name official niintermediary net/minecraft/class_2514named net/minecraft/nbt/AbstractNumberTag
-
-
字段概要
-
从接口继承的字段 net.minecraft.nbt.Tag
BYTE_ARRAY_TYPE, BYTE_TYPE, COMPOUND_TYPE, DOUBLE_TYPE, field_33246, field_33247, field_33248, field_33249, field_33264, FLOAT_TYPE, INT_ARRAY_TYPE, INT_TYPE, LIST_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, NULL_TYPE, NUMBER_TYPE, SHORT_TYPE, STRING_TYPE
-
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractNumberTag()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract bytebyteValue()Gets the value as an 8-bit integer.abstract doubledoubleValue()Gets the value as a 64-bit floating-point number.abstract floatfloatValue()Gets the value as a 32-bit floating-point number.abstract intintValue()Gets the value as a 32-bit integer.abstract longlongValue()Gets the value as a 64-bit integer.abstract NumbernumberValue()Gets the value as a generic number.abstract shortshortValue()Gets the value as a 16-bit integer.StringtoString()
-
-
-
方法详细资料
-
longValue
public abstract long longValue()
Gets the value as a 64-bit integer.- 返回:
- the value as a long
- Mappings:
Namespace Name Mixin selector official eLni;e()Jintermediary method_10699Lnet/minecraft/class_2514;method_10699()Jnamed longValueLnet/minecraft/nbt/AbstractNumberTag;longValue()J
-
intValue
public abstract int intValue()
Gets the value as a 32-bit integer.- 返回:
- the value as an int
- Mappings:
Namespace Name Mixin selector official fLni;f()Iintermediary method_10701Lnet/minecraft/class_2514;method_10701()Inamed intValueLnet/minecraft/nbt/AbstractNumberTag;intValue()I
-
shortValue
public abstract short shortValue()
Gets the value as a 16-bit integer.- 返回:
- the value as a short
- Mappings:
Namespace Name Mixin selector official gLni;g()Sintermediary method_10696Lnet/minecraft/class_2514;method_10696()Snamed shortValueLnet/minecraft/nbt/AbstractNumberTag;shortValue()S
-
byteValue
public abstract byte byteValue()
Gets the value as an 8-bit integer.- 返回:
- the value as a byte
- Mappings:
Namespace Name Mixin selector official hLni;h()Bintermediary method_10698Lnet/minecraft/class_2514;method_10698()Bnamed byteValueLnet/minecraft/nbt/AbstractNumberTag;byteValue()B
-
doubleValue
public abstract double doubleValue()
Gets the value as a 64-bit floating-point number.- 返回:
- the value as a double
- Mappings:
Namespace Name Mixin selector official iLni;i()Dintermediary method_10697Lnet/minecraft/class_2514;method_10697()Dnamed doubleValueLnet/minecraft/nbt/AbstractNumberTag;doubleValue()D
-
floatValue
public abstract float floatValue()
Gets the value as a 32-bit floating-point number.- 返回:
- the value as a float
- Mappings:
Namespace Name Mixin selector official jLni;j()Fintermediary method_10700Lnet/minecraft/class_2514;method_10700()Fnamed floatValueLnet/minecraft/nbt/AbstractNumberTag;floatValue()F
-
numberValue
public abstract Number numberValue()
Gets the value as a generic number.- 返回:
- the value as a
Number - Mappings:
Namespace Name Mixin selector official kLni;k()Ljava/lang/Number;intermediary method_10702Lnet/minecraft/class_2514;method_10702()Ljava/lang/Number;named numberValueLnet/minecraft/nbt/AbstractNumberTag;numberValue()Ljava/lang/Number;
-
toString
public String toString()
-
-