Package net.kyori.adventure.nbt
Interface ByteBinaryTag
- All Superinterfaces:
BinaryTag
,BinaryTagLike
,net.kyori.examination.Examinable
,NumberBinaryTag
public interface ByteBinaryTag extends NumberBinaryTag
A binary tag holding a
byte
value.- Since:
- 4.0.0
-
Field Summary
Fields Modifier and Type Field Description static ByteBinaryTag
ONE
A tag with the value1
.static ByteBinaryTag
ZERO
A tag with the value0
. -
Method Summary
Modifier and Type Method Description static @NonNull ByteBinaryTag
of(byte value)
Creates a binary tag holding abyte
value.default @NonNull BinaryTagType<ByteBinaryTag>
type()
Gets the tag type.byte
value()
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
-
Field Details
-
ZERO
A tag with the value0
.- Since:
- 4.0.0
-
ONE
A tag with the value1
.- Since:
- 4.0.0
-
-
Method Details
-
of
Creates a binary tag holding abyte
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
byte value()Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-