Remove Redundant Old Packet Handlers

This commit is contained in:
Kam committed 2025-02-02 23:18:18 -05:00
1 parent 0f948a9d62
commit fe7c24186d
8 files changed
+1 -440

No files matched your search

@@ -1,24 +0,0 @@
package noppes.npcs.client;
import cpw.mods.fml.common.network.internal.FMLProxyPacket;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import noppes.npcs.CustomNpcs;
import noppes.npcs.Server;
import java.io.IOException;
public class Client {
public static void sendData(final EnumPacketServer enu, final Object... obs) {
ByteBuf buffer = Unpooled.buffer();
try {
if(!Server.fillBuffer(buffer, enu, obs))
return;
CustomNpcs.Channel.sendToServer(new FMLProxyPacket(buffer, "CustomNPCs"));
} catch (IOException e) {
e.printStackTrace();
}
}
}
@@ -83,8 +83,6 @@ public class ClientProxy extends CommonProxy {
public void load() {
Font = new FontContainer(ConfigClient.FontType, ConfigClient.FontSize);
createFolders();
CustomNpcs.Channel.register(new PacketHandlerClient());
CustomNpcs.ChannelPlayer.register(new PacketHandlerPlayer());
new MusicController();
new ScriptSoundController();
@@ -1,16 +0,0 @@
package noppes.npcs.client;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.network.FMLNetworkEvent;
import noppes.npcs.PacketHandlerServer;
import java.io.IOException;
public class PacketHandlerClient extends PacketHandlerServer {
@SubscribeEvent
public void onPacketData(FMLNetworkEvent.ClientCustomPacketEvent event) {
// Need this here for testing and registry for now until
// conversion is done
}
}