Interface IFilterSlotDelegate

All Known Subinterfaces:
IInventoryAdapter, ITradeStation

public interface IFilterSlotDelegate
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canSlotAccept(int slotIndex, net.minecraft.world.item.ItemStack stack)
    Non-automation version of IInventory's isItemValidForSlot.
    boolean
    isLocked(int slotIndex)
    Used to lock slots under special conditions.
  • Method Details

    • canSlotAccept

      boolean canSlotAccept(int slotIndex, net.minecraft.world.item.ItemStack stack)
      Non-automation version of IInventory's isItemValidForSlot. Used to determine if a player can place a stack in a slot.

      Combine this with Forestry's access permissions to implement isItemValidForSlot.

    • isLocked

      boolean isLocked(int slotIndex)
      Used to lock slots under special conditions. Locked slots will have an X over them.