public abstract class AbstractCriterion<T extends AbstractCriterionConditions> extends Object implements Criterion<T>
Criterion.ConditionsContainer<T extends CriterionConditions>
Modifier and Type | Field and Description |
---|---|
private Map<PlayerAdvancementTracker,Set<Criterion.ConditionsContainer<T>>> |
progressions |
Constructor and Description |
---|
AbstractCriterion() |
Modifier and Type | Method and Description |
---|---|
void |
beginTrackingCondition(PlayerAdvancementTracker manager,
Criterion.ConditionsContainer<T> conditionsContainer) |
T |
conditionsFromJson(JsonObject jsonObject,
AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) |
protected abstract T |
conditionsFromJson(JsonObject obj,
EntityPredicate.Extended playerPredicate,
AdvancementEntityPredicateDeserializer predicateDeserializer) |
void |
endTracking(PlayerAdvancementTracker tracker) |
void |
endTrackingCondition(PlayerAdvancementTracker manager,
Criterion.ConditionsContainer<T> conditionsContainer) |
protected void |
test(ServerPlayerEntity player,
Predicate<T> tester) |
private final Map<PlayerAdvancementTracker,Set<Criterion.ConditionsContainer<T extends AbstractCriterionConditions>>> progressions
public final void beginTrackingCondition(PlayerAdvancementTracker manager, Criterion.ConditionsContainer<T> conditionsContainer)
beginTrackingCondition
in interface Criterion<T extends AbstractCriterionConditions>
public final void endTrackingCondition(PlayerAdvancementTracker manager, Criterion.ConditionsContainer<T> conditionsContainer)
endTrackingCondition
in interface Criterion<T extends AbstractCriterionConditions>
public final void endTracking(PlayerAdvancementTracker tracker)
endTracking
in interface Criterion<T extends AbstractCriterionConditions>
protected abstract T conditionsFromJson(JsonObject obj, EntityPredicate.Extended playerPredicate, AdvancementEntityPredicateDeserializer predicateDeserializer)
public final T conditionsFromJson(JsonObject jsonObject, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
conditionsFromJson
in interface Criterion<T extends AbstractCriterionConditions>
protected void test(ServerPlayerEntity player, Predicate<T> tester)