Class ByteArrayTagConverter
java.lang.Object
com.viaversion.nbt.conversion.converter.ByteArrayTagConverter
- All Implemented Interfaces:
TagConverter<ByteArrayTag,byte[]>
A converter that converts between ByteArrayTag and byte[].
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(byte[] value) Converts a value to a tag.byte[]convert(ByteArrayTag tag) Converts a tag to a value.
-
Constructor Details
-
ByteArrayTagConverter
public ByteArrayTagConverter()
-
-
Method Details
-
convert
Description copied from interface:TagConverterConverts a tag to a value.- Specified by:
convertin interfaceTagConverter<ByteArrayTag,byte[]> - Parameters:
tag- Tag to convert.- Returns:
- The converted value.
-
convert
Description copied from interface:TagConverterConverts a value to a tag.- Specified by:
convertin interfaceTagConverter<ByteArrayTag,byte[]> - Parameters:
value- Value to convert.- Returns:
- The converted tag.
-