Package net.ixdarklord.coolcatcore.api.container


package net.ixdarklord.coolcatcore.api.container
  • Class
    Description
    An item whose stacks carry an inventory (a backpack, a pouch), kept in the stack's minecraft:container component.
    The shape of an inventory: how many slots, what each accepts and holds, who reaches it and from which faces.
     
    A menu slot of a SlotContainer that follows its layout: filters and SlotRole.OUTPUT decide what a player may put in, and slot limits how much.
    Inventories kept in an item stack's minecraft:container component (as shulker boxes keep theirs).
    Moving items in and out of any Container the way automation does: through a face (null for none), following WorldlyContainer face rules, Container.canPlaceItem(int, ItemStack)/Container.canTakeItem(Container, int, ItemStack) and slot limits.
    What a WorldlyContainer shows through one face: only the slots that face reaches (numbered from 0), and only what the face allows in and out.
    An inventory following a ContainerLayout.
     
    Who may put items into a slot and take them out: players through a menu, and automation (hoppers, pipes, ItemTransfer).