use of crazypants.enderio.base.item.darksteel.upgrade.elytra.ElytraUpgrade in project EnderIO by SleepyTrousers.
the class ItemDarkSteelArmor method getSubItems.
@Override
@SideOnly(Side.CLIENT)
public void getSubItems(@Nonnull CreativeTabs tab, @Nonnull NonNullList<ItemStack> par3List) {
if (isInCreativeTab(tab)) {
@Nonnull ItemStack is = new ItemStack(this);
par3List.add(is);
is = new ItemStack(this);
EnergyUpgrade.EMPOWERED_FOUR.addToItem(is, this);
EnergyUpgradeManager.setPowerFull(is, this);
Iterator<IDarkSteelUpgrade> iter = DarkSteelRecipeManager.recipeIterator();
while (iter.hasNext()) {
IDarkSteelUpgrade upgrade = iter.next();
if (!(upgrade instanceof EnergyUpgrade || upgrade instanceof GliderUpgrade || upgrade instanceof ElytraUpgrade) && upgrade.canAddToItem(is, this)) {
upgrade.addToItem(is, this);
}
}
if (GliderUpgrade.INSTANCE.canAddToItem(is, this)) {
ItemStack is2 = is.copy();
GliderUpgrade.INSTANCE.addToItem(is2, this);
par3List.add(is2);
if (ElytraUpgrade.INSTANCE.canAddToItem(is, this)) {
ItemStack is3 = is.copy();
ElytraUpgrade.INSTANCE.addToItem(is3, this);
par3List.add(is3);
}
return;
}
par3List.add(is);
}
}
Aggregations