blob: 09e54b0cd84aee7b5fda60ccac2f2bb4ba11c70c (
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
|
/*
* Roughly Enough Items by Danielshe.
* Licensed under the MIT License.
*/
package me.shedaniel.rei.plugin.fuel;
import me.shedaniel.rei.api.EntryStack;
import me.shedaniel.rei.api.RecipeDisplay;
import me.shedaniel.rei.plugin.DefaultPlugin;
import net.minecraft.util.Identifier;
import java.util.Collections;
import java.util.List;
public class DefaultFuelDisplay implements RecipeDisplay {
private EntryStack fuel;
private int fuelTime;
public DefaultFuelDisplay(EntryStack fuel, int fuelTime) {
this.fuel = fuel;
this.fuelTime = fuelTime;
}
@Override
public List<List<EntryStack>> getInputEntries() {
return Collections.singletonList(Collections.singletonList(fuel));
}
@Override
public List<EntryStack> getOutputEntries() {
return Collections.emptyList();
}
@Override
public Identifier getRecipeCategory() {
return DefaultPlugin.FUEL;
}
public int getFuelTime() {
return fuelTime;
}
}
|