Class ItemFilter.Simple
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final classNested classes/interfaces inherited from interface com.github.minecraftschurlimods.arsmagicalegacy.api.util.ItemFilter
ItemFilter.AmountMatchMode, ItemFilter.Builder, ItemFilter.Combined, ItemFilter.None, ItemFilter.Simple -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ItemFilter.Simple>final intfinal intFields inherited from interface com.github.minecraftschurlimods.arsmagicalegacy.api.util.ItemFilter
NETWORK_CODEC -
Method Summary
Modifier and TypeMethodDescription@Nullable ItemFilter.SimplegetMatchingFilter(net.minecraft.world.item.ItemStack stack) booleantest(net.minecraft.world.item.ItemStack stack) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.minecraftschurlimods.arsmagicalegacy.api.util.ItemFilter
getMatchedStacks
-
Field Details
-
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:
testin interfaceItemFilter- Specified by:
testin interfacePredicate<net.minecraft.world.item.ItemStack>
-
getMatchingFilter
@Nullable public @Nullable ItemFilter.Simple getMatchingFilter(net.minecraft.world.item.ItemStack stack) - Specified by:
getMatchingFilterin interfaceItemFilter
-