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 abyte
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
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static @NotNull ByteBinaryTag
byteBinaryTag(byte value)
Creates a binary tag holding abyte
value.static @NotNull ByteBinaryTag
of(byte value)
Deprecated.for removal since 4.14.0, usebyteBinaryTag(byte)
instead.default @NotNull 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 Detail
-
ZERO
static final ByteBinaryTag ZERO
A tag with the value0
.- Since:
- 4.0.0
-
ONE
static final ByteBinaryTag ONE
A tag with the value1
.- Since:
- 4.0.0
-
-
Method Detail
-
byteBinaryTag
@NotNull static @NotNull ByteBinaryTag byteBinaryTag(byte value)
Creates a binary tag holding abyte
value.- 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 abyte
value.- Parameters:
value
- the value- Returns:
- a binary tag
- Since:
- 4.0.0
-
type
@NotNull default @NotNull BinaryTagType<ByteBinaryTag> 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
-
-