Interface InventoryIdentifier

All Known Implementing Classes:
InventoryIdentifier.Bounds, InventoryIdentifier.MultiFace, InventoryIdentifier.Pair, InventoryIdentifier.Single
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface InventoryIdentifier
Interface identifying an inventory spanning multiple block faces. This is used to avoid multiple packagers on the same inventory requesting items from each other.
  • Field Details

  • Method Details

    • contains

      boolean contains(net.createmod.catnip.math.BlockFace face)
      Returns:
      true if the given face is part of the inventory this identifier represents
    • get

      @Nullable static @Nullable InventoryIdentifier get(net.minecraft.world.level.Level level, net.createmod.catnip.math.BlockFace face)
      Get the InventoryIdentifier for the given BlockFace, if present.