Interface HeldItemSwaps.SwapFilter

Enclosing class:
HeldItemSwaps
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 HeldItemSwaps.SwapFilter
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    sameItem(net.minecraft.world.item.ItemStack shown, net.minecraft.world.item.ItemStack next)
    Whether the stack shown and the one now held are to be seen as the same item, with no swap between them.
  • Method Details

    • sameItem

      boolean sameItem(net.minecraft.world.item.ItemStack shown, net.minecraft.world.item.ItemStack next)
      Whether the stack shown and the one now held are to be seen as the same item, with no swap between them.