-
Notifications
You must be signed in to change notification settings - Fork 211
Expand file tree
/
Copy pathDummyRecipe.java
More file actions
34 lines (27 loc) · 895 Bytes
/
DummyRecipe.java
File metadata and controls
34 lines (27 loc) · 895 Bytes
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
package gregtech.api.recipes.crafting;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.world.World;
import net.minecraftforge.registries.IForgeRegistryEntry;
import org.jetbrains.annotations.NotNull;
public class DummyRecipe extends IForgeRegistryEntry.Impl<IRecipe> implements IRecipe {
@Override
public boolean matches(@NotNull final InventoryCrafting inv, @NotNull final World worldIn) {
return false;
}
@NotNull
@Override
public ItemStack getCraftingResult(@NotNull final InventoryCrafting inv) {
return ItemStack.EMPTY;
}
@Override
public boolean canFit(final int width, final int height) {
return false;
}
@NotNull
@Override
public ItemStack getRecipeOutput() {
return ItemStack.EMPTY;
}
}