DefaultStrippingDisplay.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Roughly Enough Items by Danielshe.
  3. * Licensed under the MIT License.
  4. */
  5. package me.shedaniel.rei.plugin.stripping;
  6. import me.shedaniel.rei.api.RecipeDisplay;
  7. import me.shedaniel.rei.plugin.DefaultPlugin;
  8. import net.minecraft.item.ItemStack;
  9. import net.minecraft.util.Identifier;
  10. import java.util.Collections;
  11. import java.util.List;
  12. public class DefaultStrippingDisplay implements RecipeDisplay {
  13. private ItemStack in, out;
  14. public DefaultStrippingDisplay(ItemStack in, ItemStack out) {
  15. this.in = in;
  16. this.out = out;
  17. }
  18. public final ItemStack getIn() {
  19. return in;
  20. }
  21. public final ItemStack getOut() {
  22. return out;
  23. }
  24. @Override
  25. public List<List<ItemStack>> getInput() {
  26. return Collections.singletonList(Collections.singletonList(in));
  27. }
  28. @Override
  29. public List<ItemStack> getOutput() {
  30. return Collections.singletonList(out);
  31. }
  32. @Override
  33. public Identifier getRecipeCategory() {
  34. return DefaultPlugin.STRIPPING;
  35. }
  36. @Override
  37. public List<List<ItemStack>> getRequiredItems() {
  38. return getInput();
  39. }
  40. }