Package net.kyori.adventure.nbt
Interface DoubleBinaryTag
- All Superinterfaces:
BinaryTag,BinaryTagLike,net.kyori.examination.Examinable,NumberBinaryTag
A binary tag holding a
double value.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull DoubleBinaryTagdoubleBinaryTag(double value) Creates a binary tag holding adoublevalue.static @NotNull DoubleBinaryTagof(double value) Deprecated.default @NotNull BinaryTagType<DoubleBinaryTag>type()Gets the tag type.doublevalue()Gets the value.Methods inherited from interface net.kyori.adventure.nbt.BinaryTag
asBinaryTagMethods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examineMethods inherited from interface net.kyori.adventure.nbt.NumberBinaryTag
byteValue, doubleValue, floatValue, intValue, longValue, numberValue, shortValue
-
Method Details
-
doubleBinaryTag
Creates a binary tag holding adoublevalue.- Parameters:
value- the value- Returns:
- a binary tag
- Since:
- 4.14.0
-
of
@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull static @NotNull DoubleBinaryTag of(double value) Deprecated.for removal since 4.14.0, usedoubleBinaryTag(double)instead.Creates a binary tag holding adoublevalue.- Parameters:
value- the value- Returns:
- a binary tag
- Since:
- 4.0.0
-
type
Description copied from interface:BinaryTagGets the tag type.- Specified by:
typein interfaceBinaryTag- Specified by:
typein interfaceNumberBinaryTag- Returns:
- the tag type
-
value
double value()Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-
doubleBinaryTag(double)instead.