Package net.minecraft.predicate.item
Class ItemPredicate
java.lang.Object
net.minecraft.predicate.item.ItemPredicate
public class ItemPredicate extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classItemPredicate.Builder -
Field Summary
Fields Modifier and Type Field Description static ItemPredicateANYprivate NumberRange.IntRangecountprivate NumberRange.IntRangedurabilityprivate EnchantmentPredicate[]enchantmentsprivate Itemitemprivate NbtPredicatenbtprivate Potionpotionprivate EnchantmentPredicate[]storedEnchantmentsprivate Tag<Item>tag -
Constructor Summary
Constructors Constructor Description ItemPredicate()ItemPredicate(Tag<Item> tag, Item item, NumberRange.IntRange count, NumberRange.IntRange durability, EnchantmentPredicate[] enchantments, EnchantmentPredicate[] storedEnchantments, Potion potion, NbtPredicate nbt) -
Method Summary
Modifier and Type Method Description static ItemPredicate[]deserializeAll(JsonElement el)static ItemPredicatefromJson(JsonElement el)booleantest(ItemStack stack)JsonElementtoJson()
-
Field Details
-
ANY
-
tag
-
item
-
count
-
durability
-
enchantments
-
storedEnchantments
-
potion
-
nbt
-
-
Constructor Details
-
ItemPredicate
public ItemPredicate() -
ItemPredicate
public ItemPredicate(@Nullable Tag<Item> tag, @Nullable Item item, NumberRange.IntRange count, NumberRange.IntRange durability, EnchantmentPredicate[] enchantments, EnchantmentPredicate[] storedEnchantments, @Nullable Potion potion, NbtPredicate nbt)
-
-
Method Details
-
test
-
fromJson
-
toJson
-
deserializeAll
-