aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/beacon/DefaultBeaconBaseDisplay.java
blob: 41f9ad022a62e39075b41b4b676111c55f860a04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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;
    }
}