Class BinaryTagType<T extends BinaryTag>

    • Constructor Detail

      • BinaryTagType

        public BinaryTagType()
    • Method Detail

      • id

        public abstract byte id()
        Gets the id.
        Returns:
        the id
        Since:
        4.0.0
      • read

        @NotNull
        public abstract T read​(@NotNull
                               @NotNull DataInput input)
                        throws IOException
        Reads a tag.
        Parameters:
        input - the input
        Returns:
        the tag
        Throws:
        IOException - if an exception was encountered while reading
        Since:
        4.0.0
      • write

        public abstract void write​(@NotNull
                                   T tag,
                                   @NotNull
                                   @NotNull DataOutput output)
                            throws IOException
        Writes a tag.
        Parameters:
        tag - the tag
        output - the output
        Throws:
        IOException - if an exception was encountered while writing
        Since:
        4.0.0