|
35 | 35 | import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
36 | 36 | import cpw.mods.fml.relauncher.Side;
|
37 | 37 | import cpw.mods.fml.relauncher.SideOnly;
|
| 38 | +import gregtech.api.hazards.Hazard; |
| 39 | +import gregtech.api.hazards.IHazardProtector; |
38 | 40 | import taintedmagic.common.items.equipment.ItemShadowFortressArmor;
|
39 | 41 | import thaumcraft.api.IRunicArmor;
|
40 | 42 | import thaumcraft.api.aspects.Aspect;
|
|
50 | 52 | import witchinggadgets.common.items.tools.IPrimordialGear;
|
51 | 53 | import witchinggadgets.common.util.Lib;
|
52 | 54 |
|
53 |
| -@Optional.Interface(iface = "thaumicboots.api.IBoots", modid = "thaumicboots") |
| 55 | +@Optional.InterfaceList({ @Optional.Interface(iface = "thaumicboots.api.IBoots", modid = "thaumicboots"), |
| 56 | + @Optional.Interface(iface = "gregtech.api.hazards.IHazardProtector", modid = "gregtech") }) |
54 | 57 | public class ItemPrimordialArmor extends ItemShadowFortressArmor
|
55 |
| - implements IPrimordialCrafting, IPrimordialGear, IRunicArmor, IItemEvent, IBoots { |
| 58 | + implements IPrimordialCrafting, IPrimordialGear, IRunicArmor, IItemEvent, IBoots, IHazardProtector { |
56 | 59 |
|
57 | 60 | enum FlightStatus {
|
58 | 61 | ON,
|
@@ -597,4 +600,10 @@ public int getArmorDisplay(EntityPlayer p, ItemStack s, int slot) {
|
597 | 600 |
|
598 | 601 | @Override
|
599 | 602 | public void onUserTargeted(LivingSetAttackTargetEvent event, ItemStack stack) {}
|
| 603 | + |
| 604 | + @Override |
| 605 | + @Optional.Method(modid = "gregtech") |
| 606 | + public boolean protectsAgainst(ItemStack itemStack, Hazard hazard) { |
| 607 | + return true; |
| 608 | + } |
600 | 609 | }
|
0 commit comments