aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/recipes/RecipeSlot.java
blob: 61f8ef273d7f94230c58a0df1863636145610e28 (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
package io.github.moulberry.notenoughupdates.recipes;

import io.github.moulberry.notenoughupdates.miscgui.GuiItemRecipe;
import net.minecraft.item.ItemStack;

public class RecipeSlot {
	private final int x;
	private final int y;
	private final ItemStack itemStack;

	public RecipeSlot(int x, int y, ItemStack itemStack) {
		this.x = x;
		this.y = y;
		this.itemStack = itemStack;
	}

	public ItemStack getItemStack() {
		return itemStack;
	}

	public int getX(GuiItemRecipe recipe) {
		return recipe.guiLeft + x;
	}

	public int getY(GuiItemRecipe recipe) {
		return recipe.guiTop + y;
	}
}