Package btw.inventory.slot
Class SlotHopperFilter
java.lang.Object
net.minecraft.src.Slot
btw.inventory.slot.SlotHopperFilter
-
Field Summary
Fields inherited from class net.minecraft.src.Slot
inventory, slotNumber, xDisplayPosition, yDisplayPosition -
Constructor Summary
ConstructorsConstructorDescriptionSlotHopperFilter(IInventory par1IInventory, int par2, int par3, int par4) The player that has this container open. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum stack size for a given slot (usually the same as getInventoryStackLimit(), but 1 in the case of armor slots)booleanisItemValid(ItemStack par1ItemStack) Check if the stack is a valid item for this slot.Methods inherited from class net.minecraft.src.Slot
canTakeStack, decrStackSize, func_111238_b, getBackgroundIconIndex, getHasStack, getSlotIndex, getStack, isHere, onCrafting, onCrafting, onPickupFromSlot, onSlotChange, onSlotChanged, putStack
-
Constructor Details
-
SlotHopperFilter
The player that has this container open.
-
-
Method Details
-
isItemValid
Check if the stack is a valid item for this slot. Always true beside for the armor slots.- Overrides:
isItemValidin classSlot
-
getSlotStackLimit
public int getSlotStackLimit()Returns the maximum stack size for a given slot (usually the same as getInventoryStackLimit(), but 1 in the case of armor slots)- Overrides:
getSlotStackLimitin classSlot
-