Class ContextAwarePredicate
java.lang.Object
net.minecraft.advancements.critereon.ContextAwarePredicate
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ContextAwarePredicate
private final Predicate<LootContext>
private final LootItemCondition[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContextAwarePredicate
create
(LootItemCondition... p_286844_) static ContextAwarePredicate
fromElement
(String p_286647_, DeserializationContext p_286323_, com.google.gson.JsonElement p_286520_, LootContextParamSet p_286912_) boolean
matches
(LootContext p_286260_) static com.google.gson.JsonElement
toJson
(ContextAwarePredicate[] p_286611_, SerializationContext p_286638_) com.google.gson.JsonElement
toJson
(SerializationContext p_286222_)
-
Field Details
-
ANY
-
conditions
-
compositePredicates
-
-
Constructor Details
-
ContextAwarePredicate
ContextAwarePredicate(LootItemCondition[] p_286308_)
-
-
Method Details
-
create
-
fromElement
@Nullable public static ContextAwarePredicate fromElement(String p_286647_, DeserializationContext p_286323_, @Nullable com.google.gson.JsonElement p_286520_, LootContextParamSet p_286912_) -
matches
-
toJson
-
toJson
public static com.google.gson.JsonElement toJson(ContextAwarePredicate[] p_286611_, SerializationContext p_286638_)
-