Package net.kyori.adventure.nbt
Interface DoubleBinaryTag
- All Superinterfaces:
BinaryTag
,net.kyori.examination.Examinable
,NumberBinaryTag
public interface DoubleBinaryTag extends NumberBinaryTag
A binary tag holding a
double
value.- Since:
- 4.0.0
-
Method Summary
Modifier and Type Method Description static @NonNull DoubleBinaryTag
of(double value)
Creates a binary tag holding adouble
value.default @NonNull BinaryTagType<DoubleBinaryTag>
type()
Gets the tag type.double
value()
Gets the value.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 Details
-
of
Creates a binary tag holding adouble
value.- Parameters:
value
- the value- Returns:
- a binary tag
- Since:
- 4.0.0
-
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
double value()Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-