-
-
Save anonymous/8b42d8326e9b4c77f99ec2f9ae37b114 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.ItemFood; //Import this to recognize Minecraft ItemFood objects. | |
public class ItemGFBread extends ItemFood { //Give this item food attributes. | |
public ItemGFBread() //This is the constructor for your new Cheese Item. | |
{ | |
super(5, 0.6F, false);//Specify how many half-hearts are provided after eating the gluten-free bread, how long its saturation duration should be (this should be no different than wheat-based bread!), and whether you can feed this to wolves (NO! grains are HORRIBLE for canines). ;) | |
setUnlocalizedName(Reference.SpookjamItems.GF_BREAD.getUnlocalizedName()); //Set the common name of this new item from an enum we declared in Reference.java. | |
setRegistryName(Reference.SpookjamItems.GF_BREAD.getRegistryName()); //Set the system name of this new item from an enum we declared in Reference.java. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment