Class TagType
java.lang.Object
com.viaversion.viaversion.api.type.Type<com.viaversion.nbt.tag.Tag>
com.viaversion.viaversion.api.type.types.misc.TagType
- All Implemented Interfaces:
ByteBufReader<com.viaversion.nbt.tag.Tag>
,ByteBufWriter<com.viaversion.nbt.tag.Tag>
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class com.viaversion.viaversion.api.type.Type
getBaseClass, getOutputClass, getTypeName, readEither, toString, writeEither
-
Constructor Details
-
TagType
public TagType()
-
-
Method Details
-
read
public com.viaversion.nbt.tag.Tag read(io.netty.buffer.ByteBuf buffer) Description copied from interface:ByteBufReader
Reads a value from a ByteBuf.- Parameters:
buffer
- buffer to read from- Returns:
- type based on the class type
-
write
public void write(io.netty.buffer.ByteBuf buffer, com.viaversion.nbt.tag.Tag tag) Description copied from interface:ByteBufWriter
Writes an object to a type to a ByteBuf.- Parameters:
buffer
- buffer to write totag
- value to write
-