Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mon armure :
- package fr.browneez.armor;
- import fr.browneez.lockycraft.Main;
- import net.minecraft.entity.Entity;
- import net.minecraft.item.ItemArmor;
- import net.minecraft.item.ItemStack;
- public class LockyumAr extends ItemArmor
- {
- public LockyumAr(ArmorMaterial material, int id, int placement)
- {
- super(material, id, placement);
- this.setCreativeTab(Main.tabLockyCraft);
- if(placement == 0) //Si c'est le casque
- {
- this.setTextureName("lockycraft:LockyumHelmet");
- }
- else if(placement == 1) //Si c'est le plastron
- {
- this.setTextureName("lockycraft:LockyumChestplate");
- }
- else if(placement == 2) //Si c'est le pantalon
- {
- this.setTextureName("lockyum:LockyumPants");
- }
- else if(placement == 3) //Si c'est les bottes
- {
- this.setTextureName("lockyum:LockyumBoots");
- }
- }
- public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
- {
- if(stack.getItem() == Main.LockyumHelmet || stack.getItem() == Main.LockyumChestplate || stack.getItem() == Main.LockyumBoots)
- {
- return "lockycraft:LockyumArmor1";
- }
- else if(stack.getItem() == Main.LockyumPants)
- {
- return "lockycraft:LockyumArmor2";
- }
- else
- {
- return null;
- }
- }
- }
- Mon Outil :
- package fr.browneez.tools;
- import fr.browneez.lockycraft.Main;
- import net.minecraft.item.ItemPickaxe;
- public class LockyumPickaxe extends ItemPickaxe {
- public LockyumPickaxe(int i, ToolMaterial LockyumP) {
- super(LockyumP);
- this.setCreativeTab(Main.tabLockyCraft);
- this.setUnlocalizedName("LockyumPickaxe");
- this.setTextureName("lockycraft:LockyumPickaxe");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement