java.lang.Object
com.github.minecraftschurlimods.arsmagicalegacy.api.util.ItemFilter.Simple
All Implemented Interfaces:
ItemFilter, Predicate<net.minecraft.world.item.ItemStack>
Direct Known Subclasses:
ItemFilter.Simple.Ingredient, ItemFilter.Simple.ItemLike, ItemFilter.Simple.ItemStack, ItemFilter.Simple.TagKey
Enclosing interface:
ItemFilter

public abstract static sealed class ItemFilter.Simple extends Object implements ItemFilter permits ItemFilter.Simple.TagKey, ItemFilter.Simple.ItemLike, ItemFilter.Simple.ItemStack, ItemFilter.Simple.Ingredient
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ItemFilter.Simple> CODEC
    • minAmount

      public final int minAmount
    • maxAmount

      public final int maxAmount
  • Method Details

    • test

      public boolean test(net.minecraft.world.item.ItemStack stack)
      Specified by:
      test in interface ItemFilter
      Specified by:
      test in interface Predicate<net.minecraft.world.item.ItemStack>
    • getMatchingFilter

      @Nullable public @Nullable ItemFilter.Simple getMatchingFilter(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getMatchingFilter in interface ItemFilter