Class NbtSocket

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class NbtSocket
    extends Socket
    Do not use this class. Writing to the OutputStream of this type of socket requires leaving a 4 byte prefix for the NBT header. IOW you must call write( buf, 4, len ). Calling write( buf, 0, len ) will generate an error.