Skip to content

Commit

Permalink
scraping out old crap
Browse files Browse the repository at this point in the history
  • Loading branch information
HbmMods committed Feb 19, 2025
1 parent c3eb603 commit 4c82dfc
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 203 deletions.
164 changes: 0 additions & 164 deletions src/main/java/com/hbm/handler/nei/HadronRecipeHandler.java

This file was deleted.

40 changes: 2 additions & 38 deletions src/main/java/com/hbm/inventory/recipes/HadronRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.List;

import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.stream.JsonWriter;
import com.hbm.inventory.RecipesCommon.ComparableStack;
import com.hbm.inventory.recipes.loader.SerializableRecipe;
Expand Down Expand Up @@ -183,45 +182,10 @@ public Object getRecipeObject() {
}

@Override
public void readRecipe(JsonElement recipe) {
JsonObject obj = (JsonObject) recipe;
int momentum = obj.get("momentum").getAsInt();
boolean lineMode = obj.get("lineMode").getAsBoolean();
ItemStack[] in = this.readItemStackArray(obj.get("inputs").getAsJsonArray());
ItemStack[] out = this.readItemStackArray(obj.get("outputs").getAsJsonArray());

this.recipes.add(new HadronRecipe(
in[0],
in[1],
momentum,
out[0],
out[1],
lineMode
));
}
public void readRecipe(JsonElement recipe) { }

@Override
public void writeRecipe(Object recipe, JsonWriter writer) throws IOException {
HadronRecipe rec = (HadronRecipe) recipe;

writer.name("momentum").value(rec.momentum);
writer.name("lineMode").value(rec.analysisOnly);

writer.name("inputs").beginArray();
this.writeItemStack(rec.in1.toStack(), writer);
this.writeItemStack(rec.in2.toStack(), writer);
writer.endArray();

writer.name("outputs").beginArray();
this.writeItemStack(rec.out1, writer);
this.writeItemStack(rec.out2, writer);
writer.endArray();
}

@Override
public String getComment() {
return "Rules: Both in- and output stacks cannot be null. Stacksizes are set to 1 for all stacks.";
}
public void writeRecipe(Object recipe, JsonWriter writer) throws IOException { }

@Override
public void deleteRecipes() {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/hbm/main/NEIRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public static List<TemplateRecipeHandler> listAllHandlers() {
handlers.add(new CrystallizerRecipeHandler());
handlers.add(new BookRecipeHandler());
handlers.add(new FusionRecipeHandler());
handlers.add(new HadronRecipeHandler());
handlers.add(new SILEXRecipeHandler());
handlers.add(new FuelPoolHandler());
handlers.add(new CrucibleSmeltingHandler());
Expand Down
Binary file not shown.

0 comments on commit 4c82dfc

Please sign in to comment.