Class ItemPredicate.Builder
java.lang.Object
net.minecraft.advancements.critereon.ItemPredicate.Builder
- Enclosing class:
- ItemPredicate
-
Field Summary
Modifier and TypeFieldDescriptionprivate MinMaxBounds.Ints
private MinMaxBounds.Ints
private final com.google.common.collect.ImmutableList.Builder<EnchantmentPredicate>
private Optional<NbtPredicate>
private final com.google.common.collect.ImmutableList.Builder<EnchantmentPredicate>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
hasDurability
(MinMaxBounds.Ints p_151450_) hasEnchantment
(EnchantmentPredicate p_45072_) hasNbt
(CompoundTag p_45076_) hasStoredEnchantment
(EnchantmentPredicate p_151448_) static ItemPredicate.Builder
item()
withCount
(MinMaxBounds.Ints p_151444_)
-
Field Details
-
enchantments
-
storedEnchantments
private final com.google.common.collect.ImmutableList.Builder<EnchantmentPredicate> storedEnchantments -
items
-
tag
-
count
-
durability
-
potion
-
nbt
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
item
-
of
-
of
-
withCount
-
hasDurability
-
isPotion
-
hasNbt
-
hasEnchantment
-
hasStoredEnchantment
-
build
-