Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
updated gt core and antimatter, changed out int circuits for selector…
Browse files Browse the repository at this point in the history
… tags
  • Loading branch information
Trinsdar committed Jul 7, 2024
1 parent 41e87b5 commit ee19256
Show file tree
Hide file tree
Showing 23 changed files with 90 additions and 193 deletions.
3 changes: 3 additions & 0 deletions common/src/main/java/muramasa/gregtech/GTRemapping.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public static void init(){
}
return r;
});
for (int i = 0; i < 25; i++) {
remapGTCore("int_circuit_" + i, "selector_tag_"+i);
}
AntimatterRemapping.remapBlockEntity(new ResourceLocation(Ref.SHARED_ID, "fluid_pipe_polyethylene"), new ResourceLocation(Ref.SHARED_ID, "fluid_pipe_plastic"));
remap("bath_hv", "bath");
remap("coke_oven_bronze", "coke_oven");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package muramasa.gregtech.blockentity.multi;

import com.mojang.blaze3d.vertex.PoseStack;
import io.github.gregtechintergalactical.gtcore.item.ItemSelectorTag;
import muramasa.antimatter.block.BlockBasic;
import muramasa.antimatter.blockentity.multi.BlockEntityMultiMachine;
import muramasa.antimatter.capability.machine.MachineRecipeHandler;
Expand All @@ -11,14 +12,12 @@
import muramasa.antimatter.machine.event.IMachineEvent;
import muramasa.antimatter.machine.event.MachineEvent;
import muramasa.antimatter.machine.types.Machine;
import muramasa.antimatter.recipe.IRecipe;
import muramasa.antimatter.registration.ITextureProvider;
import muramasa.antimatter.texture.Texture;
import muramasa.gregtech.GTIRef;
import muramasa.gregtech.GregTech;
import muramasa.gregtech.block.BlockCasing;
import muramasa.gregtech.data.GregTechBlocks;
import muramasa.gregtech.items.ItemIntCircuit;
import net.minecraft.client.gui.Font;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
Expand Down Expand Up @@ -67,7 +66,7 @@ public void checkRecipe() {
super.checkRecipe();
itemHandler.ifPresent(i -> {
ItemStack circuit = i.getHandler(SlotType.STORAGE).getItem(0);
if (circuit.getItem() instanceof ItemIntCircuit intCircuit){
if (circuit.getItem() instanceof ItemSelectorTag intCircuit){
if (intCircuit.circuitId > 0 && intCircuit.circuitId <= 24){
integratedCircuitConfig = intCircuit.circuitId;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package muramasa.gregtech.blockentity.multi;

import com.mojang.blaze3d.vertex.PoseStack;
import io.github.gregtechintergalactical.gtcore.item.ItemSelectorTag;
import muramasa.antimatter.blockentity.multi.BlockEntityMultiMachine;
import muramasa.antimatter.capability.IComponentHandler;
import muramasa.antimatter.capability.IFilterableHandler;
import muramasa.antimatter.capability.fluid.FluidTank;
import muramasa.antimatter.capability.machine.DefaultHeatHandler;
Expand All @@ -21,7 +21,6 @@
import muramasa.antimatter.material.Material;
import muramasa.antimatter.recipe.IRecipe;
import muramasa.antimatter.util.Utils;
import muramasa.gregtech.items.ItemIntCircuit;
import muramasa.gregtech.machine.caps.ParallelRecipeHandler;
import net.minecraft.client.gui.Font;
import net.minecraft.core.BlockPos;
Expand All @@ -32,8 +31,6 @@
import tesseract.TesseractGraphWrappers;
import tesseract.api.heat.IHeatHandler;

import java.util.Optional;

import static muramasa.gregtech.data.Materials.*;

public class BlockEntityLargeHeatExchanger extends BlockEntityMultiMachine<BlockEntityLargeHeatExchanger> implements IFilterableHandler {
Expand Down Expand Up @@ -187,15 +184,15 @@ public void serverTick(Level level, BlockPos pos, BlockState state) {

@Override
public boolean test(SlotType<?> slotType, int slot, ItemStack stack) {
if (slotType == SlotType.STORAGE) return stack.getItem() instanceof ItemIntCircuit;
if (slotType == SlotType.STORAGE) return stack.getItem() instanceof ItemSelectorTag;
return true;
}

@Override
public void onMachineEvent(IMachineEvent event, Object... data) {
if (event == SlotType.STORAGE){
ItemStack circuit = itemHandler.map(i -> i.getHandler(SlotType.STORAGE).getItem(0)).orElse(ItemStack.EMPTY);
if (circuit.getItem() instanceof ItemIntCircuit circuit1){
if (circuit.getItem() instanceof ItemSelectorTag circuit1){
superheatedThreshold = 80000 - (circuit1.circuitId * 3000);
efficiency = 1000 - (circuit1.circuitId * 15);
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,38 +1,19 @@
package muramasa.gregtech.blockentity.single;

import com.mojang.blaze3d.vertex.PoseStack;
import earth.terrarium.botarium.common.fluid.base.FluidHolder;
import muramasa.antimatter.blockentity.BlockEntityMachine;
import muramasa.antimatter.blockentity.multi.BlockEntityMultiMachine;
import muramasa.antimatter.capability.IFilterableHandler;
import muramasa.antimatter.capability.fluid.FluidTank;
import muramasa.antimatter.capability.machine.DefaultHeatHandler;
import muramasa.antimatter.capability.machine.MachineFluidHandler;
import muramasa.antimatter.capability.machine.MachineRecipeHandler;
import muramasa.antimatter.gui.GuiInstance;
import muramasa.antimatter.gui.ICanSyncData;
import muramasa.antimatter.gui.IGuiElement;
import muramasa.antimatter.gui.SlotType;
import muramasa.antimatter.gui.widget.InfoRenderWidget;
import muramasa.antimatter.gui.widget.WidgetSupplier;
import muramasa.antimatter.integration.jeirei.renderer.IInfoRenderer;
import muramasa.antimatter.machine.event.IMachineEvent;
import muramasa.antimatter.machine.event.MachineEvent;
import muramasa.antimatter.machine.types.Machine;
import muramasa.antimatter.material.Material;
import muramasa.antimatter.recipe.IRecipe;
import muramasa.antimatter.util.Utils;
import muramasa.gregtech.items.ItemIntCircuit;
import muramasa.gregtech.machine.caps.ParallelRecipeHandler;
import net.minecraft.client.gui.Font;
import net.minecraft.core.BlockPos;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Explosion;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.state.BlockState;
import tesseract.TesseractGraphWrappers;
import tesseract.api.heat.IHeatHandler;

import static muramasa.antimatter.data.AntimatterMaterials.Water;
import static muramasa.gregtech.data.Materials.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ private static void antimatterMaterials(GregTechMaterialEvent event){
event.setMaterial(EnderEye).asGemBasic(false, ROD_LONG, PLATE).mats(of(EnderPearl, 1, Blaze, 1));
event.setMaterial(EnderPearl).mats(of(Beryllium, 1, Potassium, 4, Nitrogen, 5, Chlorine, 6)).elecTicks(220);
event.setMaterial(Gold).flags(FOIL, ROD_LONG, WIRE_FINE, GEAR);
event.setMaterial(Iron).flags(RING, ROD_LONG, GEAR, FRAME);
event.setMaterial(Iron).flags(RING, ROD_LONG, GEAR, FRAME, GEAR_SMALL);
event.setMaterial(Wood).flags(FRAME);
event.setMaterial(AntimatterMaterials.Netherite).asMetal(2246, 1300, RING);
event.setMaterial(Lapis).asGemBasic(false, PLATE).mats(of(Lazurite, 12, Sodalite, 2, Pyrite, 1, Calcite, 1));
Expand Down
10 changes: 0 additions & 10 deletions common/src/main/java/muramasa/gregtech/data/TierMaps.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import muramasa.antimatter.util.TagUtils;
import muramasa.gregtech.GTIRef;
import muramasa.gregtech.GregTechConfig;
import muramasa.gregtech.items.ItemIntCircuit;
import net.minecraft.tags.TagKey;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.Items;
Expand All @@ -25,13 +24,11 @@

import static muramasa.antimatter.data.AntimatterMaterials.Copper;
import static muramasa.antimatter.data.AntimatterMaterialTypes.GEM;
import static muramasa.antimatter.data.AntimatterMaterialTypes.ROTOR;
import static muramasa.antimatter.machine.Tier.*;
import static muramasa.gregtech.data.Materials.*;

public class TierMaps {

public static final ImmutableMap<Integer, RecipeIngredient> INT_CIRCUITS;
public static final ImmutableMap<Tier, Material> TIER_MATERIALS;
public static final ImmutableMap<Tier, Material> TIER_PIPE_MATERIAL;
public static ImmutableMap<Tier, PipeItemBlock> TIER_WIRES;
Expand All @@ -50,13 +47,6 @@ public class TierMaps {
public static final TriFunction<PipeSize, Tier, Boolean, Object> CABLE_GETTER;

static {
{
ImmutableMap.Builder<Integer, RecipeIngredient> builder = ImmutableMap.builder();
for (int i = 0; i <= 24; i++) {
builder.put(i, RecipeIngredient.of(new ItemIntCircuit(GTIRef.ID, "int_circuit_"+i,i),1).setNoConsume());
}
INT_CIRCUITS = builder.build();
}
{
ImmutableMap.Builder<Tier, Material> builder = ImmutableMap.builder();
builder.put(Tier.ULV, WroughtIron);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,14 @@
import muramasa.antimatter.AntimatterAPI;
import muramasa.antimatter.datagen.providers.AntimatterLanguageProvider;
import muramasa.antimatter.item.ItemBasic;
import muramasa.antimatter.machine.Tier;
import muramasa.antimatter.util.Utils;
import muramasa.gregtech.GTIRef;
import muramasa.gregtech.block.*;
import muramasa.gregtech.data.GregTechBlocks;
import muramasa.gregtech.data.GregTechItems;
import muramasa.gregtech.items.ItemDepletedRod;
import muramasa.gregtech.items.ItemIntCircuit;
import muramasa.gregtech.items.ItemNuclearFuelRod;

import java.util.Locale;

import static muramasa.antimatter.machine.Tier.*;
import static muramasa.antimatter.util.Utils.*;
import static muramasa.gregtech.data.Machines.*;
Expand Down Expand Up @@ -351,7 +347,6 @@ protected void english(String domain, String locale) {
.replace("Hv", "(HV)")
.replace("Ev", "(EV)")
.replace("Iv", "(IV)")));
AntimatterAPI.all(ItemIntCircuit.class, domain).forEach(i -> override(i.getDescriptionId(), "Integrated Circuit (" + i.circuitId + ")"));
AntimatterAPI.all(ItemNuclearFuelRod.class, domain).forEach(i -> override(i.getDescriptionId(), Utils.getLocalizedType(i.getMaterial()) + " Fuel Rod"));
AntimatterAPI.all(ItemDepletedRod.class, domain).forEach(i -> override(i.getDescriptionId(), "Depleted " + Utils.getLocalizedType(i.getMaterial()) + " Fuel Rod"));
String[] fluids = new String[]{"hot_molten_lithium_chloride", "hot_molten_tin", "hot_molten_sodium"};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package muramasa.gregtech.integration;

import io.github.gregtechintergalactical.gtcore.data.GTCoreItems;
import muramasa.antimatter.AntimatterAPI;
import muramasa.antimatter.Ref;
import muramasa.antimatter.data.AntimatterStoneTypes;
Expand Down Expand Up @@ -95,7 +96,7 @@ public static void machineRecipes(){
RecipeMaps.MACERATOR.RB().ii(of(getAe2Item("sky_stone_chest"))).io(new ItemStack(getAe2Item("sky_dust"), 8)).add("sky_dust_from_chest", 400, 2);
RecipeMaps.MACERATOR.RB().ii(of(getAe2Item("sky_stone_block"))).io(new ItemStack(getAe2Item("sky_dust"))).add("sky_dust", 400, 2);
RecipeMaps.ELECTROLYZER.RB().ii(GEM.getMaterialIngredient(CertusQuartz, 1)).io(new ItemStack(getAe2Item("charged_certus_quartz_crystal"))).add("charged_certus_quartz", 2000, 30);
E_BLAST_FURNACE.RB().ii(RecipeIngredient.of(TagUtils.getForgelikeItemTag("silicon")), TierMaps.INT_CIRCUITS.get(1)).io(INGOT.get(Silicon)).add("silicon_ingot_from_silicon", 1683, 120, 1683);
E_BLAST_FURNACE.RB().ii(RecipeIngredient.of(TagUtils.getForgelikeItemTag("silicon")), GTCoreItems.SELECTOR_TAG_INGREDIENTS.get(1)).io(INGOT.get(Silicon)).add("silicon_ingot_from_silicon", 1683, 120, 1683);
LASER_ENGRAVER.RB().ii(BLOCK.getMaterialIngredient(Iron, 1), LENS.getMaterialIngredient(GreenSapphire, 1).setNoConsume()).io(new ItemStack(getAe2Item("logic_processor_press"))).add("inscriber_logic_press", 2000, 1920);
LASER_ENGRAVER.RB().ii(BLOCK.getMaterialIngredient(Iron, 1), LENS.getMaterialIngredient(Opal, 1).setNoConsume()).io(new ItemStack(getAe2Item("calculation_processor_press"))).add("inscriber_calculation_press", 2000, 1920);
LASER_ENGRAVER.RB().ii(BLOCK.getMaterialIngredient(Iron, 1), LENS.getMaterialIngredient(BlueTopaz, 1).setNoConsume()).io(new ItemStack(getAe2Item("calculation_processor_press"))).add("inscriber_calculation_press_2", 2000, 1920);
Expand Down
67 changes: 0 additions & 67 deletions common/src/main/java/muramasa/gregtech/items/ItemIntCircuit.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ public static void loadRecipes(Consumer<FinishedRecipe> output, AntimatterRecipe
provider.addStackRecipe(output, GTIRef.ID, "drain_expensive", "parts",
new ItemStack(GregTech.get(ItemCover.class, "drain"), 1), of('A', PLATES_IRON_ALUMINIUM, 'B', Items.IRON_BARS), "ABA", "B B", "ABA");

provider.shapeless(output, "int_circuit", "gtparts",
INT_CIRCUITS.get(0).getItems()[0], GTCoreTags.CIRCUITS_BASIC);
// INT_CIRCUITS.forEach((k, v) -> {
Ingredient ing = INT_CIRCUITS.get(0);
provider.shapeless(output, "int_circuit_to_circuit", "gtparts",
CircuitBasic.getDefaultInstance(), ing);
// });
provider.addItemRecipe(output, "gtparts", SELECTOR_TAG_ITEMS.get(0),
of('G', GEAR_SMALL.getMaterialTag(Iron), 'R', ROD.getMaterialTag(Iron), 'W', WRENCH.getTag(), 'H', HAMMER.getTag()), "GHG", "RRR", "GWG");

provider.shapeless(output, GTIRef.ID, "", "carbon", new ItemStack(CarbonMesh), CarbonFibre, CarbonFibre);
provider.addItemRecipe(output, GTIRef.ID, "", "carbon", CoalBall,
Expand Down
Loading

0 comments on commit ee19256

Please sign in to comment.