public class CraftingResultSlot extends Slot
Modifier and Type | Field and Description |
---|---|
private int |
amount |
private CraftingInventory |
input |
private PlayerEntity |
player |
Constructor and Description |
---|
CraftingResultSlot(PlayerEntity player,
CraftingInventory input,
Inventory inventory,
int index,
int x,
int y) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInsert(ItemStack stack) |
protected void |
onCrafted(ItemStack stack) |
protected void |
onCrafted(ItemStack stack,
int amount) |
protected void |
onTake(int amount) |
ItemStack |
onTakeItem(PlayerEntity player,
ItemStack stack) |
ItemStack |
takeStack(int amount) |
canTakeItems, doDrawHoveringEffect, getBackgroundSprite, getMaxItemCount, getMaxItemCount, getStack, hasStack, markDirty, onStackChanged, setStack
private final CraftingInventory input
private final PlayerEntity player
private int amount
public CraftingResultSlot(PlayerEntity player, CraftingInventory input, Inventory inventory, int index, int x, int y)
public ItemStack onTakeItem(PlayerEntity player, ItemStack stack)
onTakeItem
in class Slot