mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 23:13:09 +00:00
Bump patchouli and forge, fix floating flower in world render
This commit is contained in:
1 parent
9c23ff9257
commit
05fe2c195c
9 files changed
+43
-22
No files matched your search
+7
-3
@@ -15,20 +15,18 @@ import net.minecraft.item.crafting.Ingredient;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.recipe.IModRecipe;
|
||||
import vazkii.patchouli.api.VariableHolder;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
|
||||
/**
|
||||
* Patchouli custom component that draws a rotating circle of items from the defined recipe.
|
||||
*/
|
||||
public class RotatingRecipeComponent extends RotatingItemListComponentBase {
|
||||
@VariableHolder
|
||||
@SerializedName("recipe_name")
|
||||
public String recipeName;
|
||||
|
||||
@VariableHolder
|
||||
@SerializedName("recipe_type")
|
||||
public String recipeType;
|
||||
|
||||
@@ -45,4 +43,10 @@ public class RotatingRecipeComponent extends RotatingItemListComponentBase {
|
||||
IModRecipe recipe = map.get(new ResourceLocation(recipeName));
|
||||
return recipe.getInputs();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onVariablesAvailable(Function<String, String> lookup) {
|
||||
recipeName = lookup.apply(recipeName);
|
||||
recipeType = lookup.apply(recipeType);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user