Skip to content

Commit

Permalink
Add Upgrade Card support for AE2FC Dual Interfaces (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
GlodBlock authored Jun 9, 2024
1 parent 66534d4 commit 3b7dc10
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package co.neeve.nae2.common.integration.ae2fc;

import co.neeve.nae2.common.registration.definitions.Upgrades;
import com.glodblock.github.loader.FCBlocks;
import com.glodblock.github.loader.FCItems;
import net.minecraft.item.ItemStack;

public class UpgradeInit {

public static void init(Upgrades.UpgradeType upgrade) {
upgrade.registerItem(new ItemStack(FCBlocks.DUAL_INTERFACE), 1);
upgrade.registerItem(new ItemStack(FCItems.PART_DUAL_INTERFACE), 1);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
import appeng.core.Api;
import appeng.core.features.DamagedItemDefinition;
import appeng.core.features.IStackSrc;
import appeng.util.Platform;
import co.neeve.nae2.Tags;
import co.neeve.nae2.common.crafting.patterntransform.PatternTransform;
import co.neeve.nae2.common.crafting.patterntransform.transformers.GregTechCircuitPatternTransformer;
import co.neeve.nae2.common.features.IFeature;
import co.neeve.nae2.common.features.subfeatures.UpgradeFeatures;
import co.neeve.nae2.common.integration.ae2fc.UpgradeInit;
import co.neeve.nae2.common.items.NAEBaseItemUpgrade;
import co.neeve.nae2.common.registration.registry.Registry;
import co.neeve.nae2.common.registration.registry.interfaces.DamagedDefinitions;
Expand Down Expand Up @@ -65,6 +67,9 @@ public Upgrades(Registry registry) {

UpgradeType.AUTO_COMPLETE.registerItem(blocks.iface(), 1);
UpgradeType.AUTO_COMPLETE.registerItem(parts.iface(), 1);
if (Platform.isModLoaded("ae2fc")) {
UpgradeInit.init(UpgradeType.AUTO_COMPLETE);
}
});
}

Expand All @@ -79,6 +84,9 @@ public Upgrades(Registry registry) {

UpgradeType.GREGTECH_CIRCUIT.registerItem(blocks.iface(), 1);
UpgradeType.GREGTECH_CIRCUIT.registerItem(parts.iface(), 1);
if (Platform.isModLoaded("ae2fc")) {
UpgradeInit.init(UpgradeType.GREGTECH_CIRCUIT);
}
});
}
}
Expand Down

0 comments on commit 3b7dc10

Please sign in to comment.