Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package kalmondo.tutorial.common.item;
- import cpw.mods.fml.common.Side;
- import cpw.mods.fml.common.asm.SideOnly;
- import net.minecraft.src.CreativeTabs;
- import net.minecraft.src.Item;
- public class ItemRuby extends Item {
- public ItemRuby(int par1) {
- super(par1); //Returns super constructor: par1 is ID
- setTextureFile("/TutorialGFX/Items.png"); //Sets the item texture file
- setItemName("kalmondoItemRuby"); //Sets the incode name of the item, make sure it doesn't clash with other items, weird stuff happens
- setCreativeTab(CreativeTabs.tabMaterials); //Tells the game what creative mode tab it goes in
- }
- @SideOnly(Side.CLIENT) //Marks a method as client side only, typically for graphics and rendering
- public int getItemIconFromDamage(int i){
- return 0; //The first icon on the spritesheet
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement