Package net.kyori.adventure.nbt
Interface FloatBinaryTag
-
- All Superinterfaces:
BinaryTag
,BinaryTagLike
,net.kyori.examination.Examinable
,NumberBinaryTag
public interface FloatBinaryTag extends NumberBinaryTag
A binary tag holding afloat
value.- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static @NotNull FloatBinaryTag
floatBinaryTag(float value)
Creates a binary tag holding afloat
value.static @NotNull FloatBinaryTag
of(float value)
Deprecated.for removal since 4.14.0, usefloatBinaryTag(float)
instead.default @NotNull BinaryTagType<FloatBinaryTag>
type()
Gets the tag type.float
value()
Gets the value.-
Methods inherited from interface net.kyori.adventure.nbt.BinaryTag
asBinaryTag
-
Methods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examine
-
Methods inherited from interface net.kyori.adventure.nbt.NumberBinaryTag
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
-
-
-
-
Method Detail
-
floatBinaryTag
@NotNull static @NotNull FloatBinaryTag floatBinaryTag(float value)
Creates a binary tag holding afloat
value.- Parameters:
value
- the value- Returns:
- a binary tag
- Since:
- 4.14.0
-
of
@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull static @NotNull FloatBinaryTag of(float value)
Deprecated.for removal since 4.14.0, usefloatBinaryTag(float)
instead.Creates a binary tag holding afloat
value.- Parameters:
value
- the value- Returns:
- a binary tag
- Since:
- 4.0.0
-
type
@NotNull default @NotNull BinaryTagType<FloatBinaryTag> type()
Description copied from interface:BinaryTag
Gets the tag type.- Specified by:
type
in interfaceBinaryTag
- Specified by:
type
in interfaceNumberBinaryTag
- Returns:
- the tag type
-
value
float value()
Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-
-