public class CraftingResultSlot extends Slot
inventory, slotNumber, xPos, yPos
コンストラクタと説明 |
---|
CraftingResultSlot(PlayerEntity player,
CraftingInventory craftingInventory,
IInventory inventoryIn,
int slotIndex,
int xPosition,
int yPosition) |
修飾子とタイプ | メソッドと説明 |
---|---|
ItemStack |
decrStackSize(int amount)
Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.
|
boolean |
isItemValid(ItemStack stack)
Check if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.
|
protected void |
onCrafting(ItemStack stack)
the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.
|
protected void |
onCrafting(ItemStack stack,
int amount)
the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.
|
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
public CraftingResultSlot(PlayerEntity player, CraftingInventory craftingInventory, IInventory inventoryIn, int slotIndex, int xPosition, int yPosition)
public boolean isItemValid(ItemStack stack)
isItemValid
クラス内 Slot
public ItemStack decrStackSize(int amount)
decrStackSize
クラス内 Slot
protected void onCrafting(ItemStack stack, int amount)
onCrafting
クラス内 Slot
protected void onSwapCraft(int p_190900_1_)
onSwapCraft
クラス内 Slot
protected void onCrafting(ItemStack stack)
onCrafting
クラス内 Slot
public ItemStack onTake(PlayerEntity thePlayer, ItemStack stack)