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.IntBoundcountprivate MinMaxBounds.IntBounddurabilityprivate java.util.List<EnchantmentPredicate>enchantmentsprivate Itemitemprivate NBTPredicatenbtprivate Potionpotionprivate java.util.List<EnchantmentPredicate>storedEnchantmentsprivate ITag<Item>tag
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemPredicatebuild()ItemPredicate.BuilderhasEnchantment(EnchantmentPredicate p_218003_1_)ItemPredicate.BuilderhasNbt(CompoundNBT p_218002_1_)static ItemPredicate.Builderitem()ItemPredicate.Builderof(ITag<Item> p_200307_1_)ItemPredicate.Builderof(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()
-
-