Advertisement
Guest User

Untitled

a guest
Oct 15th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. package DSFoFG.items;
  2.  
  3. import DSFoFG.Main;
  4. import net.minecraft.client.renderer.texture.IIconRegister;
  5. import net.minecraft.creativetab.CreativeTabs;
  6. import net.minecraft.item.Item;
  7. import cpw.mods.fml.relauncher.Side;
  8. import cpw.mods.fml.relauncher.SideOnly;
  9.  
  10.  
  11. public class thermalDetonators extends Item {
  12.  
  13. private String texturePath = "DSFoFG:";
  14.  
  15. public thermalDetonators(int ItemID, String textureName)
  16. {
  17. super();
  18. this.setUnlocalizedName("thermalDetonators");
  19. this.setCreativeTab(CreativeTabs.tabMaterials);
  20. this.setTextureName(Main.MODID +":"+"thermalDetonators.png");
  21. texturePath += textureName;
  22. }
  23.  
  24. @Override
  25. @SideOnly(Side.CLIENT)
  26.  
  27. public void registerIcons(IIconRegister iconRegister)
  28. {
  29. this.itemIcon = iconRegister.registerIcon(texturePath);
  30. }
  31.  
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement