aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseDisplay.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseDisplay.java')
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseDisplay.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseDisplay.java b/src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseDisplay.java
new file mode 100644
index 000000000..41f9ad022
--- /dev/null
+++ b/src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseDisplay.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) 2018, 2019, 2020 shedaniel
+ * Licensed under the MIT License (the "License").
+ */
+
+package me.shedaniel.rei.plugin.beacon;
+
+import me.shedaniel.rei.api.EntryStack;
+import me.shedaniel.rei.api.ItemStackHook;
+import me.shedaniel.rei.api.RecipeDisplay;
+import me.shedaniel.rei.plugin.DefaultPlugin;
+import me.shedaniel.rei.utils.CollectionUtils;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.Identifier;
+
+import java.util.Collections;
+import java.util.List;
+
+public class DefaultBeaconBaseDisplay implements RecipeDisplay {
+
+ private List<EntryStack> entries;
+
+ public DefaultBeaconBaseDisplay(List<ItemStack> entries) {
+ this.entries = CollectionUtils.map(entries, EntryStack::create);
+ }
+
+ @Override
+ public List<List<EntryStack>> getInputEntries() {
+ return Collections.singletonList(entries);
+ }
+
+ public List<EntryStack> getEntries() {
+ return entries;
+ }
+
+ @Override
+ public List<EntryStack> getOutputEntries() {
+ return Collections.emptyList();
+ }
+
+ @Override
+ public Identifier getRecipeCategory() {
+ return DefaultPlugin.BEACON;
+ }
+}