public static class ItemPredicate.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private MinMaxBounds.IntBound |
count |
private MinMaxBounds.IntBound |
durability |
private java.util.List<EnchantmentPredicate> |
enchantments |
private java.util.List<EnchantmentPredicate> |
field_226657_b_ |
private Item |
item |
private NBTPredicate |
nbt |
private Potion |
potion |
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 p_218003_1_) |
ItemPredicate.Builder |
item(IItemProvider provider) |
ItemPredicate.Builder |
nbt(CompoundNBT p_218002_1_) |
ItemPredicate.Builder |
tag(Tag<Item> tag) |
private final java.util.List<EnchantmentPredicate> enchantments
private final java.util.List<EnchantmentPredicate> field_226657_b_
@Nullable private Item item
private MinMaxBounds.IntBound count
private MinMaxBounds.IntBound durability
@Nullable private Potion potion
private NBTPredicate nbt
public static ItemPredicate.Builder create()
public ItemPredicate.Builder item(IItemProvider provider)
public ItemPredicate.Builder tag(Tag<Item> tag)
public ItemPredicate.Builder nbt(CompoundNBT p_218002_1_)
public ItemPredicate.Builder enchantment(EnchantmentPredicate p_218003_1_)
public ItemPredicate build()