public static class ItemPredicate.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private NumberRange.IntRange |
count |
private NumberRange.IntRange |
durability |
private List<EnchantmentPredicate> |
enchantments |
private Item |
item |
private NbtPredicate |
nbt |
private Potion |
potion |
private List<EnchantmentPredicate> |
storedEnchantments |
private Tag<Item> |
tag |
Modifier | Constructor and Description |
---|---|
private |
Builder() |
Modifier and Type | Method and Description |
---|---|
ItemPredicate |
build() |
static ItemPredicate.Builder |
create() |
ItemPredicate.Builder |
enchantment(EnchantmentPredicate enchantment) |
ItemPredicate.Builder |
item(ItemConvertible item) |
ItemPredicate.Builder |
nbt(CompoundTag nbt) |
ItemPredicate.Builder |
tag(Tag<Item> tag) |
private final List<EnchantmentPredicate> enchantments
private final List<EnchantmentPredicate> storedEnchantments
private NumberRange.IntRange count
private NumberRange.IntRange durability
private NbtPredicate nbt
public static ItemPredicate.Builder create()
public ItemPredicate.Builder item(ItemConvertible item)
public ItemPredicate.Builder tag(Tag<Item> tag)
public ItemPredicate.Builder nbt(CompoundTag nbt)
public ItemPredicate.Builder enchantment(EnchantmentPredicate enchantment)
public ItemPredicate build()