Skip to content

Commit

Permalink
Remove incorrect method use for default EMC, switch to proper data file
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Jan 16, 2025
1 parent 042836a commit f71198b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/main/java/gripe/_90/appliede/AppliedE.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import net.minecraft.world.item.BlockItem;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.ItemLike;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraftforge.client.event.RegisterColorHandlersEvent;
Expand Down Expand Up @@ -41,9 +40,7 @@
import appeng.client.gui.implementations.IOBusScreen;
import appeng.client.render.StaticItemColor;
import appeng.core.AppEng;
import appeng.core.definitions.AEBlocks;
import appeng.core.definitions.AEItems;
import appeng.core.definitions.AEParts;
import appeng.core.localization.GuiText;
import appeng.init.client.InitScreens;
import appeng.items.parts.PartItem;
Expand Down Expand Up @@ -76,10 +73,6 @@
import gripe._90.appliede.part.EMCModulePart;
import gripe._90.appliede.part.TransmutationTerminalPart;

import moze_intel.projecte.api.imc.CustomEMCRegistration;
import moze_intel.projecte.api.nss.NSSItem;
import moze_intel.projecte.emc.mappers.APICustomEMCMapper;

// spotless:off
@Mod(AppliedE.MODID)
public final class AppliedE {
Expand Down Expand Up @@ -187,13 +180,6 @@ public AppliedE() {
Upgrades.add(LEARNING_CARD.get(), EMC_INTERFACE.get(), 1, emcInterfaceGroup);
Upgrades.add(LEARNING_CARD.get(), CABLE_EMC_INTERFACE.get(), 1, emcInterfaceGroup);
Upgrades.add(LEARNING_CARD.get(), EMC_IMPORT_BUS.get(), 1);

registerEMC(AEItems.CERTUS_QUARTZ_CRYSTAL, 256);
registerEMC(AEBlocks.SKY_STONE_BLOCK, 256);
registerEMC(AEItems.CALCULATION_PROCESSOR_PRESS, 2048);
registerEMC(AEItems.ENGINEERING_PROCESSOR_PRESS, 2048);
registerEMC(AEItems.LOGIC_PROCESSOR_PRESS, 2048);
registerEMC(AEParts.CABLE_ANCHOR, 32);
});

if (ModList.get().isLoaded("ae2wtlib")) {
Expand All @@ -210,10 +196,6 @@ public static ResourceLocation id(String path) {
return new ResourceLocation(MODID, path);
}

private static void registerEMC(ItemLike item, int emc) {
APICustomEMCMapper.INSTANCE.registerCustomEMC(MODID, new CustomEMCRegistration(NSSItem.createItem(item), emc));
}

private static <P extends IPart> Item part(Class<P> partClass, Function<IPartItem<P>, P> factory) {
PartModels.registerModels(PartModelsHelper.createModels(partClass));
return new PartItem<>(new Item.Properties(), partClass, factory);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"comment": "Default values for Applied Energistics 2 items.",
"values": {
"before": {
"ae2:certus_quartz_crystal": 256,
"ae2:sky_stone_block": 256,
"ae2:calculation_processor_press": 2048,
"ae2:engineering_processor_press": 2048,
"ae2:logic_processor_press": 2048,
"ae2:silicon_press": 2048,
"ae2:cable_anchor": 32
}
}
}

0 comments on commit f71198b

Please sign in to comment.