mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-26 15:03:06 +00:00
Optional being stupid
This commit is contained in:
1 parent
802e18e489
commit
9a6b46add2
1 file changed
+12
-1
@@ -22,11 +22,14 @@ import org.apache.logging.log4j.Level;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import cpw.mods.fml.common.Optional;
|
||||
import thaumcraft.api.IGoggles;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
public class ItemArmorInfinity extends ItemArmor {
|
||||
@Optional.Interface(iface = "thaumcraft.api.IGoggles", modid="Thaumcraft")
|
||||
public class ItemArmorInfinity extends ItemArmor implements IGoggles {
|
||||
|
||||
public static final ArmorMaterial infinite_armor = EnumHelper.addArmorMaterial("infinity", 9999, new int[]{6, 16, 12, 6}, 1000);
|
||||
@SideOnly(Side.CLIENT)
|
||||
@@ -115,4 +118,12 @@ public class ItemArmorInfinity extends ItemArmor {
|
||||
return multimap;
|
||||
}
|
||||
|
||||
@Optional.Method(modid = "Thaumcraft")
|
||||
@Override
|
||||
public boolean showIngamePopups(ItemStack itemStack, EntityLivingBase entityLivingBase){
|
||||
if(armorType == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user