mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-20 15:39:22 +00:00
配方注册顺序有序
This commit is contained in:
@@ -17,7 +17,7 @@ import java.util.*;
|
|||||||
|
|
||||||
public abstract class AbstractRecipeManager<T> implements RecipeManager<T> {
|
public abstract class AbstractRecipeManager<T> implements RecipeManager<T> {
|
||||||
protected final Map<RecipeType, List<Recipe<T>>> byType = new EnumMap<>(RecipeType.class);
|
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, Recipe<T>> byId = new LinkedHashMap<>();
|
||||||
protected final Map<Key, List<Recipe<T>>> byResult = new HashMap<>();
|
protected final Map<Key, List<Recipe<T>>> byResult = new HashMap<>();
|
||||||
protected final Map<Key, List<Recipe<T>>> byIngredient = new HashMap<>();
|
protected final Map<Key, List<Recipe<T>>> byIngredient = new HashMap<>();
|
||||||
protected final Set<Key> dataPackRecipes = new HashSet<>();
|
protected final Set<Key> dataPackRecipes = new HashSet<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user