Guest User

Untitled

a guest
Oct 2nd, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. package com.assassin.item;
  2.  
  3. import com.assassin.Main.MainRegistry;
  4.  
  5. import net.minecraft.entity.Entity;
  6. import net.minecraft.item.ItemArmor;
  7. import net.minecraft.item.ItemArmor.ArmorMaterial;
  8. import net.minecraft.item.ItemStack;
  9.  
  10. public class HSteelArmor extends MainRegistry {
  11.  
  12.  
  13. public HSteelArmor(ArmorMaterial p_i45325_1_, int p_i45325_2_, int p_i45325_3_) {
  14. super();
  15. // TODO Auto-generated constructor stub
  16. }
  17.  
  18.  
  19. public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) {
  20. if (stack.getItem()==MainRegistry.HSteelHelmet || stack.getItem()==MainRegistry.HSteelChestplate || stack.getItem()==MainRegistry.HSteelBoots) {
  21. return "morematerials:textures/models/armor/hsteel_layer_1.png";
  22. }
  23. else if(stack.getItem()==MainRegistry.HSteelLeggings) {
  24. return "morematerials:textures/models/armor/" +"hsteel_layer_2.png";
  25. }
  26. else {
  27. return null;}
  28. }
  29.  
  30. protected void setTextureName(String string) {
  31. // TODO Auto-generated method stub
  32.  
  33. }
  34.  
  35. protected void setUnlocalizedName(String string) {
  36. // TODO Auto-generated method stub
  37.  
  38.  
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment