mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-11-14 19:25:13 -05:00
Add some modern industrialization recipe keys
This commit is contained in:
parent
220521df08
commit
2cbe1dde3d
3 changed files with 15 additions and 0 deletions
|
@ -6,6 +6,7 @@ public final class ModConstants {
|
|||
public static final String AMETHYST_IMBUEMENT = "amethyst_imbuement";
|
||||
public static final String AD_ASTRA = "ad_astra";
|
||||
public static final String MEKANISM = "mekanism";
|
||||
public static final String MODERN_INDUSTRIALIZATION = "modern_industrialization";
|
||||
|
||||
private ModConstants() {}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.almostreliable.unified;
|
|||
import com.almostreliable.unified.api.ModConstants;
|
||||
import com.almostreliable.unified.compat.AdAstraRecipeUnifier;
|
||||
import com.almostreliable.unified.compat.AmethystImbuementRecipeUnifier;
|
||||
import com.almostreliable.unified.compat.ModernIndustrializationRecipeUnifier;
|
||||
import com.almostreliable.unified.recipe.unifier.RecipeHandlerFactory;
|
||||
import com.almostreliable.unified.utils.UnifyTag;
|
||||
import com.google.auto.service.AutoService;
|
||||
|
@ -50,6 +51,7 @@ public class AlmostUnifiedPlatformFabric implements AlmostUnifiedPlatform {
|
|||
@Override
|
||||
public void bindRecipeHandlers(RecipeHandlerFactory factory) {
|
||||
factory.registerForMod(ModConstants.AD_ASTRA, new AdAstraRecipeUnifier());
|
||||
factory.registerForMod(ModConstants.MODERN_INDUSTRIALIZATION, new ModernIndustrializationRecipeUnifier());
|
||||
factory.registerForMod(ModConstants.AMETHYST_IMBUEMENT, new AmethystImbuementRecipeUnifier());
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
package com.almostreliable.unified.compat;
|
||||
|
||||
import com.almostreliable.unified.api.recipe.RecipeUnifier;
|
||||
import com.almostreliable.unified.api.recipe.RecipeUnifierBuilder;
|
||||
|
||||
public class ModernIndustrializationRecipeUnifier implements RecipeUnifier {
|
||||
@Override
|
||||
public void collectUnifier(RecipeUnifierBuilder builder) {
|
||||
builder.put("item_inputs", (json, ctx) -> ctx.createIngredientReplacement(json));
|
||||
builder.put("item_outputs", (json, ctx) -> ctx.createResultReplacement(json));
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue