/
BlankRecipeWrapper.java
58 lines (46 loc) · 1.26 KB
/
BlankRecipeWrapper.java
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
46
47
48
49
50
51
52
53
54
55
56
57
58
package mezz.jei.api.recipe;
import javax.annotation.Nullable;
import java.util.Collections;
import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraftforge.fluids.FluidStack;
/**
* An {@link IRecipeWrapper} that does nothing, inherit from this to avoid implementing methods you don't need.
*/
public abstract class BlankRecipeWrapper implements IRecipeWrapper {
@Override
@Deprecated
public List getInputs() {
return Collections.emptyList();
}
@Override
@Deprecated
public List getOutputs() {
return Collections.emptyList();
}
@Override
@Deprecated
public List<FluidStack> getFluidInputs() {
return Collections.emptyList();
}
@Override
@Deprecated
public List<FluidStack> getFluidOutputs() {
return Collections.emptyList();
}
@Override
public void drawInfo(Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {
}
@Override
public void drawAnimations(Minecraft minecraft, int recipeWidth, int recipeHeight) {
}
@Nullable
@Override
public List<String> getTooltipStrings(int mouseX, int mouseY) {
return null;
}
@Override
public boolean handleClick(Minecraft minecraft, int mouseX, int mouseY, int mouseButton) {
return false;
}
}