blob: 382f3a72665327503c8265bbe19ee5f37c2e4d1d (
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
|
package me.shedaniel.plugin;
import me.shedaniel.api.IRecipe;
import net.minecraft.block.Blocks;
import net.minecraft.item.ItemStack;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
public class RandomRecipe implements IRecipe<ItemStack> {
private String id;
public RandomRecipe(String id) {
this.id = id;
}
@Override
public String getId() {
return id;
}
@Override
public List<ItemStack> getOutput() {
return new LinkedList<>(Arrays.asList(new ItemStack[]{new ItemStack(Blocks.BEETROOTS.getItem())}));
}
@Override
public List<List<ItemStack>> getInput() {
return new LinkedList<>(Arrays.asList(new LinkedList<>(Arrays.asList(new ItemStack[]{new ItemStack(Blocks.OAK_LOG.getItem())}))));
}
@Override
public List<List<ItemStack>> getRecipeRequiredInput() {
return new ArrayList<>();
}
}
|