use of net.minecraft.advancements.CriterionTriggerInstance in project SpongeCommon by SpongePowered.
the class SpongeCriterionBuilder method build0.
@SuppressWarnings("ConstantConditions")
@Override
AdvancementCriterion build0() {
CriterionTriggerInstance trigger = (CriterionTriggerInstance) this.trigger;
if (this.trigger == null) {
trigger = SpongeDummyTrigger.Instance.dummy();
}
final Criterion criterion = new Criterion(trigger);
((CriterionBridge) criterion).bridge$setName(this.name);
return (AdvancementCriterion) criterion;
}
Aggregations