Class ItemPredicate.Builder
java.lang.Object
net.minecraft.advancements.critereon.ItemPredicate.Builder
- Enclosing class:
ItemPredicate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataComponentPredicateprivate MinMaxBounds.Intsprivate final ImmutableMap.Builder<ItemSubPredicate.Type<?>, ItemSubPredicate> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()hasComponents(DataComponentPredicate pComponents) static ItemPredicate.Builderitem()of(HolderGetter<Item> pItemRegistry, TagKey<Item> pTag) of(HolderGetter<Item> pItemRegistry, ItemLike... pItems) withCount(MinMaxBounds.Ints pCount) <T extends ItemSubPredicate>
ItemPredicate.BuilderwithSubPredicate(ItemSubPredicate.Type<T> pType, T pSubPredicate)
-
Field Details
-
items
-
count
-
components
-
subPredicates
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
item
-
of
-
of
-
withCount
-
withSubPredicate
public <T extends ItemSubPredicate> ItemPredicate.Builder withSubPredicate(ItemSubPredicate.Type<T> pType, T pSubPredicate) -
hasComponents
-
build
-