use of pl.asie.charset.lib.network.PacketRegistry in project Charset by CharsetMC.
the class ModCharsetTweaks method init.
@EventHandler
public void init(FMLInitializationEvent event) {
packet = new PacketRegistry(ModCharsetTweaks.MODID);
packet.registerPacket(0x01, PacketMinecartUpdate.class);
packet.registerPacket(0x02, PacketMinecartRequest.class);
for (Tweak t : tweakSet) {
if (t.isEnabled()) {
if (!t.init()) {
ModCharsetLib.logger.error("Tweak " + t.getClass().getSimpleName() + " failed to load! Please disable it in the config.");
tweakSet.remove(t);
}
}
}
}
use of pl.asie.charset.lib.network.PacketRegistry in project Charset by CharsetMC.
the class ModCharsetPipes method init.
@EventHandler
public void init(FMLInitializationEvent event) {
proxy.registerRenderers();
packet = new PacketRegistry(ModCharsetPipes.MODID);
packet.registerPacket(0x01, PacketItemUpdate.class);
packet.registerPacket(0x02, PacketPipeSyncRequest.class);
ModCharsetLib.proxy.registerRecipeShaped(new ItemStack(shifterBlock), "cPc", "c^c", "crc", 'c', Blocks.cobblestone, 'P', Blocks.piston, 'r', Items.redstone, '^', Items.arrow);
if (!Loader.isModLoaded("BuildCraft|Transport")) {
ModCharsetLib.proxy.registerRecipeShaped(new ItemStack(itemPipe, 8), "mgm", 'g', Blocks.glass, 'm', Blocks.obsidian);
}
ModCharsetLib.proxy.registerRecipeShaped(new ItemStack(itemPipe, 8), "m", "g", "m", 'g', Blocks.glass, 'm', Blocks.obsidian);
}
Aggregations