diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-06-08 20:30:53 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-06-08 20:30:53 +0800 |
| commit | 4710c557f449703362665a520bf68b85b2a7cdc1 (patch) | |
| tree | ed9555c626be11c7bc0d230d2b905856269bd916 /src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java | |
| parent | 28adfa726bcdb27eea4ffa39962c881d5c3d929b (diff) | |
| download | RoughlyEnoughItems-4710c557f449703362665a520bf68b85b2a7cdc1.tar.gz RoughlyEnoughItems-4710c557f449703362665a520bf68b85b2a7cdc1.tar.bz2 RoughlyEnoughItems-4710c557f449703362665a520bf68b85b2a7cdc1.zip | |
We are going to break lots of mods
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java index 83ee91458..64450da02 100644 --- a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java +++ b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java @@ -43,7 +43,6 @@ public class RecipeHelperImpl implements RecipeHelper { private final Map<Identifier, DisplaySettings> categoryDisplaySettingsMap = Maps.newHashMap(); 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<List<ItemStack>>> categoryWorkingStations = Maps.newHashMap(); private final List<DisplayVisibilityHandler> displayVisibilityHandlers = Lists.newArrayList(); private final List<LiveRecipeGenerator> liveRecipeGenerators = Lists.newArrayList(); @@ -211,20 +210,6 @@ public class RecipeHelperImpl implements RecipeHelper { registerSpeedCraftButtonArea(category, bounds -> new Rectangle((int) bounds.getMaxX() - 16, (int) bounds.getMaxY() - 16, 10, 10)); } - @Override - public List<SpeedCraftFunctional> getSpeedCraftFunctional(RecipeCategory category) { - if (speedCraftFunctionalMap.get(category.getIdentifier()) == null) - return Lists.newArrayList(); - return speedCraftFunctionalMap.get(category.getIdentifier()); - } - - @Override - public void registerSpeedCraftFunctional(Identifier category, SpeedCraftFunctional functional) { - List<SpeedCraftFunctional> list = speedCraftFunctionalMap.containsKey(category) ? new LinkedList<>(speedCraftFunctionalMap.get(category)) : Lists.newLinkedList(); - list.add(functional); - speedCraftFunctionalMap.put(category, list); - } - @SuppressWarnings("deprecation") public void recipesLoaded(RecipeManager recipeManager) { this.recipeCount.set(0); @@ -233,7 +218,6 @@ public class RecipeHelperImpl implements RecipeHelper { this.categories.clear(); this.speedCraftAreaSupplierMap.clear(); this.categoryWorkingStations.clear(); - this.speedCraftFunctionalMap.clear(); this.categoryDisplaySettingsMap.clear(); this.recipeFunctions.clear(); this.displayVisibilityHandlers.clear(); |
