Package net.kyori.adventure.nbt
Interface ByteBinaryTag
- All Superinterfaces:
BinaryTag,BinaryTagLike,net.kyori.examination.Examinable,NumberBinaryTag
A binary tag holding a
byte value.- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ByteBinaryTagA tag with the value1.static final ByteBinaryTagA tag with the value0. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ByteBinaryTagbyteBinaryTag(byte value) Creates a binary tag holding abytevalue.static @NotNull ByteBinaryTagof(byte value) Deprecated.default @NotNull BinaryTagType<ByteBinaryTag>type()Gets the tag type.bytevalue()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
-
Field Details
-
ZERO
A tag with the value0.- Since:
- 4.0.0
-
ONE
A tag with the value1.- Since:
- 4.0.0
-
-
Method Details
-
byteBinaryTag
Creates a binary tag holding abytevalue.- Parameters:
value- the value- Returns:
- a binary tag
- Since:
- 4.14.0
-
of
@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull static @NotNull ByteBinaryTag of(byte value) Deprecated.for removal since 4.14.0, usebyteBinaryTag(byte)instead.Creates a binary tag holding abytevalue.- 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
byte value()Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-
byteBinaryTag(byte)instead.