diff options
| author | shedaniel <daniel@shedaniel.me> | 2021-03-18 01:49:30 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2021-03-18 01:49:30 +0800 |
| commit | 4e26c83691cf4ce0a19dc2244e31bd73e551865e (patch) | |
| tree | 0045f7d441b8798fe3e77ba5e1b74cc2dc5fa866 /runtime/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java | |
| parent | 3ce2916f5628a127e50c108e897b2d59a95b6d89 (diff) | |
| download | RoughlyEnoughItems-4e26c83691cf4ce0a19dc2244e31bd73e551865e.tar.gz RoughlyEnoughItems-4e26c83691cf4ce0a19dc2244e31bd73e551865e.tar.bz2 RoughlyEnoughItems-4e26c83691cf4ce0a19dc2244e31bd73e551865e.zip | |
Relocate api classes
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'runtime/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java')
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java b/runtime/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java index e6da337ea..6bdd6beee 100644 --- a/runtime/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java +++ b/runtime/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java @@ -32,9 +32,9 @@ import me.shedaniel.clothconfig2.api.ScrollingContainer; import me.shedaniel.math.Point; import me.shedaniel.math.Rectangle; import me.shedaniel.math.impl.PointHelper; -import me.shedaniel.rei.api.ButtonAreaSupplier; +import me.shedaniel.rei.api.registry.category.ButtonArea; import me.shedaniel.rei.api.ClientHelper; -import me.shedaniel.rei.api.ConfigObject; +import me.shedaniel.rei.api.config.ConfigObject; import me.shedaniel.rei.api.REIHelper; import me.shedaniel.rei.api.gui.DisplayRenderer; import me.shedaniel.rei.api.gui.widgets.Button; @@ -158,7 +158,7 @@ public class VillagerRecipeViewingScreen extends AbstractRecipeViewingScreen { transformIngredientNotice(setupDisplay, ingredientStackToNotice); transformResultNotice(setupDisplay, resultStackToNotice); this.widgets.addAll(setupDisplay); - Optional<ButtonAreaSupplier> supplier = CategoryRegistry.getInstance().get(category.getIdentifier()).getPlusButtonArea(); + Optional<ButtonArea> supplier = CategoryRegistry.getInstance().get(category.getIdentifier()).getPlusButtonArea(); if (supplier.isPresent() && supplier.get().get(recipeBounds) != null) this.widgets.add(InternalWidgets.createAutoCraftingButtonWidget(recipeBounds, supplier.get().get(recipeBounds), new TextComponent(supplier.get().getButtonText()), () -> display, setupDisplay, category)); |
