All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jnngl.server.protocol.Protocol Maven / Gradle / Ivy

There is a newer version: 0.10.2b
Show newest version
package com.jnngl.server.protocol;

import com.jnngl.server.exception.PacketAlreadyExistsException;

public class Protocol {

    public static void registerPackets() throws PacketAlreadyExistsException, NoSuchMethodException {
        Packet.registerPacket(new ServerboundHandshakePacket());
        Packet.registerPacket(new ClientboundHandshakePacket());
        Packet.registerPacket(new ClientboundDisconnectPacket());
        Packet.registerPacket(new ServerboundConnectPacket());
        Packet.registerPacket(new ClientboundConnectionSuccessPacket());
        Packet.registerPacket(new ClientboundPingPacket());
        Packet.registerPacket(new ServerboundPongPacket());
        Packet.registerPacket(new ClientboundCreationRequestPacket());
        Packet.registerPacket(new ServerboundCreationStatusPacket());
        Packet.registerPacket(new ClientboundDestroyPacket());
        Packet.registerPacket(new ServerboundFramePacket());
        Packet.registerPacket(new ClientboundPalettePacket());
        Packet.registerPacket(new ClientboundTouchPacket());
        Packet.registerPacket(new ClientboundEncryptionPacket());
        Packet.registerPacket(new ServerboundEncryptionPacket());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy