Class ItemPredicate.Builder
java.lang.Object
net.minecraft.advancements.critereon.ItemPredicate.Builder
- Enclosing class:
ItemPredicate
-
Field Summary
Modifier and TypeFieldDescriptionprivate DataComponentPredicate
private MinMaxBounds.Ints
private final com.google.common.collect.ImmutableMap.Builder
<ItemSubPredicate.Type<?>, ItemSubPredicate> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
hasComponents
(DataComponentPredicate p_333545_) static ItemPredicate.Builder
item()
withCount
(MinMaxBounds.Ints p_151444_) <T extends ItemSubPredicate>
ItemPredicate.BuilderwithSubPredicate
(ItemSubPredicate.Type<T> p_331234_, T p_331877_)
-
Field Details
-
items
-
count
-
components
-
subPredicates
private final com.google.common.collect.ImmutableMap.Builder<ItemSubPredicate.Type<?>,ItemSubPredicate> subPredicates
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
item
-
of
-
of
-
withCount
-
withSubPredicate
public <T extends ItemSubPredicate> ItemPredicate.Builder withSubPredicate(ItemSubPredicate.Type<T> p_331234_, T p_331877_) -
hasComponents
-
build
-