static class ContainerBrewingStand.Potion extends Slot
Modifier and Type | Field and Description |
---|---|
private EntityPlayer |
player |
inventory, slotNumber, xDisplayPosition, yDisplayPosition
Constructor and Description |
---|
Potion(EntityPlayer playerIn,
IInventory inventoryIn,
int index,
int xPosition,
int yPosition) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canHoldPotion(ItemStack stack) |
int |
getSlotStackLimit()
Returns the maximum stack size for a given slot (usually the same as getInventoryStackLimit(), but 1 in the case
of armor slots)
|
boolean |
isItemValid(ItemStack stack)
Check if the stack is a valid item for this slot.
|
void |
onPickupFromSlot(EntityPlayer playerIn,
ItemStack stack) |
canBeHovered, canTakeStack, decrStackSize, getHasStack, getItemStackLimit, getSlotTexture, getStack, isHere, onCrafting, onCrafting, onSlotChange, onSlotChanged, putStack
private EntityPlayer player
public Potion(EntityPlayer playerIn, IInventory inventoryIn, int index, int xPosition, int yPosition)
public boolean isItemValid(ItemStack stack)
Slot
isItemValid
in class Slot
public int getSlotStackLimit()
Slot
getSlotStackLimit
in class Slot
public void onPickupFromSlot(EntityPlayer playerIn, ItemStack stack)
onPickupFromSlot
in class Slot
public static boolean canHoldPotion(ItemStack stack)