Class SlotHopperFilter

java.lang.Object
net.minecraft.src.Slot
btw.inventory.slot.SlotHopperFilter

public class SlotHopperFilter extends Slot
  • Constructor Details

    • SlotHopperFilter

      public SlotHopperFilter(IInventory par1IInventory, int par2, int par3, int par4)
      The player that has this container open.
  • Method Details

    • isItemValid

      public boolean isItemValid(ItemStack par1ItemStack)
      Check if the stack is a valid item for this slot. Always true beside for the armor slots.
      Overrides:
      isItemValid in class Slot
    • 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:
      getSlotStackLimit in class Slot