diff options
Diffstat (limited to 'default-plugin/src/main/java/me/shedaniel/rei/plugin/common')
6 files changed, 261 insertions, 0 deletions
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..1a26117c0 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 @@ -33,6 +33,7 @@ import me.shedaniel.rei.plugin.common.displays.cooking.DefaultBlastingDisplay; import me.shedaniel.rei.plugin.common.displays.cooking.DefaultSmeltingDisplay; import me.shedaniel.rei.plugin.common.displays.cooking.DefaultSmokingDisplay; import me.shedaniel.rei.plugin.common.displays.crafting.DefaultCraftingDisplay; +import org.jetbrains.annotations.ApiStatus; public interface BuiltinPlugin { CategoryIdentifier<DefaultCraftingDisplay<?>> CRAFTING = CategoryIdentifier.of("minecraft", "plugins/crafting"); @@ -51,5 +52,13 @@ public interface BuiltinPlugin { CategoryIdentifier<DefaultBeaconPaymentDisplay> BEACON_PAYMENT = CategoryIdentifier.of("minecraft", "plugins/beacon_payment"); CategoryIdentifier<DefaultTillingDisplay> TILLING = CategoryIdentifier.of("minecraft", "plugins/tilling"); CategoryIdentifier<DefaultPathingDisplay> PATHING = CategoryIdentifier.of("minecraft", "plugins/pathing"); + @ApiStatus.Experimental + CategoryIdentifier<DefaultWaxingDisplay> WAXING = CategoryIdentifier.of("minecraft", "plugins/waxing"); + @ApiStatus.Experimental + CategoryIdentifier<DefaultWaxScrapingDisplay> WAX_SCRAPING = CategoryIdentifier.of("minecraft", "plugins/wax_scraping"); + @ApiStatus.Experimental + CategoryIdentifier<DefaultOxidizingDisplay> OXIDIZING = CategoryIdentifier.of("minecraft", "plugins/oxidizing"); + @ApiStatus.Experimental + CategoryIdentifier<DefaultOxidationScrapingDisplay> OXIDATION_SCRAPING = CategoryIdentifier.of("minecraft", "plugins/oxidation_scraping"); CategoryIdentifier<DefaultInformationDisplay> 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 b9eb3b585..39586f095 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 @@ -123,6 +123,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..e74103ea6 --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidationScrapingDisplay.java @@ -0,0 +1,62 @@ +/* + * 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 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<EntryIngredient> inputs, List<EntryIngredient> 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<DefaultOxidationScrapingDisplay> 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..118270074 --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultOxidizingDisplay.java @@ -0,0 +1,62 @@ +/* + * 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 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<EntryIngredient> inputs, List<EntryIngredient> 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<DefaultOxidizingDisplay> 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..85e3edf43 --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxScrapingDisplay.java @@ -0,0 +1,62 @@ +/* + * 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 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<EntryIngredient> inputs, List<EntryIngredient> 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<DefaultWaxScrapingDisplay> 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..131ee020e --- /dev/null +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/common/displays/DefaultWaxingDisplay.java @@ -0,0 +1,62 @@ +/* + * 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 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<EntryIngredient> inputs, List<EntryIngredient> 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<DefaultWaxingDisplay> serializer() { + return Serializer.ofSimpleRecipeLess(DefaultWaxingDisplay::new); + } +} |
