Class ContextAwarePredicate
java.lang.Object
net.minecraft.advancements.critereon.ContextAwarePredicate
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
private final List<LootItemCondition>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContextAwarePredicate
create
(LootItemCondition... p_286844_) static Optional<Optional<ContextAwarePredicate>>
fromElement
(String p_286647_, DeserializationContext p_286323_, com.google.gson.JsonElement p_286520_, LootContextParamSet p_286912_) boolean
matches
(LootContext p_286260_) com.google.gson.JsonElement
toJson()
static com.google.gson.JsonElement
toJson
(List<ContextAwarePredicate> p_298375_)
-
Field Details
-
conditions
-
compositePredicates
-
-
Constructor Details
-
ContextAwarePredicate
ContextAwarePredicate(List<LootItemCondition> p_301186_)
-
-
Method Details
-
create
-
fromElement
public static Optional<Optional<ContextAwarePredicate>> fromElement(String p_286647_, DeserializationContext p_286323_, @Nullable com.google.gson.JsonElement p_286520_, LootContextParamSet p_286912_) -
matches
-
toJson
public com.google.gson.JsonElement toJson() -
toJson
-