Package net.minecraft.command.arguments
Class ItemPredicateArgument.ItemPredicate
- java.lang.Object
-
- net.minecraft.command.arguments.ItemPredicateArgument.ItemPredicate
-
- All Implemented Interfaces:
java.util.function.Predicate<ItemStack>
- Enclosing class:
- ItemPredicateArgument
static class ItemPredicateArgument.ItemPredicate extends java.lang.Object implements java.util.function.Predicate<ItemStack>
-
-
Field Summary
Fields Modifier and Type Field Description private Item
item
private CompoundNBT
nbt
-
Constructor Summary
Constructors Constructor Description ItemPredicate(Item p_i48221_1_, CompoundNBT p_i48221_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(ItemStack p_test_1_)
-
-
-
Field Detail
-
item
private final Item item
-
nbt
@Nullable private final CompoundNBT nbt
-
-
Constructor Detail
-
ItemPredicate
public ItemPredicate(Item p_i48221_1_, @Nullable CompoundNBT p_i48221_2_)
-
-