mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 08:17:48 +00:00
20 lines
708 B
Java
20 lines
708 B
Java
package com.cricketcraft.chisel.network;
|
|||
|
|
|
||
|
|
import com.cricketcraft.chisel.Chisel;
|
||
|
|
import com.cricketcraft.chisel.network.message.MessageChiselSound;
|
||
|
|
import com.cricketcraft.chisel.network.message.MessageSlotUpdate;
|
||
|
|
|
||
|
|
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
|
||
|
|
import cpw.mods.fml.relauncher.Side;
|
||
|
|
|
||
|
|
public class PacketHandler {
|
||
|
|
|
||
|
|
public static final SimpleNetworkWrapper INSTANCE = new SimpleNetworkWrapper(Chisel.MOD_ID);
|
||
|
|
|
||
|
|
public static void init() {
|
||
|
|
int id = 0;
|
||
|
|
|
||
|
|
INSTANCE.registerMessage(MessageChiselSound.Handler.class, MessageChiselSound.class, id++, Side.CLIENT);
|
||
|
|
INSTANCE.registerMessage(MessageSlotUpdate.Handler.class, MessageSlotUpdate.class, id++, Side.CLIENT);
|
||
|
|
}
|
||
|
|
}
|