Package net.minecraft.nbt
Class NbtInt
java.lang.Object
net.minecraft.nbt.NbtElement
net.minecraft.nbt.AbstractNbtNumber
net.minecraft.nbt.NbtInt
- Mappings:
Namespace Name official fuintermediary net/minecraft/class_451named net/minecraft/nbt/NbtInt
-
Field Summary
FieldsFields inherited from class net.minecraft.nbt.NbtElement
TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteGets the value as an 8-bit integer.copy()doubleGets the value as a 64-bit floating-point number.booleanfloatGets the value as a 32-bit floating-point number.bytegetType()inthashCode()intintValue()Gets the value as a 32-bit integer.longGets the value as a 64-bit integer.(package private) voidread(DataInput input, int depth, PositionTracker tracker) shortGets the value as a 16-bit integer.toString()(package private) voidwrite(DataOutput output) Methods inherited from class net.minecraft.nbt.NbtElement
asString, createFromType, isEmpty
-
Field Details
-
value
private int value- Mappings:
Namespace Name Mixin selector official bLfu;b:Iintermediary field_1518Lnet/minecraft/class_451;field_1518:Inamed valueLnet/minecraft/nbt/NbtInt;value:I
-
-
Constructor Details
-
NbtInt
NbtInt() -
NbtInt
public NbtInt(int value) - Mappings:
Namespace Name Mixin selector official <init>Lfu;<init>(I)Vintermediary <init>Lnet/minecraft/class_451;<init>(I)Vnamed <init>Lnet/minecraft/nbt/NbtInt;<init>(I)V
-
-
Method Details
-
write
- Specified by:
writein classNbtElement- Mappings:
Namespace Name Mixin selector official aLgd;a(Ljava/io/DataOutput;)Vintermediary method_1650Lnet/minecraft/class_605;method_1650(Ljava/io/DataOutput;)Vnamed writeLnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
-
read
- Specified by:
readin classNbtElement- Mappings:
Namespace Name Mixin selector official aLgd;a(Ljava/io/DataInput;ILfx;)Vintermediary method_1649Lnet/minecraft/class_605;method_1649(Ljava/io/DataInput;ILnet/minecraft/class_1944;)Vnamed readLnet/minecraft/nbt/NbtElement;read(Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)V
-
getType
public byte getType()- Specified by:
getTypein classNbtElement- Mappings:
Namespace Name Mixin selector official aLgd;a()Bintermediary method_1645Lnet/minecraft/class_605;method_1645()Bnamed getTypeLnet/minecraft/nbt/NbtElement;getType()B
-
toString
- Specified by:
toStringin classNbtElement- Mappings:
Namespace Name Mixin selector official toStringLgd;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_605;toString()Ljava/lang/String;named toStringLnet/minecraft/nbt/NbtElement;toString()Ljava/lang/String;
-
copy
- Specified by:
copyin classNbtElement- Mappings:
Namespace Name Mixin selector official bLgd;b()Lgd;intermediary method_1651Lnet/minecraft/class_605;method_1651()Lnet/minecraft/class_605;named copyLnet/minecraft/nbt/NbtElement;copy()Lnet/minecraft/nbt/NbtElement;
-
equals
- Overrides:
equalsin classNbtElement- Mappings:
Namespace Name Mixin selector official equalsLgd;equals(Ljava/lang/Object;)Zintermediary equalsLnet/minecraft/class_605;equals(Ljava/lang/Object;)Znamed equalsLnet/minecraft/nbt/NbtElement;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode()- Overrides:
hashCodein classNbtElement- Mappings:
Namespace Name Mixin selector official hashCodeLgd;hashCode()Iintermediary hashCodeLnet/minecraft/class_605;hashCode()Inamed hashCodeLnet/minecraft/nbt/NbtElement;hashCode()I
-
longValue
public long longValue()Gets the value as a 64-bit integer.- Specified by:
longValuein classAbstractNbtNumber- Returns:
- the value as a long
- Mappings:
Namespace Name Mixin selector official cLge;c()Jintermediary method_7371Lnet/minecraft/class_1947;method_7371()Jnamed longValueLnet/minecraft/nbt/AbstractNbtNumber;longValue()J
-
intValue
public int intValue()Gets the value as a 32-bit integer.- Specified by:
intValuein classAbstractNbtNumber- Returns:
- the value as an int
- Mappings:
Namespace Name Mixin selector official dLge;d()Iintermediary method_7372Lnet/minecraft/class_1947;method_7372()Inamed intValueLnet/minecraft/nbt/AbstractNbtNumber;intValue()I
-
shortValue
public short shortValue()Gets the value as a 16-bit integer.- Specified by:
shortValuein classAbstractNbtNumber- Returns:
- the value as a short
- Mappings:
Namespace Name Mixin selector official eLge;e()Sintermediary method_7373Lnet/minecraft/class_1947;method_7373()Snamed shortValueLnet/minecraft/nbt/AbstractNbtNumber;shortValue()S
-
byteValue
public byte byteValue()Gets the value as an 8-bit integer.- Specified by:
byteValuein classAbstractNbtNumber- Returns:
- the value as a byte
- Mappings:
Namespace Name Mixin selector official fLge;f()Bintermediary method_7374Lnet/minecraft/class_1947;method_7374()Bnamed byteValueLnet/minecraft/nbt/AbstractNbtNumber;byteValue()B
-
doubleValue
public double doubleValue()Gets the value as a 64-bit floating-point number.- Specified by:
doubleValuein classAbstractNbtNumber- Returns:
- the value as a double
- Mappings:
Namespace Name Mixin selector official gLge;g()Dintermediary method_7375Lnet/minecraft/class_1947;method_7375()Dnamed doubleValueLnet/minecraft/nbt/AbstractNbtNumber;doubleValue()D
-
floatValue
public float floatValue()Gets the value as a 32-bit floating-point number.- Specified by:
floatValuein classAbstractNbtNumber- Returns:
- the value as a float
- Mappings:
Namespace Name Mixin selector official hLge;h()Fintermediary method_7376Lnet/minecraft/class_1947;method_7376()Fnamed floatValueLnet/minecraft/nbt/AbstractNbtNumber;floatValue()F
-