Advertisement
Guest User

Untitled

a guest
Oct 24th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. Mon armure :
  2.  
  3. package fr.browneez.armor;
  4.  
  5. import fr.browneez.lockycraft.Main;
  6. import net.minecraft.entity.Entity;
  7. import net.minecraft.item.ItemArmor;
  8. import net.minecraft.item.ItemStack;
  9.  
  10. public class LockyumAr extends ItemArmor
  11. {
  12.  
  13. public LockyumAr(ArmorMaterial material, int id, int placement)
  14. {
  15. super(material, id, placement);
  16. this.setCreativeTab(Main.tabLockyCraft);
  17.  
  18. if(placement == 0) //Si c'est le casque
  19. {
  20. this.setTextureName("lockycraft:LockyumHelmet");
  21. }
  22.  
  23. else if(placement == 1) //Si c'est le plastron
  24. {
  25. this.setTextureName("lockycraft:LockyumChestplate");
  26. }
  27.  
  28. else if(placement == 2) //Si c'est le pantalon
  29. {
  30. this.setTextureName("lockyum:LockyumPants");
  31. }
  32.  
  33. else if(placement == 3) //Si c'est les bottes
  34. {
  35. this.setTextureName("lockyum:LockyumBoots");
  36. }
  37.  
  38. }
  39. public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
  40. {
  41. if(stack.getItem() == Main.LockyumHelmet || stack.getItem() == Main.LockyumChestplate || stack.getItem() == Main.LockyumBoots)
  42. {
  43. return "lockycraft:LockyumArmor1";
  44. }
  45.  
  46. else if(stack.getItem() == Main.LockyumPants)
  47. {
  48. return "lockycraft:LockyumArmor2";
  49. }
  50.  
  51. else
  52. {
  53. return null;
  54. }
  55.  
  56. }
  57.  
  58. }
  59.  
  60.  
  61.  
  62. Mon Outil :
  63.  
  64. package fr.browneez.tools;
  65.  
  66. import fr.browneez.lockycraft.Main;
  67. import net.minecraft.item.ItemPickaxe;
  68.  
  69. public class LockyumPickaxe extends ItemPickaxe {
  70.  
  71. public LockyumPickaxe(int i, ToolMaterial LockyumP) {
  72. super(LockyumP);
  73. this.setCreativeTab(Main.tabLockyCraft);
  74. this.setUnlocalizedName("LockyumPickaxe");
  75. this.setTextureName("lockycraft:LockyumPickaxe");
  76. }
  77.  
  78.  
  79.  
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement