-
-
Save anonymous/a07a051b0f6ed3e84e0fc7f46160f60b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bigsis.spookjams.items; //My comments in this class are present in light-colored lines like this one that follow two forward-slashes ("//"). To remove these, go to "Edit > Find/Replace...", add "//.*" to the Find field, and press "Replace All". | |
import com.bigsis.spookjams.Reference; //Import this to recognize our custom Reference.java class. | |
import net.minecraft.item.Item; //Need this to recognize Minecraft Item objects. | |
public class ItemCheese extends Item | |
{ | |
public ItemCheese() //This is the constructor for your new Cheese Item. | |
{ | |
setUnlocalizedName(Reference.SpookjamItems.CHEESE.getUnlocalizedName()); //Set the common name of this new item from the CHEESE enum we declared in Reference.java. | |
setRegistryName(Reference.SpookjamItems.CHEESE.getRegistryName()); //Set the system name of this new item from the CHEESE enum we declared in Reference.java. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment