Package com.simibubi.create.api.packager
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.
Interface identifying an inventory spanning multiple block faces.
This is used to avoid multiple packagers on the same inventory requesting items from each other.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic interfaceInterface for finding an InventoryIdentifier for a block.static final recordstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleRegistry<net.minecraft.world.level.block.Block, InventoryIdentifier.Finder> -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(net.createmod.catnip.math.BlockFace face) static @Nullable InventoryIdentifierget(net.minecraft.world.level.Level level, net.createmod.catnip.math.BlockFace face) Get the InventoryIdentifier for the given BlockFace, if present.
-
Field Details
-
REGISTRY
static final SimpleRegistry<net.minecraft.world.level.block.Block,InventoryIdentifier.Finder> REGISTRY
-
-
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.
-