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, putStackprivate EntityPlayer player
public Potion(EntityPlayer playerIn, IInventory inventoryIn, int index, int xPosition, int yPosition)
public boolean isItemValid(ItemStack stack)
SlotisItemValid in class Slotpublic int getSlotStackLimit()
SlotgetSlotStackLimit in class Slotpublic void onPickupFromSlot(EntityPlayer playerIn, ItemStack stack)
onPickupFromSlot in class Slotpublic static boolean canHoldPotion(ItemStack stack)