Interface ShortBinaryTag
- All Superinterfaces:
BinaryTag, BinaryTagLike, NumberBinaryTag
A binary tag holding a
short value.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ShortBinaryTagshortBinaryTag(short value) Creates a binary tag holding ashortvalue.default BinaryTagType<ShortBinaryTag> type()Gets the tag type.shortvalue()Gets the value.Methods inherited from interface BinaryTag
asBinaryTagMethods inherited from interface NumberBinaryTag
byteValue, doubleValue, floatValue, intValue, longValue, numberValue, shortValue
-
Method Details
-
shortBinaryTag
Creates a binary tag holding ashortvalue.- Parameters:
value- the value- Returns:
- a binary tag
- Since:
- 4.14.0
-
type
Description copied from interface:BinaryTagGets the tag type.- Specified by:
typein interfaceBinaryTag- Specified by:
typein interfaceNumberBinaryTag- Returns:
- the tag type
-
value
short value()Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-