Advertisement
PaleoCrafter

SubItem system - SubItem

Jun 21st, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.24 KB | None | 0 0
  1. package de.paleocrafter.pmfw.item;
  2.  
  3. import net.minecraft.client.renderer.texture.IconRegister;
  4. import net.minecraft.entity.player.EntityPlayer;
  5. import net.minecraft.item.ItemStack;
  6. import net.minecraft.util.Icon;
  7. import net.minecraft.world.World;
  8.  
  9. /**
  10.  *
  11.  * PaleoMachineFramework
  12.  *
  13.  * SubItem
  14.  *
  15.  * @author PaleoCrafter
  16.  * @license Lesser GNU Public License v3 (http://www.gnu.org/licenses/lgpl.html)
  17.  *
  18.  */
  19. public class SubItem {
  20.     private String name;
  21.     private String unlocalizedName;
  22.     private Icon itemIcon;
  23.  
  24.     public SubItem(String name) {
  25.         this.name = name;
  26.         this.unlocalizedName = name;
  27.     }
  28.  
  29.     public String getName() {
  30.         return name;
  31.     }
  32.  
  33.     public String getUnlocalizedName() {
  34.         return unlocalizedName;
  35.     }
  36.  
  37.     public void setUnlocalizedName(String unlocalizedName) {
  38.         this.unlocalizedName = unlocalizedName;
  39.     }
  40.  
  41.     public Icon getIcon(int damage) {
  42.         return itemIcon;
  43.     }
  44.  
  45.     public void registerIcons(IconRegister iconRegister) {
  46.         itemIcon = iconRegister.registerIcon("");
  47.     }
  48.  
  49.     public void registerRecipe(ItemStack output) {
  50.  
  51.     }
  52.  
  53.     public void onCreated(ItemStack stack, World world, EntityPlayer player) {
  54.  
  55.     }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement