Interface ContainerBlockEntity

All Superinterfaces:
InventoryHolder
All Known Subinterfaces:
BlastFurnace, BrewingStand, Chest, Dispenser, Dropper, EnderChest, Furnace, Hopper, ShulkerBox, Smoker

public interface ContainerBlockEntity extends InventoryHolder
An interface describes a container.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int[]
    Returns list of slot indexes where the item should be pulled from
    default int[]
    Returns an array of slot indexes where the item should be pushed to

    Methods inherited from interface org.cloudburstmc.api.inventory.InventoryHolder

    getInventory
  • Method Details

    • getHopperPushSlots

      default int[] getHopperPushSlots(Direction direction, ItemStack item)
      Returns an array of slot indexes where the item should be pushed to
      Parameters:
      direction - direction from hopper to this block entity
      item - 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