Files
Baubles-Expanded/src/main/java/baubles/common/network/PacketHandler.java
T
Azanor 3e8015e246 Update to 1.7.10
1.0.1.2
- added a simple way to switch between the normal and baubles inventory.
Thanks to Vazkii for the idea and permission to port it to base Baubles.
- removed the Miners Ring crafting recipe... it is a bit op. I will
leave the item in so it is attainable in creative and so it can still
serve as an example bauble for devs.

1.0.1.1
- added backwards compatibility for legacy (pre 1.7.10) savefiles

1.0.1.0
- update for MC 1.7.10
- no requires Forge 10.13.0.1177
- removed support for legacy save format and moved saving/loading to new
forge events
2014-07-28 10:37:14 +02:00

21 lines
766 B
Java

package baubles.common.network;
import baubles.common.Baubles;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import cpw.mods.fml.relauncher.Side;
public class PacketHandler
{
public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel(Baubles.MODID.toLowerCase());
public static void init()
{
INSTANCE.registerMessage(PacketOpenBaublesInventory.class, PacketOpenBaublesInventory.class, 0, Side.SERVER);
INSTANCE.registerMessage(PacketOpenNormalInventory.class, PacketOpenNormalInventory.class, 1, Side.SERVER);
INSTANCE.registerMessage(PacketSyncBauble.class, PacketSyncBauble.class, 2, Side.CLIENT);
}
}