Recently got into modding and I've been following a few tutorials to help me get an idea of how it all works together. The tutorial I'm following is for 1.9, but I figured I'd use a 1.10 base so that I'd be using the latest version when I eventually make my mod.
I followed the tutorial to the letter and most of it works, but I have a problem naming my item. Has there been a change to the way items are named in 1.10?
Here's the relevant code.
reference.java
package azated.geothermal;
public class Reference {
public static final String MOD_ID = "azatedGeothermalMod";
public static final String NAME = "Azated Geothermal Mod";
public static final String VERSION = "1.0";
public static final String ACCEPTED_VERSIONS = "[1.10]";
public static final String CLIENT_PROXY_CLASS = "azated.geothermal.proxy.ClientProxy";
public static final String SERVER_PROXY_CLASS = "azated.geothermal.proxy.ServerProxy";
public static enum TutorialItems {
CHEESE("cheese", "ItemCheese");
private String unlocalizedName;
private String registryName;
TutorialItems(String unlocalizedName, String registryName) {
this.unlocalizedName = unlocalizedName;
this.registryName = registryName;
}
public String getRegistryName() {
return registryName;
}
public String getUnlocalizedName() {
return unlocalizedName;
}
}
}
ItemCheese.java
package azated.geothermal.items;
import azated.geothermal.Reference;
import net.minecraft.item.Item;
public class ItemCheese extends Item {
public ItemCheese() {
setUnlocalizedName(Reference.TutorialItems.CHEESE.getUnlocalizedName());
setRegistryName(Reference.TutorialItems.CHEESE.getRegistryName());
}
}
en_US.lang
item.cheese.name=Cheese