1
zj
2024-07-12 c2cf572d823f5ab410fd82ae169f012caf3386c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package org.example.parser;
 
 
public class Packet<T> {
 
    public int type = -1;
    public int id = -1;
    public String nsp;
    public T data;
    public int attachments;
 
    public Packet() {}
 
    public Packet(int type) {
        this.type = type;
    }
 
    public Packet(int type, T data) {
        this.type = type;
        this.data = data;
    }
}