9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-25 09:59:20 +00:00

Update AbstractRecipeManager.java

This commit is contained in:
XiaoMoMi
2025-08-05 21:21:21 +08:00
parent 0d3f216bac
commit 616e739da2

View File

@@ -15,7 +15,7 @@ import java.nio.file.Path;
import java.util.*;
public abstract class AbstractRecipeManager<T> implements RecipeManager<T> {
protected final Map<RecipeType, List<Recipe<T>>> byType = new HashMap<>();
protected final Map<RecipeType, List<Recipe<T>>> byType = new EnumMap<>(RecipeType.class);
protected final Map<Key, Recipe<T>> byId = new HashMap<>();
protected final Map<Key, List<Recipe<T>>> byResult = new HashMap<>();
protected final Map<Key, List<Recipe<T>>> byIngredient = new HashMap<>();