aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-06-06 16:09:48 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-06-06 16:09:48 +0800
commit94e6085d2d49e7fe38871c9548774c4e50a2f422 (patch)
tree8de1c84b88a61ecd79810ede9adcd1a5727ca852 /src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
parent9755812e75e7fa357dd0ae55bb36b9e3a7d86822 (diff)
downloadRoughlyEnoughItems-94e6085d2d49e7fe38871c9548774c4e50a2f422.tar.gz
RoughlyEnoughItems-94e6085d2d49e7fe38871c9548774c4e50a2f422.tar.bz2
RoughlyEnoughItems-94e6085d2d49e7fe38871c9548774c4e50a2f422.zip
this is still not working
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java')
-rw-r--r--src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
index 5255f2d0d..45f15d18b 100644
--- a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
+++ b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java
@@ -43,6 +43,7 @@ public class RecipeHelperImpl implements RecipeHelper {
private final List<RecipeCategory> categories = Lists.newArrayList();
private final Map<Identifier, ButtonAreaSupplier> speedCraftAreaSupplierMap = Maps.newHashMap();
private final Map<Identifier, List<SpeedCraftFunctional>> speedCraftFunctionalMap = Maps.newHashMap();
+ private final Map<Identifier, List<ItemStack>> categoryWorkingStations = Maps.newHashMap();
private final List<DisplayVisibilityHandler> displayVisibilityHandlers = Lists.newArrayList();
private final List<LiveRecipeGenerator> liveRecipeGenerators = Lists.newArrayList();
private RecipeManager recipeManager;
@@ -82,6 +83,17 @@ public class RecipeHelperImpl implements RecipeHelper {
categories.add(category);
categoryDisplaySettingsMap.put(category.getIdentifier(), category.getDisplaySettings());
recipeCategoryListMap.put(category.getIdentifier(), Lists.newLinkedList());
+ categoryWorkingStations.put(category.getIdentifier(), Lists.newLinkedList());
+ }
+
+ @Override
+ public void registerWorkingStations(Identifier category, ItemStack... workingStations) {
+ categoryWorkingStations.get(category).addAll(Arrays.asList(workingStations));
+ }
+
+ @Override
+ public List<ItemStack> getWorkingStations(Identifier category) {
+ return categoryWorkingStations.get(category);
}
@Override
@@ -213,6 +225,7 @@ public class RecipeHelperImpl implements RecipeHelper {
this.recipeCategoryListMap.clear();
this.categories.clear();
this.speedCraftAreaSupplierMap.clear();
+ this.categoryWorkingStations.clear();
this.speedCraftFunctionalMap.clear();
this.categoryDisplaySettingsMap.clear();
this.recipeFunctions.clear();