Skip to content

Instantly share code, notes, and snippets.

Created November 19, 2013 22:55
Show Gist options
  • Save anonymous/7554085 to your computer and use it in GitHub Desktop.
Save anonymous/7554085 to your computer and use it in GitHub Desktop.
package DrugsMod;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
public class cocaine extends ItemFood{
public cocaine(int par1, int par2, boolean par3) {
super(par1, par2, par3);
this.setCreativeTab(CreativeTabs.tabFood);
}
public void registerIcons(IconRegister iconRegister) {
itemIcon = iconRegister.registerIcon("LifeMMO Drugs:cocaine");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment