Interface InventoryIdentifier.Finder

Enclosing interface:
InventoryIdentifier
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 static interface InventoryIdentifier.Finder
Interface for finding an InventoryIdentifier for a block.
  • Method Summary

    Modifier and Type
    Method
    Description
    find(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.createmod.catnip.math.BlockFace face)
    Attempt to find the InventoryIdentifier that contains the given BlockFace.
  • Method Details

    • find

      @Nullable @Nullable InventoryIdentifier find(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.createmod.catnip.math.BlockFace face)
      Attempt to find the InventoryIdentifier that contains the given BlockFace.
      Returns:
      the found identifier, or null if one isn't present