Package net.kyori.adventure.nbt
Interface ShortBinaryTag
-
- All Superinterfaces:
BinaryTag,BinaryTagLike,net.kyori.examination.Examinable,NumberBinaryTag
public interface ShortBinaryTag extends NumberBinaryTag
A binary tag holding ashortvalue.- 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 ShortBinaryTagof(short value)Deprecated.for removal since 4.14.0, useshortBinaryTag(short)instead.static @NotNull ShortBinaryTagshortBinaryTag(short value)Creates a binary tag holding ashortvalue.default @NotNull BinaryTagType<ShortBinaryTag>type()Gets the tag type.shortvalue()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
-
shortBinaryTag
@NotNull static @NotNull ShortBinaryTag shortBinaryTag(short value)
Creates a binary tag holding ashortvalue.- Parameters:
value- the value- Returns:
- a binary tag
- Since:
- 4.14.0
-
of
@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull static @NotNull ShortBinaryTag of(short value)
Deprecated.for removal since 4.14.0, useshortBinaryTag(short)instead.Creates a binary tag holding ashortvalue.- Parameters:
value- the value- Returns:
- a binary tag
- Since:
- 4.0.0
-
type
@NotNull default @NotNull BinaryTagType<ShortBinaryTag> 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
-
-