类 ItemPredicate.Builder
java.lang.Object
net.minecraft.advancements.critereon.ItemPredicate.Builder
- 封闭类:
ItemPredicate
-
字段概要
字段修饰符和类型字段说明private DataComponentPredicate
private MinMaxBounds.Ints
private final com.google.common.collect.ImmutableMap.Builder
<ItemSubPredicate.Type<?>, ItemSubPredicate> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()
hasComponents
(DataComponentPredicate p_333545_) static ItemPredicate.Builder
item()
of
(HolderGetter<Item> p_367979_, TagKey<Item> p_204146_) of
(HolderGetter<Item> p_369135_, ItemLike... p_151446_) withCount
(MinMaxBounds.Ints p_151444_) <T extends ItemSubPredicate>
ItemPredicate.BuilderwithSubPredicate
(ItemSubPredicate.Type<T> p_331234_, T p_331877_)
-
字段详细资料
-
items
-
count
-
components
-
subPredicates
private final com.google.common.collect.ImmutableMap.Builder<ItemSubPredicate.Type<?>,ItemSubPredicate> subPredicates
-
-
构造器详细资料
-
Builder
private Builder()
-
-
方法详细资料
-
item
-
of
-
of
-
withCount
-
withSubPredicate
public <T extends ItemSubPredicate> ItemPredicate.Builder withSubPredicate(ItemSubPredicate.Type<T> p_331234_, T p_331877_) -
hasComponents
-
build
-