zj
2024-06-03 3cab39d85e5e43b8cc95ab82c9a914386b71c999
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;
    }
}