From f874c40d5272fd836cfe2657699b5fd43988d255 Mon Sep 17 00:00:00 2001 From: Michael Kutschke Date: Thu, 10 Aug 2017 12:07:00 +0200 Subject: [PATCH] Have boots of the meteor and comet implement IRunicArmor so they can receive runic shielding like the boots of the traveller --- .../thaumicexploration/item/ItemTXArmorSpecial.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/java/flaxbeard/thaumicexploration/item/ItemTXArmorSpecial.java b/java/flaxbeard/thaumicexploration/item/ItemTXArmorSpecial.java index 5d71e536..ead41ca1 100644 --- a/java/flaxbeard/thaumicexploration/item/ItemTXArmorSpecial.java +++ b/java/flaxbeard/thaumicexploration/item/ItemTXArmorSpecial.java @@ -9,12 +9,13 @@ import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import thaumcraft.api.IRepairable; +import thaumcraft.api.IRunicArmor; import thaumcraft.common.Thaumcraft; import thaumcraft.common.config.Config; import thaumcraft.common.items.armor.Hover; import flaxbeard.thaumicexploration.ThaumicExploration; -public class ItemTXArmorSpecial extends ItemArmor implements IRepairable{ +public class ItemTXArmorSpecial extends ItemArmor implements IRepairable, IRunicArmor{ public ItemTXArmorSpecial(int par1, ItemArmor.ArmorMaterial par2EnumArmorMaterial, int par3, int par4) { @@ -33,6 +34,11 @@ public String getArmorTexture(ItemStack stack, Entity entity, int slot, String l public EnumRarity getRarity(ItemStack par1ItemStack) { return EnumRarity.rare; } + + @Override + public int getRunicCharge(ItemStack itemstack) { + return 0; + } @Override @@ -117,4 +123,4 @@ else if (Hover.getHover(player.getEntityId())) } -} \ No newline at end of file +}