public class MixtureSlotCrafting
extends net.minecraft.inventory.Slot
Constructor and Description |
---|
MixtureSlotCrafting(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.inventory.InventoryCrafting craftingInventory,
net.minecraft.inventory.IInventory p_i45790_3_,
int slotIndex,
int xPosition,
int yPosition) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.item.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(net.minecraft.item.ItemStack stack)
Check if the stack is a valid item for this slot.
|
void |
onPickupFromSlot(net.minecraft.entity.player.EntityPlayer playerIn,
net.minecraft.item.ItemStack stack) |
canBeHovered, canTakeStack, getBackgroundLocation, getBackgroundSprite, getHasStack, getItemStackLimit, getSlotIndex, getSlotStackLimit, getSlotTexture, getStack, isSlotInInventory, onSlotChange, onSlotChanged, putStack, setBackgroundLocation, setBackgroundName
public MixtureSlotCrafting(net.minecraft.entity.player.EntityPlayer player, net.minecraft.inventory.InventoryCrafting craftingInventory, net.minecraft.inventory.IInventory p_i45790_3_, int slotIndex, int xPosition, int yPosition)
public boolean isItemValid(net.minecraft.item.ItemStack stack)
isItemValid
in class net.minecraft.inventory.Slot
public net.minecraft.item.ItemStack decrStackSize(int amount)
decrStackSize
in class net.minecraft.inventory.Slot
public void onPickupFromSlot(net.minecraft.entity.player.EntityPlayer playerIn, net.minecraft.item.ItemStack stack)
onPickupFromSlot
in class net.minecraft.inventory.Slot