From 8f24a0f8446bddbbb5540163a96c2a6fde762823 Mon Sep 17 00:00:00 2001 From: Shnupbups Date: Thu, 18 Nov 2021 11:16:12 +1100 Subject: Waxing, Wax Scraping, Oxidizing, and Oxidation Scraping categories --- .../rei/plugin/client/DefaultClientPlugin.java | 33 ++++++++- .../DefaultOxidationScrapingCategory.java | 78 +++++++++++++++++++++ .../categories/DefaultOxidizingCategory.java | 78 +++++++++++++++++++++ .../categories/DefaultWaxScrapingCategory.java | 79 ++++++++++++++++++++++ .../client/categories/DefaultWaxingCategory.java | 78 +++++++++++++++++++++ .../shedaniel/rei/plugin/common/BuiltinPlugin.java | 4 ++ .../shedaniel/rei/plugin/common/DefaultPlugin.java | 4 ++ .../displays/DefaultOxidationScrapingDisplay.java | 60 ++++++++++++++++ .../common/displays/DefaultOxidizingDisplay.java | 60 ++++++++++++++++ .../common/displays/DefaultWaxScrapingDisplay.java | 60 ++++++++++++++++ .../common/displays/DefaultWaxingDisplay.java | 60 ++++++++++++++++ 11 files changed, 592 insertions(+), 2 deletions(-) create mode 100644 default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidationScrapingCategory.java create mode 100644 default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidizingCategory.java create mode 100644 default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultWaxScrapingCategory.java create mode 100644 default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultWaxingCategory.java create mode 100644 default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidationScrapingDisplay.java create mode 100644 default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidizingDisplay.java create mode 100644 default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxScrapingDisplay.java create mode 100644 default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxingDisplay.java (limited to 'default-plugin/src/main/java/me/shedaniel/rei') diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/DefaultClientPlugin.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/DefaultClientPlugin.java index e469d078c..779b21e0b 100644 --- a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/DefaultClientPlugin.java +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/DefaultClientPlugin.java @@ -95,6 +95,7 @@ import net.minecraft.world.level.GameType; import net.minecraft.world.level.ItemLike; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.ComposterBlock; +import net.minecraft.world.level.block.WeatheringCopper; import net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.material.Fluid; @@ -146,7 +147,8 @@ public class DefaultClientPlugin implements REIClientPlugin, BuiltinClientPlugin new DefaultCraftingCategory(), new DefaultCookingCategory(SMELTING, EntryStacks.of(Items.FURNACE), "category.rei.smelting"), new DefaultCookingCategory(SMOKING, EntryStacks.of(Items.SMOKER), "category.rei.smoking"), - new DefaultCookingCategory(BLASTING, EntryStacks.of(Items.BLAST_FURNACE), "category.rei.blasting"), new DefaultCampfireCategory(), + new DefaultCookingCategory(BLASTING, EntryStacks.of(Items.BLAST_FURNACE), "category.rei.blasting"), + new DefaultCampfireCategory(), new DefaultStoneCuttingCategory(), new DefaultFuelCategory(), new DefaultBrewingCategory(), @@ -158,6 +160,10 @@ public class DefaultClientPlugin implements REIClientPlugin, BuiltinClientPlugin new DefaultBeaconPaymentCategory(), new DefaultTillingCategory(), new DefaultPathingCategory(), + new DefaultWaxingCategory(), + new DefaultWaxScrapingCategory(), + new DefaultOxidizingCategory(), + new DefaultOxidationScrapingCategory(), new DefaultInformationCategory() ); @@ -169,6 +175,10 @@ public class DefaultClientPlugin implements REIClientPlugin, BuiltinClientPlugin registry.removePlusButton(STRIPPING); registry.removePlusButton(TILLING); registry.removePlusButton(PATHING); + registry.removePlusButton(WAXING); + registry.removePlusButton(WAX_SCRAPING); + registry.removePlusButton(OXIDIZING); + registry.removePlusButton(OXIDATION_SCRAPING); registry.addWorkstations(CRAFTING, EntryStacks.of(Items.CRAFTING_TABLE)); registry.addWorkstations(SMELTING, EntryStacks.of(Items.FURNACE)); @@ -183,11 +193,14 @@ public class DefaultClientPlugin implements REIClientPlugin, BuiltinClientPlugin registry.addWorkstations(SMITHING, EntryStacks.of(Items.SMITHING_TABLE)); registry.addWorkstations(BEACON_BASE, EntryStacks.of(Items.BEACON)); registry.addWorkstations(BEACON_PAYMENT, EntryStacks.of(Items.BEACON)); + registry.addWorkstations(WAXING, EntryStacks.of(Items.HONEYCOMB)); Set axes = Sets.newHashSet(), hoes = Sets.newHashSet(), shovels = Sets.newHashSet(); EntryRegistry.getInstance().getEntryStacks().filter(stack -> stack.getValueType() == ItemStack.class).map(stack -> ((ItemStack) stack.getValue()).getItem()).forEach(item -> { if (item instanceof AxeItem && axes.add(item)) { registry.addWorkstations(STRIPPING, EntryStacks.of(item)); + registry.addWorkstations(WAX_SCRAPING, EntryStacks.of(item)); + registry.addWorkstations(OXIDATION_SCRAPING, EntryStacks.of(item)); } if (item instanceof HoeItem && hoes.add(item)) { registry.addWorkstations(TILLING, EntryStacks.of(item)); @@ -200,7 +213,11 @@ public class DefaultClientPlugin implements REIClientPlugin, BuiltinClientPlugin Tag axesTag = itemTagCollection.getTag(new ResourceLocation("c", "axes")); if (axesTag != null) { for (Item item : axesTag.getValues()) { - if (axes.add(item)) registry.addWorkstations(STRIPPING, EntryStacks.of(item)); + if (axes.add(item)) { + registry.addWorkstations(STRIPPING, EntryStacks.of(item)); + registry.addWorkstations(WAX_SCRAPING, EntryStacks.of(item)); + registry.addWorkstations(OXIDATION_SCRAPING, EntryStacks.of(item)); + } } } Tag hoesTag = itemTagCollection.getTag(new ResourceLocation("c", "hoes")); @@ -268,6 +285,18 @@ public class DefaultClientPlugin implements REIClientPlugin, BuiltinClientPlugin }); registry.add(new DefaultBeaconBaseDisplay(CollectionUtils.map(Lists.newArrayList(BlockTags.BEACON_BASE_BLOCKS.getValues()), ItemStack::new))); registry.add(new DefaultBeaconPaymentDisplay(CollectionUtils.map(Lists.newArrayList(ItemTags.BEACON_PAYMENT_ITEMS.getValues()), ItemStack::new))); + HoneycombItem.WAXABLES.get().entrySet().stream().sorted(Comparator.comparing(b -> Registry.BLOCK.getKey(b.getKey()))).forEach(set -> { + registry.add(new DefaultWaxingDisplay(EntryStacks.of(set.getKey()), EntryStacks.of(set.getValue()))); + }); + HoneycombItem.WAX_OFF_BY_BLOCK.get().entrySet().stream().sorted(Comparator.comparing(b -> Registry.BLOCK.getKey(b.getKey()))).forEach(set -> { + registry.add(new DefaultWaxScrapingDisplay(EntryStacks.of(set.getKey()), EntryStacks.of(set.getValue()))); + }); + WeatheringCopper.NEXT_BY_BLOCK.get().entrySet().stream().sorted(Comparator.comparing(b -> Registry.BLOCK.getKey(b.getKey()))).forEach(set -> { + registry.add(new DefaultOxidizingDisplay(EntryStacks.of(set.getKey()), EntryStacks.of(set.getValue()))); + }); + WeatheringCopper.PREVIOUS_BY_BLOCK.get().entrySet().stream().sorted(Comparator.comparing(b -> Registry.BLOCK.getKey(b.getKey()))).forEach(set -> { + registry.add(new DefaultOxidationScrapingDisplay(EntryStacks.of(set.getKey()), EntryStacks.of(set.getValue()))); + }); if (Platform.isFabric()) { Set potions = Sets.newLinkedHashSet(); for (Ingredient container : PotionBrewing.ALLOWED_CONTAINERS) { diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidationScrapingCategory.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidationScrapingCategory.java new file mode 100644 index 000000000..7cf774f85 --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidationScrapingCategory.java @@ -0,0 +1,78 @@ +/* + * This file is licensed under the MIT License, part of Roughly Enough Items. + * Copyright (c) 2018, 2019, 2020, 2021 shedaniel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +package me.shedaniel.rei.plugin.client.categories; + +import java.util.List; + +import com.google.common.collect.Lists; + +import net.minecraft.network.chat.Component; +import net.minecraft.network.chat.TranslatableComponent; +import net.minecraft.world.item.Items; + +import me.shedaniel.math.Point; +import me.shedaniel.math.Rectangle; +import me.shedaniel.rei.api.client.gui.Renderer; +import me.shedaniel.rei.api.client.gui.widgets.Widget; +import me.shedaniel.rei.api.client.gui.widgets.Widgets; +import me.shedaniel.rei.api.client.registry.display.DisplayCategory; +import me.shedaniel.rei.api.common.category.CategoryIdentifier; +import me.shedaniel.rei.api.common.util.EntryStacks; +import me.shedaniel.rei.plugin.common.BuiltinPlugin; +import me.shedaniel.rei.plugin.common.displays.DefaultOxidationScrapingDisplay; + +public class DefaultOxidationScrapingCategory implements DisplayCategory { + @Override + public CategoryIdentifier getCategoryIdentifier() { + return BuiltinPlugin.OXIDATION_SCRAPING; + } + + @Override + public Renderer getIcon() { + return EntryStacks.of(Items.STONE_AXE); + } + + @Override + public Component getTitle() { + return new TranslatableComponent("category.rei.oxidation_scraping"); + } + + @Override + public List setupDisplay(DefaultOxidationScrapingDisplay display, Rectangle bounds) { + Point startPoint = new Point(bounds.getCenterX() - 41, bounds.getCenterY() - 13); + List widgets = Lists.newArrayList(); + widgets.add(Widgets.createRecipeBase(bounds)); + widgets.add(Widgets.createArrow(new Point(startPoint.x + 27, startPoint.y + 4))); + widgets.add(Widgets.createResultSlotBackground(new Point(startPoint.x + 61, startPoint.y + 5))); + widgets.add(Widgets.createSlot(new Point(startPoint.x + 4, startPoint.y + 5)).entries(display.getIn()).markInput()); + widgets.add(Widgets.createSlot(new Point(startPoint.x + 61, startPoint.y + 5)).entries(display.getOut()).disableBackground().markInput()); + return widgets; + } + + @Override + public int getDisplayHeight() { + return 36; + } + +} diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidizingCategory.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidizingCategory.java new file mode 100644 index 000000000..d2d6cfea3 --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidizingCategory.java @@ -0,0 +1,78 @@ +/* + * This file is licensed under the MIT License, part of Roughly Enough Items. + * Copyright (c) 2018, 2019, 2020, 2021 shedaniel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +package me.shedaniel.rei.plugin.client.categories; + +import java.util.List; + +import com.google.common.collect.Lists; + +import net.minecraft.network.chat.Component; +import net.minecraft.network.chat.TranslatableComponent; +import net.minecraft.world.item.Items; + +import me.shedaniel.math.Point; +import me.shedaniel.math.Rectangle; +import me.shedaniel.rei.api.client.gui.Renderer; +import me.shedaniel.rei.api.client.gui.widgets.Widget; +import me.shedaniel.rei.api.client.gui.widgets.Widgets; +import me.shedaniel.rei.api.client.registry.display.DisplayCategory; +import me.shedaniel.rei.api.common.category.CategoryIdentifier; +import me.shedaniel.rei.api.common.util.EntryStacks; +import me.shedaniel.rei.plugin.common.BuiltinPlugin; +import me.shedaniel.rei.plugin.common.displays.DefaultOxidizingDisplay; + +public class DefaultOxidizingCategory implements DisplayCategory { + @Override + public CategoryIdentifier getCategoryIdentifier() { + return BuiltinPlugin.OXIDIZING; + } + + @Override + public Renderer getIcon() { + return EntryStacks.of(Items.CLOCK); + } + + @Override + public Component getTitle() { + return new TranslatableComponent("category.rei.oxidizing"); + } + + @Override + public List setupDisplay(DefaultOxidizingDisplay display, Rectangle bounds) { + Point startPoint = new Point(bounds.getCenterX() - 41, bounds.getCenterY() - 13); + List widgets = Lists.newArrayList(); + widgets.add(Widgets.createRecipeBase(bounds)); + widgets.add(Widgets.createArrow(new Point(startPoint.x + 27, startPoint.y + 4))); + widgets.add(Widgets.createResultSlotBackground(new Point(startPoint.x + 61, startPoint.y + 5))); + widgets.add(Widgets.createSlot(new Point(startPoint.x + 4, startPoint.y + 5)).entries(display.getIn()).markInput()); + widgets.add(Widgets.createSlot(new Point(startPoint.x + 61, startPoint.y + 5)).entries(display.getOut()).disableBackground().markInput()); + return widgets; + } + + @Override + public int getDisplayHeight() { + return 36; + } + +} diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultWaxScrapingCategory.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultWaxScrapingCategory.java new file mode 100644 index 000000000..ea472159c --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultWaxScrapingCategory.java @@ -0,0 +1,79 @@ +/* + * This file is licensed under the MIT License, part of Roughly Enough Items. + * Copyright (c) 2018, 2019, 2020, 2021 shedaniel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +package me.shedaniel.rei.plugin.client.categories; + +import java.util.List; + +import com.google.common.collect.Lists; + +import net.minecraft.network.chat.Component; +import net.minecraft.network.chat.TranslatableComponent; +import net.minecraft.world.item.Items; + +import me.shedaniel.math.Point; +import me.shedaniel.math.Rectangle; +import me.shedaniel.rei.api.client.gui.Renderer; +import me.shedaniel.rei.api.client.gui.widgets.Widget; +import me.shedaniel.rei.api.client.gui.widgets.Widgets; +import me.shedaniel.rei.api.client.registry.display.DisplayCategory; +import me.shedaniel.rei.api.common.category.CategoryIdentifier; +import me.shedaniel.rei.api.common.util.EntryStacks; +import me.shedaniel.rei.plugin.common.BuiltinPlugin; +import me.shedaniel.rei.plugin.common.displays.DefaultStrippingDisplay; +import me.shedaniel.rei.plugin.common.displays.DefaultWaxScrapingDisplay; + +public class DefaultWaxScrapingCategory implements DisplayCategory { + @Override + public CategoryIdentifier getCategoryIdentifier() { + return BuiltinPlugin.WAX_SCRAPING; + } + + @Override + public Renderer getIcon() { + return EntryStacks.of(Items.GOLDEN_AXE); + } + + @Override + public Component getTitle() { + return new TranslatableComponent("category.rei.wax_scraping"); + } + + @Override + public List setupDisplay(DefaultWaxScrapingDisplay display, Rectangle bounds) { + Point startPoint = new Point(bounds.getCenterX() - 41, bounds.getCenterY() - 13); + List widgets = Lists.newArrayList(); + widgets.add(Widgets.createRecipeBase(bounds)); + widgets.add(Widgets.createArrow(new Point(startPoint.x + 27, startPoint.y + 4))); + widgets.add(Widgets.createResultSlotBackground(new Point(startPoint.x + 61, startPoint.y + 5))); + widgets.add(Widgets.createSlot(new Point(startPoint.x + 4, startPoint.y + 5)).entries(display.getIn()).markInput()); + widgets.add(Widgets.createSlot(new Point(startPoint.x + 61, startPoint.y + 5)).entries(display.getOut()).disableBackground().markInput()); + return widgets; + } + + @Override + public int getDisplayHeight() { + return 36; + } + +} diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultWaxingCategory.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultWaxingCategory.java new file mode 100644 index 000000000..10ad77b0b --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultWaxingCategory.java @@ -0,0 +1,78 @@ +/* + * This file is licensed under the MIT License, part of Roughly Enough Items. + * Copyright (c) 2018, 2019, 2020, 2021 shedaniel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +package me.shedaniel.rei.plugin.client.categories; + +import java.util.List; + +import com.google.common.collect.Lists; + +import net.minecraft.network.chat.Component; +import net.minecraft.network.chat.TranslatableComponent; +import net.minecraft.world.item.Items; + +import me.shedaniel.math.Point; +import me.shedaniel.math.Rectangle; +import me.shedaniel.rei.api.client.gui.Renderer; +import me.shedaniel.rei.api.client.gui.widgets.Widget; +import me.shedaniel.rei.api.client.gui.widgets.Widgets; +import me.shedaniel.rei.api.client.registry.display.DisplayCategory; +import me.shedaniel.rei.api.common.category.CategoryIdentifier; +import me.shedaniel.rei.api.common.util.EntryStacks; +import me.shedaniel.rei.plugin.common.BuiltinPlugin; +import me.shedaniel.rei.plugin.common.displays.DefaultWaxingDisplay; + +public class DefaultWaxingCategory implements DisplayCategory { + @Override + public CategoryIdentifier getCategoryIdentifier() { + return BuiltinPlugin.WAXING; + } + + @Override + public Renderer getIcon() { + return EntryStacks.of(Items.HONEYCOMB); + } + + @Override + public Component getTitle() { + return new TranslatableComponent("category.rei.waxing"); + } + + @Override + public List setupDisplay(DefaultWaxingDisplay display, Rectangle bounds) { + Point startPoint = new Point(bounds.getCenterX() - 41, bounds.getCenterY() - 13); + List widgets = Lists.newArrayList(); + widgets.add(Widgets.createRecipeBase(bounds)); + widgets.add(Widgets.createArrow(new Point(startPoint.x + 27, startPoint.y + 4))); + widgets.add(Widgets.createResultSlotBackground(new Point(startPoint.x + 61, startPoint.y + 5))); + widgets.add(Widgets.createSlot(new Point(startPoint.x + 4, startPoint.y + 5)).entries(display.getIn()).markInput()); + widgets.add(Widgets.createSlot(new Point(startPoint.x + 61, startPoint.y + 5)).entries(display.getOut()).disableBackground().markInput()); + return widgets; + } + + @Override + public int getDisplayHeight() { + return 36; + } + +} diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/BuiltinPlugin.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/BuiltinPlugin.java index b0dfa5be7..d74a6f3f3 100644 --- a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/BuiltinPlugin.java +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/BuiltinPlugin.java @@ -51,5 +51,9 @@ public interface BuiltinPlugin { CategoryIdentifier BEACON_PAYMENT = CategoryIdentifier.of("minecraft", "plugins/beacon_payment"); CategoryIdentifier TILLING = CategoryIdentifier.of("minecraft", "plugins/tilling"); CategoryIdentifier PATHING = CategoryIdentifier.of("minecraft", "plugins/pathing"); + CategoryIdentifier WAXING = CategoryIdentifier.of("minecraft", "plugins/waxing"); + CategoryIdentifier WAX_SCRAPING = CategoryIdentifier.of("minecraft", "plugins/wax_scraping"); + CategoryIdentifier OXIDIZING = CategoryIdentifier.of("minecraft", "plugins/oxidizing"); + CategoryIdentifier OXIDATION_SCRAPING = CategoryIdentifier.of("minecraft", "plugins/oxidation_scraping"); CategoryIdentifier INFO = CategoryIdentifier.of("roughlyenoughitems", "plugins/information"); } diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/DefaultPlugin.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/DefaultPlugin.java index 807fec537..59184f312 100644 --- a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/DefaultPlugin.java +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/DefaultPlugin.java @@ -122,6 +122,10 @@ public class DefaultPlugin implements BuiltinPlugin, REIServerPlugin { registry.register(BEACON_PAYMENT, DefaultBeaconDisplay.serializer(DefaultBeaconPaymentDisplay::new)); registry.register(TILLING, DefaultTillingDisplay.serializer()); registry.register(PATHING, DefaultPathingDisplay.serializer()); + registry.register(WAXING, DefaultWaxingDisplay.serializer()); + registry.register(WAX_SCRAPING, DefaultWaxScrapingDisplay.serializer()); + registry.register(OXIDIZING, DefaultOxidizingDisplay.serializer()); + registry.register(OXIDATION_SCRAPING, DefaultOxidationScrapingDisplay.serializer()); registry.register(INFO, DefaultInformationDisplay.serializer()); } diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidationScrapingDisplay.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidationScrapingDisplay.java new file mode 100644 index 000000000..d8118ad20 --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidationScrapingDisplay.java @@ -0,0 +1,60 @@ +/* + * This file is licensed under the MIT License, part of Roughly Enough Items. + * Copyright (c) 2018, 2019, 2020, 2021 shedaniel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +package me.shedaniel.rei.plugin.common.displays; + +import java.util.Collections; +import java.util.List; + +import me.shedaniel.rei.api.common.category.CategoryIdentifier; +import me.shedaniel.rei.api.common.display.basic.BasicDisplay; +import me.shedaniel.rei.api.common.entry.EntryIngredient; +import me.shedaniel.rei.api.common.entry.EntryStack; +import me.shedaniel.rei.plugin.common.BuiltinPlugin; + +public class DefaultOxidationScrapingDisplay extends BasicDisplay { + public DefaultOxidationScrapingDisplay(EntryStack in, EntryStack out) { + this(Collections.singletonList(EntryIngredient.of(in)), Collections.singletonList(EntryIngredient.of(out))); + } + + public DefaultOxidationScrapingDisplay(List inputs, List outputs) { + super(inputs, outputs); + } + + public final EntryIngredient getIn() { + return getInputEntries().get(0); + } + + public final EntryIngredient getOut() { + return getOutputEntries().get(0); + } + + @Override + public CategoryIdentifier getCategoryIdentifier() { + return BuiltinPlugin.OXIDATION_SCRAPING; + } + + public static Serializer serializer() { + return Serializer.ofSimpleRecipeLess(DefaultOxidationScrapingDisplay::new); + } +} diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidizingDisplay.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidizingDisplay.java new file mode 100644 index 000000000..ba63c0bac --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidizingDisplay.java @@ -0,0 +1,60 @@ +/* + * This file is licensed under the MIT License, part of Roughly Enough Items. + * Copyright (c) 2018, 2019, 2020, 2021 shedaniel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +package me.shedaniel.rei.plugin.common.displays; + +import java.util.Collections; +import java.util.List; + +import me.shedaniel.rei.api.common.category.CategoryIdentifier; +import me.shedaniel.rei.api.common.display.basic.BasicDisplay; +import me.shedaniel.rei.api.common.entry.EntryIngredient; +import me.shedaniel.rei.api.common.entry.EntryStack; +import me.shedaniel.rei.plugin.common.BuiltinPlugin; + +public class DefaultOxidizingDisplay extends BasicDisplay { + public DefaultOxidizingDisplay(EntryStack in, EntryStack out) { + this(Collections.singletonList(EntryIngredient.of(in)), Collections.singletonList(EntryIngredient.of(out))); + } + + public DefaultOxidizingDisplay(List inputs, List outputs) { + super(inputs, outputs); + } + + public final EntryIngredient getIn() { + return getInputEntries().get(0); + } + + public final EntryIngredient getOut() { + return getOutputEntries().get(0); + } + + @Override + public CategoryIdentifier getCategoryIdentifier() { + return BuiltinPlugin.OXIDIZING; + } + + public static Serializer serializer() { + return Serializer.ofSimpleRecipeLess(DefaultOxidizingDisplay::new); + } +} diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxScrapingDisplay.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxScrapingDisplay.java new file mode 100644 index 000000000..9ee2f3b93 --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxScrapingDisplay.java @@ -0,0 +1,60 @@ +/* + * This file is licensed under the MIT License, part of Roughly Enough Items. + * Copyright (c) 2018, 2019, 2020, 2021 shedaniel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +package me.shedaniel.rei.plugin.common.displays; + +import java.util.Collections; +import java.util.List; + +import me.shedaniel.rei.api.common.category.CategoryIdentifier; +import me.shedaniel.rei.api.common.display.basic.BasicDisplay; +import me.shedaniel.rei.api.common.entry.EntryIngredient; +import me.shedaniel.rei.api.common.entry.EntryStack; +import me.shedaniel.rei.plugin.common.BuiltinPlugin; + +public class DefaultWaxScrapingDisplay extends BasicDisplay { + public DefaultWaxScrapingDisplay(EntryStack in, EntryStack out) { + this(Collections.singletonList(EntryIngredient.of(in)), Collections.singletonList(EntryIngredient.of(out))); + } + + public DefaultWaxScrapingDisplay(List inputs, List outputs) { + super(inputs, outputs); + } + + public final EntryIngredient getIn() { + return getInputEntries().get(0); + } + + public final EntryIngredient getOut() { + return getOutputEntries().get(0); + } + + @Override + public CategoryIdentifier getCategoryIdentifier() { + return BuiltinPlugin.WAX_SCRAPING; + } + + public static Serializer serializer() { + return Serializer.ofSimpleRecipeLess(DefaultWaxScrapingDisplay::new); + } +} diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxingDisplay.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxingDisplay.java new file mode 100644 index 000000000..d00fb14f9 --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxingDisplay.java @@ -0,0 +1,60 @@ +/* + * This file is licensed under the MIT License, part of Roughly Enough Items. + * Copyright (c) 2018, 2019, 2020, 2021 shedaniel + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +package me.shedaniel.rei.plugin.common.displays; + +import java.util.Collections; +import java.util.List; + +import me.shedaniel.rei.api.common.category.CategoryIdentifier; +import me.shedaniel.rei.api.common.display.basic.BasicDisplay; +import me.shedaniel.rei.api.common.entry.EntryIngredient; +import me.shedaniel.rei.api.common.entry.EntryStack; +import me.shedaniel.rei.plugin.common.BuiltinPlugin; + +public class DefaultWaxingDisplay extends BasicDisplay { + public DefaultWaxingDisplay(EntryStack in, EntryStack out) { + this(Collections.singletonList(EntryIngredient.of(in)), Collections.singletonList(EntryIngredient.of(out))); + } + + public DefaultWaxingDisplay(List inputs, List outputs) { + super(inputs, outputs); + } + + public final EntryIngredient getIn() { + return getInputEntries().get(0); + } + + public final EntryIngredient getOut() { + return getOutputEntries().get(0); + } + + @Override + public CategoryIdentifier getCategoryIdentifier() { + return BuiltinPlugin.WAXING; + } + + public static Serializer serializer() { + return Serializer.ofSimpleRecipeLess(DefaultWaxingDisplay::new); + } +} -- cgit From ce27d89d05738ea4cba2ab8ed6c52f093e988275 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 18 Nov 2021 19:07:51 +0800 Subject: Add @Experimental on #659 --- .../categories/DefaultOxidationScrapingCategory.java | 15 +++++++-------- .../client/categories/DefaultOxidizingCategory.java | 15 +++++++-------- .../client/categories/DefaultWaxScrapingCategory.java | 16 +++++++--------- .../plugin/client/categories/DefaultWaxingCategory.java | 15 +++++++-------- .../me/shedaniel/rei/plugin/common/BuiltinPlugin.java | 5 +++++ .../common/displays/DefaultOxidationScrapingDisplay.java | 10 ++++++---- .../plugin/common/displays/DefaultOxidizingDisplay.java | 10 ++++++---- .../common/displays/DefaultWaxScrapingDisplay.java | 10 ++++++---- .../rei/plugin/common/displays/DefaultWaxingDisplay.java | 10 ++++++---- 9 files changed, 57 insertions(+), 49 deletions(-) (limited to 'default-plugin/src/main/java/me/shedaniel/rei') diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidationScrapingCategory.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidationScrapingCategory.java index 7cf774f85..3be29e857 100644 --- a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidationScrapingCategory.java +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultOxidationScrapingCategory.java @@ -23,14 +23,7 @@ package me.shedaniel.rei.plugin.client.categories; -import java.util.List; - import com.google.common.collect.Lists; - -import net.minecraft.network.chat.Component; -import net.minecraft.network.chat.TranslatableComponent; -import net.minecraft.world.item.Items; - import me.shedaniel.math.Point; import me.shedaniel.math.Rectangle; import me.shedaniel.rei.api.client.gui.Renderer; @@ -41,7 +34,14 @@ import me.shedaniel.rei.api.common.category.CategoryIdentifier; import me.shedaniel.rei.api.common.util.EntryStacks; import me.shedaniel.rei.plugin.common.BuiltinPlugin; import me.shedaniel.rei.plugin.common.displays.DefaultOxidationScrapingDisplay; +import net.minecraft.network.chat.Component; +import net.minecraft.network.chat.TranslatableComponent; +import net.minecraft.world.item.Items; +import org.jetbrains.annotations.ApiStatus; +import java.util.List; + +@ApiStatus.Experimental public class DefaultOxidationScrapingCategory implements DisplayCategory { @Override public CategoryIdentifier getCategoryIdentifier() { @@ -74,5 +74,4 @@ public class DefaultOxidationScrapingCategory implements DisplayCategory { @Override public CategoryIdentifier getCategoryIdentifier() { @@ -74,5 +74,4 @@ public class DefaultOxidizingCategory implements DisplayCategory { @Override public CategoryIdentifier getCategoryIdentifier() { @@ -75,5 +74,4 @@ public class DefaultWaxScrapingCategory implements DisplayCategory { @Override public CategoryIdentifier getCategoryIdentifier() { @@ -74,5 +74,4 @@ public class DefaultWaxingCategory implements DisplayCategory> CRAFTING = CategoryIdentifier.of("minecraft", "plugins/crafting"); @@ -51,9 +52,13 @@ public interface BuiltinPlugin { CategoryIdentifier BEACON_PAYMENT = CategoryIdentifier.of("minecraft", "plugins/beacon_payment"); CategoryIdentifier TILLING = CategoryIdentifier.of("minecraft", "plugins/tilling"); CategoryIdentifier PATHING = CategoryIdentifier.of("minecraft", "plugins/pathing"); + @ApiStatus.Experimental CategoryIdentifier WAXING = CategoryIdentifier.of("minecraft", "plugins/waxing"); + @ApiStatus.Experimental CategoryIdentifier WAX_SCRAPING = CategoryIdentifier.of("minecraft", "plugins/wax_scraping"); + @ApiStatus.Experimental CategoryIdentifier OXIDIZING = CategoryIdentifier.of("minecraft", "plugins/oxidizing"); + @ApiStatus.Experimental CategoryIdentifier OXIDATION_SCRAPING = CategoryIdentifier.of("minecraft", "plugins/oxidation_scraping"); CategoryIdentifier INFO = CategoryIdentifier.of("roughlyenoughitems", "plugins/information"); } diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidationScrapingDisplay.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidationScrapingDisplay.java index d8118ad20..e74103ea6 100644 --- a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidationScrapingDisplay.java +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidationScrapingDisplay.java @@ -23,20 +23,22 @@ package me.shedaniel.rei.plugin.common.displays; -import java.util.Collections; -import java.util.List; - import me.shedaniel.rei.api.common.category.CategoryIdentifier; import me.shedaniel.rei.api.common.display.basic.BasicDisplay; import me.shedaniel.rei.api.common.entry.EntryIngredient; import me.shedaniel.rei.api.common.entry.EntryStack; import me.shedaniel.rei.plugin.common.BuiltinPlugin; +import org.jetbrains.annotations.ApiStatus; + +import java.util.Collections; +import java.util.List; +@ApiStatus.Experimental public class DefaultOxidationScrapingDisplay extends BasicDisplay { public DefaultOxidationScrapingDisplay(EntryStack in, EntryStack out) { this(Collections.singletonList(EntryIngredient.of(in)), Collections.singletonList(EntryIngredient.of(out))); } - + public DefaultOxidationScrapingDisplay(List inputs, List outputs) { super(inputs, outputs); } diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidizingDisplay.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidizingDisplay.java index ba63c0bac..118270074 100644 --- a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidizingDisplay.java +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidizingDisplay.java @@ -23,20 +23,22 @@ package me.shedaniel.rei.plugin.common.displays; -import java.util.Collections; -import java.util.List; - import me.shedaniel.rei.api.common.category.CategoryIdentifier; import me.shedaniel.rei.api.common.display.basic.BasicDisplay; import me.shedaniel.rei.api.common.entry.EntryIngredient; import me.shedaniel.rei.api.common.entry.EntryStack; import me.shedaniel.rei.plugin.common.BuiltinPlugin; +import org.jetbrains.annotations.ApiStatus; + +import java.util.Collections; +import java.util.List; +@ApiStatus.Experimental public class DefaultOxidizingDisplay extends BasicDisplay { public DefaultOxidizingDisplay(EntryStack in, EntryStack out) { this(Collections.singletonList(EntryIngredient.of(in)), Collections.singletonList(EntryIngredient.of(out))); } - + public DefaultOxidizingDisplay(List inputs, List outputs) { super(inputs, outputs); } diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxScrapingDisplay.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxScrapingDisplay.java index 9ee2f3b93..85e3edf43 100644 --- a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxScrapingDisplay.java +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxScrapingDisplay.java @@ -23,20 +23,22 @@ package me.shedaniel.rei.plugin.common.displays; -import java.util.Collections; -import java.util.List; - import me.shedaniel.rei.api.common.category.CategoryIdentifier; import me.shedaniel.rei.api.common.display.basic.BasicDisplay; import me.shedaniel.rei.api.common.entry.EntryIngredient; import me.shedaniel.rei.api.common.entry.EntryStack; import me.shedaniel.rei.plugin.common.BuiltinPlugin; +import org.jetbrains.annotations.ApiStatus; + +import java.util.Collections; +import java.util.List; +@ApiStatus.Experimental public class DefaultWaxScrapingDisplay extends BasicDisplay { public DefaultWaxScrapingDisplay(EntryStack in, EntryStack out) { this(Collections.singletonList(EntryIngredient.of(in)), Collections.singletonList(EntryIngredient.of(out))); } - + public DefaultWaxScrapingDisplay(List inputs, List outputs) { super(inputs, outputs); } diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxingDisplay.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxingDisplay.java index d00fb14f9..131ee020e 100644 --- a/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxingDisplay.java +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxingDisplay.java @@ -23,20 +23,22 @@ package me.shedaniel.rei.plugin.common.displays; -import java.util.Collections; -import java.util.List; - import me.shedaniel.rei.api.common.category.CategoryIdentifier; import me.shedaniel.rei.api.common.display.basic.BasicDisplay; import me.shedaniel.rei.api.common.entry.EntryIngredient; import me.shedaniel.rei.api.common.entry.EntryStack; import me.shedaniel.rei.plugin.common.BuiltinPlugin; +import org.jetbrains.annotations.ApiStatus; + +import java.util.Collections; +import java.util.List; +@ApiStatus.Experimental public class DefaultWaxingDisplay extends BasicDisplay { public DefaultWaxingDisplay(EntryStack in, EntryStack out) { this(Collections.singletonList(EntryIngredient.of(in)), Collections.singletonList(EntryIngredient.of(out))); } - + public DefaultWaxingDisplay(List inputs, List outputs) { super(inputs, outputs); } -- cgit