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 class
ItemPredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description static ItemPredicate
ANY
private NumberRange.IntRange
count
private NumberRange.IntRange
durability
private EnchantmentPredicate[]
enchantments
private Item
item
private NbtPredicate
nbt
private Potion
potion
private EnchantmentPredicate[]
storedEnchantments
private 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 ItemPredicate
fromJson(JsonElement el)
boolean
test(ItemStack stack)
JsonElement
toJson()
-
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
-