Class ItemPredicate.Builder
- java.lang.Object
-
- net.minecraft.advancements.criterion.ItemPredicate.Builder
-
- Enclosing class:
- ItemPredicate
public static class ItemPredicate.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private MinMaxBounds.IntBound
count
private MinMaxBounds.IntBound
durability
private java.util.List<EnchantmentPredicate>
enchantments
private Item
item
private NBTPredicate
nbt
private Potion
potion
private java.util.List<EnchantmentPredicate>
storedEnchantments
private ITag<Item>
tag
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemPredicate
build()
ItemPredicate.Builder
hasEnchantment(EnchantmentPredicate p_218003_1_)
ItemPredicate.Builder
hasNbt(CompoundNBT p_218002_1_)
static ItemPredicate.Builder
item()
ItemPredicate.Builder
of(ITag<Item> p_200307_1_)
ItemPredicate.Builder
of(IItemProvider p_200308_1_)
-
-
-
Field Detail
-
enchantments
private final java.util.List<EnchantmentPredicate> enchantments
-
storedEnchantments
private final java.util.List<EnchantmentPredicate> storedEnchantments
-
item
@Nullable private Item item
-
count
private MinMaxBounds.IntBound count
-
durability
private MinMaxBounds.IntBound durability
-
potion
@Nullable private Potion potion
-
nbt
private NBTPredicate nbt
-
-
Method Detail
-
item
public static ItemPredicate.Builder item()
-
of
public ItemPredicate.Builder of(IItemProvider p_200308_1_)
-
of
public ItemPredicate.Builder of(ITag<Item> p_200307_1_)
-
hasNbt
public ItemPredicate.Builder hasNbt(CompoundNBT p_218002_1_)
-
hasEnchantment
public ItemPredicate.Builder hasEnchantment(EnchantmentPredicate p_218003_1_)
-
build
public ItemPredicate build()
-
-