Package net.kyori.adventure.nbt
Interface NumberBinaryTag
-
- All Superinterfaces:
BinaryTag
,BinaryTagLike
,net.kyori.examination.Examinable
- All Known Subinterfaces:
ByteBinaryTag
,DoubleBinaryTag
,FloatBinaryTag
,IntBinaryTag
,LongBinaryTag
,ShortBinaryTag
public interface NumberBinaryTag extends BinaryTag
A numeric binary tag.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte
byteValue()
Gets the value as abyte
.double
doubleValue()
Gets the value as adouble
.float
floatValue()
Gets the value as afloat
.int
intValue()
Gets the value as aint
.long
longValue()
Gets the value as along
.short
shortValue()
Gets the value as ashort
.@NotNull BinaryTagType<? extends NumberBinaryTag>
type()
Gets the tag type.-
Methods inherited from interface net.kyori.adventure.nbt.BinaryTag
asBinaryTag
-
-
-
-
Method Detail
-
type
@NotNull @NotNull BinaryTagType<? extends NumberBinaryTag> type()
Description copied from interface:BinaryTag
Gets the tag type.
-
byteValue
byte byteValue()
Gets the value as abyte
.- Returns:
- the value as a
byte
- Since:
- 4.0.0
-
doubleValue
double doubleValue()
Gets the value as adouble
.- Returns:
- the value as a
double
- Since:
- 4.0.0
-
floatValue
float floatValue()
Gets the value as afloat
.- Returns:
- the value as a
float
- Since:
- 4.0.0
-
intValue
int intValue()
Gets the value as aint
.- Returns:
- the value as a
int
- Since:
- 4.0.0
-
longValue
long longValue()
Gets the value as along
.- Returns:
- the value as a
long
- Since:
- 4.0.0
-
shortValue
short shortValue()
Gets the value as ashort
.- Returns:
- the value as a
short
- Since:
- 4.0.0
-
-