Package net.kyori.adventure.nbt
Class BinaryTagType<T extends BinaryTag>
java.lang.Object
net.kyori.adventure.nbt.BinaryTagType<T>
- Type Parameters:
T
- the tag type
- All Implemented Interfaces:
Predicate<BinaryTagType<? extends BinaryTag>>
public abstract class BinaryTagType<T extends BinaryTag> extends Object implements Predicate<BinaryTagType<? extends BinaryTag>>
A binary tag type.
- Since:
- 4.0.0
-
Constructor Summary
Constructors Constructor Description BinaryTagType()
-
Method Summary
Modifier and Type Method Description abstract byte
id()
Gets the id.abstract @NonNull T
read(@NonNull DataInput input)
Reads a tag.boolean
test(BinaryTagType<? extends BinaryTag> that)
abstract void
write(@NonNull T tag, @NonNull DataOutput output)
Writes a tag.
-
Constructor Details
-
BinaryTagType
public BinaryTagType()
-
-
Method Details
-
id
public abstract byte id()Gets the id.- Returns:
- the id
- Since:
- 4.0.0
-
read
Reads a tag.- Parameters:
input
- the input- Returns:
- the tag
- Throws:
IOException
- if an exception was encountered while reading- Since:
- 4.0.0
-
write
Writes a tag.- Parameters:
tag
- the tagoutput
- the output- Throws:
IOException
- if an exception was encountered while writing- Since:
- 4.0.0
-
test
-