Package forestry.api.core
Interface IFilterSlotDelegate
- All Known Subinterfaces:
IInventoryAdapter,ITradeStation
public interface IFilterSlotDelegate
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanSlotAccept(int slotIndex, net.minecraft.world.item.ItemStack stack) Non-automation version of IInventory's isItemValidForSlot.booleanisLocked(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.
-