Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

Recieve packets from the client and the server (Event)

MasterOf13FPS

Administrator
Staff member
Administrator
MasterOf13FPS
Joined
Jul 11, 2020
Messages
0
Reaction score
25
Points
0
I am having problems figuring out how I am supposed to solve this puzzle for my own client. It is running with Optifine I7 compared to other clients that usually goes for H6.

What I am bothered with is that I don't know how to solve this.


SRC:


Code:
public class EventPacketReceive extends Event {

    private Packet<INetHandlerPlayClient> packetClient;
    private Packet<INetHandlerPlayServer> packetServer;

    public EventPacketReceive(Packet<INetHandlerPlayClient> packet) {
        super(Type.SINGLE);
        this.packetClient = packet;
    }
 
    public EventPacketReceive(Packet<INetHandlerPlayServer> packet) {
        super(Type.SINGLE);
        this.packetServer = packet;
    }
 

    public Packet<INetHandlerPlayClient> getPacketClient() {
        return this.packetClient;
    }
 
    public Packet<INetHandlerPlayServer> getPacketServer() {
        return this.packetServer;
    }
}




If you need to know what "Type" is.

    public enum Type {
        SINGLE, PRE, POST
    }


//Edit by SirAui: Added Code Tags
 
Last edited by a moderator:
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top