public class CraftingResultSlot extends Slot
Modifier and Type | Field and Description |
---|---|
private int |
amountCrafted |
private CraftingInventory |
craftMatrix |
private PlayerEntity |
player |
inventory, slotNumber, xPos, yPos
Constructor and Description |
---|
CraftingResultSlot(PlayerEntity player,
CraftingInventory craftingInventory,
IInventory inventoryIn,
int slotIndex,
int xPosition,
int yPosition) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
decrStackSize(int amount) |
boolean |
isItemValid(ItemStack stack) |
protected void |
onCrafting(ItemStack stack) |
protected void |
onCrafting(ItemStack stack,
int amount) |
protected void |
onSwapCraft(int p_190900_1_) |
ItemStack |
onTake(PlayerEntity thePlayer,
ItemStack stack) |
canTakeStack, func_225517_c_, getHasStack, getItemStackLimit, getSlotIndex, getSlotStackLimit, getStack, isEnabled, isSameInventory, onSlotChange, onSlotChanged, putStack, setBackground
private final CraftingInventory craftMatrix
private final PlayerEntity player
private int amountCrafted
public CraftingResultSlot(PlayerEntity player, CraftingInventory craftingInventory, IInventory inventoryIn, int slotIndex, int xPosition, int yPosition)
public boolean isItemValid(ItemStack stack)
isItemValid
in class Slot
public ItemStack decrStackSize(int amount)
decrStackSize
in class Slot
protected void onCrafting(ItemStack stack, int amount)
onCrafting
in class Slot
protected void onSwapCraft(int p_190900_1_)
onSwapCraft
in class Slot
protected void onCrafting(ItemStack stack)
onCrafting
in class Slot
public ItemStack onTake(PlayerEntity thePlayer, ItemStack stack)