Posted March 20, 201312 yr I am making a mod and i have a lot of errors in the main class file This is the code for the main class @NetworkMod(clientSideRequired=true, serverSideRequired= true, clientPacketHandlerSpec = @SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsClientPacketHandler.class), serverPacketHandlerSpec = @SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsServerPacketHandler.class)) @Mod(modid="Parallel Worlds", name = "ParallelWorlds",version = "1.0.0") public class ParallelWorlds { @cpw.mods.fml.common.Mod.Instance("ParallelWorlds") public static ParallelWorlds Instance = new ParallelWorlds(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.ParallelWorldsClientProxy", serverSide = "assassinhero.parallelworlds.common.ParallelWorldsCommonProxy") public static ParallelWorldsCommonProxy proxy; public static Block NightStone; @cpw.mods.fml.common.Mod.PreInit public void PreInit(FMLInitializationEvent event){ NightStone = new BlockNightStoneBlock(3658).setUnlocalizedName("Night Stone"); } @Init public void InitParallelWorlds(FMLInitializationEvent event){ NetworkRegistry.instance().registerGuiHandler(this, proxy); proxy.registerBlocks(); } } The parts that have errors are: @SidedPacketHandler(channels packetHandler = ParallelWorldsClientPacketHandler.class), [codePacketHandlerSpec = @SidedPacketHandler(channels][/code] packetHandler = ParallelWorldsServerPacketHandler.class)) d(modid="Parallel Worlds", name = I understand that some of the errors are there because a class file doesn't exist Here is the code for the other class files i have at the moment ParallelWorldsCommonProxy public class ParallelWorldsCommonProxy implements IGuiHandler{ public void registerRenderInformation(){ } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } public void registerTiles(){ } public void registerBlocks(){ GameRegistry.registerBlock(ParallelWorlds.NightStone, "Night Stone"); LanguageRegistry.addName(ParallelWorlds.NightStone, "Night Stone"); } public void registerItems(){ } } BlockNightStoneBlock public class BlockNightStoneBlock extends Block{ public BlockNightStoneBlock(int ID){ super(ID,Material.iron); } @Override public void func_94332_a(IconRegister par1IconRegister){ this.field_94336_cN = par1IconRegister.func_94245_a("ParallelWorlds:NightStone"); } } Please help Any fixes are appreciated! Thanks in advance! EDIT: @SidedPacketHandler is fixed.... The rest is still error though STOP CRUCIFYING NEW MODDERS!!!!
March 20, 201312 yr error logs? what's your IDE saying? I think I am going to explode if I see another post from you in the next 5 minutes
March 20, 201312 yr Author error logs? what's your IDE saying? I think I am going to explode if I see another post from you in the next 5 minutes I have fixed them now Thanks for actually trying to help STOP CRUCIFYING NEW MODDERS!!!!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.