Jump to content

Illegal modifier for parameter armourSomoniom; only final is permitted


ClarmonkGaming

Recommended Posts

my code is

 

 

package SomeCraft;

 

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.Item;

import net.minecraftforge.common.EnumHelper;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

 

 

@Mod(modid = SomeCraft.modid, name = "SomeCraft", version = "1.0")

@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class SomeCraft {

 

public static final String modid = "mod_SomeCraft";

 

public static Item SomoniomIngot;

 

@EventHandler

public void load(FMLInitializationEvent event)

{

// Registrations

public static EnumArmorMaterial armourSomoniom = EnumHelper.addArmorMaterial("SomoniomIngot", 66, new int[]{6, 9, 9, 6}, 30);

 

public static Item SomoniomHelmet = new SomoniomArmour(2000, armourSomoniom, 0, 0).setUnlocalizedName("SomoniomHelmet");

public static Item SomoniomChestplate = new SomoniomArmour(2001, armourSomoniom, 0, 1).setUnlocalizedName("SomoniomChestplate");

public static Item SomoniomLeggings = new SomoniomArmour(2002, armourSomoniom, 0, 2).setUnlocaizedName("SomoniomLeggings");

public static Item SomoniomBoots = new SomoniomArmour(2003, armourSomoniom, 0, 3).setUnlocaizedName("SomoniomBoots");

 

SomoniomIngot = new SomoniomIngot (5000).setUnlocalizedName("SomoniomIngot");

 

LanguageRegistry.addName(SomoniomIngot, "SomoniomIngot");

 

 

 

 

 

i get my error here

public static EnumArmorMaterial armourSomoniom = EnumHelper.addArmorMaterial("SomoniomIngot", 66, new int[]{6, 9, 9, 6}, 30);

it says Illegal modifier for parameter armourSomoniom; only final is permitted

 

can someone please tell em what this means and tell me how to fix it thank you

 

 

 

 

 

                                            Sincerely,

                            ClarmonkGaming

Link to comment
Share on other sites

So your first thread wasn't sufficient?  You're not asking anything new.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

my first thread got locked look I am very sorry I am very new with so please just bare through my developing stupidity you were there once right I am trying to learn taking courses getting hands on practice so please try to bare with me.

 

 

 

 

 

                                                Sincerely,

                                      ClarmonkGaming

Link to comment
Share on other sites

You can't do this:

 

static.png

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

And this is why you need to go learn Java.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.