Package net.minecraft.nbt
Class NbtFloat
java.lang.Object
net.minecraft.nbt.NbtElement
net.minecraft.nbt.AbstractNbtNumber
net.minecraft.nbt.NbtFloat
- Mappings:
Namespace Name official gbintermediary net/minecraft/class_401named net/minecraft/nbt/NbtFloat
-
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, getTypeName, isEmpty
-
Field Details
-
value
private float value- Mappings:
Namespace Name Mixin selector official bLgb;b:Fintermediary field_1324Lnet/minecraft/class_401;field_1324:Fnamed valueLnet/minecraft/nbt/NbtFloat;value:F
-
-
Constructor Details
-
NbtFloat
NbtFloat() -
NbtFloat
public NbtFloat(float value) - Mappings:
Namespace Name Mixin selector official <init>Lgb;<init>(F)Vintermediary <init>Lnet/minecraft/class_401;<init>(F)Vnamed <init>Lnet/minecraft/nbt/NbtFloat;<init>(F)V
-
-
Method Details
-
write
- Specified by:
writein classNbtElement- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLgn;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- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLgn;a(Ljava/io/DataInput;ILgh;)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 aLgn;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 toStringLgn;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 cLgb;c()Lgb;intermediary method_13473Lnet/minecraft/class_401;method_13473()Lnet/minecraft/class_401;named copyLnet/minecraft/nbt/NbtFloat;copy()Lnet/minecraft/nbt/NbtFloat;
-
equals
- Overrides:
equalsin classNbtElement- Mappings:
Namespace Name Mixin selector official equalsLgn;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 hashCodeLgn;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 dLgk;d()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 eLgk;e()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 fLgk;f()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 gLgk;g()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 hLgk;h()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 iLgk;i()Fintermediary method_7376Lnet/minecraft/class_1947;method_7376()Fnamed floatValueLnet/minecraft/nbt/AbstractNbtNumber;floatValue()F
-