package com.FlinnX.MoreMaterials;publicclassReference{//Fundemental Mod Variablespublicstatic final String MOD_ID ="fmm";//ID of the Mod: FlinnxMOreMAterialspublicstatic final String NAME ="More Materials Mod";//The Namepublicstatic final String VERSION ="0.1-alpha";//The Version of the Modpublicstatic final String ACCEPTED_VERSIONS ="[1.11.2]";//The Version it will be playable onpublicstatic final String CLIENT_PROXY_CLASS ="com.FlinnX.MoreMaterials.proxy.ClientProxy";//Client Proxy Locationpublicstatic final String SERVER_PROXY_CLASS ="com.FlinnX.MoreMaterials.proxy.ServerProxy";//Server Proxy LocationpublicstaticenumMoreMaterialsItems{
OBSIDIANINGOT("obsidianingot","ItemObsidianingot");privateString unlocalizedName;privateString registryName;MoreMaterialsItems(String unlocalizedName,String registryName){this.unlocalizedName = unlocalizedName;this.registryName = registryName;}}}
This is my Error:
The method getRegistryName() is undefined for the type Reference.MoreMaterialsItems
The method getUnlocalizedName() is undefined for the type Reference.MoreMaterilasItems
I saw that another user had this error and someone suggested that he should rename the enum. I tried this out too but it didn't worked.
1.11.2 Eclipse Method getRegistryName and getUnlocalizedName are undefined
in Modder Support
Posted
I'm new with modding and I wanted to create a Item. Now, this is my Item Class
ItemObsidianingot
And this is my References Class
This is my Error:
The method getRegistryName() is undefined for the type Reference.MoreMaterialsItems
The method getUnlocalizedName() is undefined for the type Reference.MoreMaterilasItems
I saw that another user had this error and someone suggested that he should rename the enum. I tried this out too but it didn't worked.