- All Superinterfaces:
InventoryHolder
- All Known Subinterfaces:
BlastFurnace,BrewingStand,Chest,Dispenser,Dropper,EnderChest,Furnace,Hopper,ShulkerBox,Smoker
An interface describes a container.
-
Method Summary
Modifier and TypeMethodDescriptiondefault int[]Returns list of slot indexes where the item should be pulled fromdefault int[]getHopperPushSlots(Direction direction, ItemStack item) Returns an array of slot indexes where the item should be pushed toMethods inherited from interface org.cloudburstmc.api.inventory.InventoryHolder
getInventory
-
Method Details
-
getHopperPushSlots
Returns an array of slot indexes where the item should be pushed to- Parameters:
direction- direction from hopper to this block entityitem- target item- Returns:
- array of indexes or null if there's nothing to push
-
getHopperPullSlots
default int[] getHopperPullSlots()Returns list of slot indexes where the item should be pulled from- Returns:
- array of indexes or null if there's nothing to pull
-