mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-06-27 12:51:42 +02:00
37 lines
1.1 KiB
Java
37 lines
1.1 KiB
Java
/*
|
|
package de.ellpeck.naturesaura.compat.patchouli;
|
|
|
|
import de.ellpeck.naturesaura.recipes.OfferingRecipe;
|
|
import vazkii.patchouli.api.IComponentProcessor;
|
|
import vazkii.patchouli.api.IVariable;
|
|
import vazkii.patchouli.api.IVariableProvider;
|
|
|
|
public class ProcessorOffering implements IComponentProcessor {
|
|
|
|
private OfferingRecipe recipe;
|
|
|
|
@Override
|
|
public void setup(IVariableProvider provider) {
|
|
this.recipe = PatchouliCompat.getRecipe("offering", provider.get("recipe").asString());
|
|
}
|
|
|
|
@Override
|
|
public IVariable process(String key) {
|
|
if (this.recipe == null)
|
|
return null;
|
|
switch (key) {
|
|
case "input":
|
|
return PatchouliCompat.ingredientVariable(this.recipe.input);
|
|
case "output":
|
|
return IVariable.from(this.recipe.output);
|
|
case "start":
|
|
return PatchouliCompat.ingredientVariable(this.recipe.startItem);
|
|
case "name":
|
|
return IVariable.wrap(this.recipe.output.getDisplayName().getString());
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
*/
|