Search in sources :

Example 1 with CriterionTrigger

use of net.minecraft.advancements.CriterionTrigger in project SpongeCommon by SpongePowered.

the class CriterionTriggerInstanceMixin_API method type.

@Override
default Trigger type() {
    final CriterionTrigger triggerType = CriteriaTriggers.getCriterion(this.shadow$getCriterion());
    Preconditions.checkNotNull(triggerType, "triggerType");
    return (Trigger) triggerType;
}
Also used : Trigger(org.spongepowered.api.advancement.criteria.trigger.Trigger) FilteredTrigger(org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger) CriterionTrigger(net.minecraft.advancements.CriterionTrigger) CriterionTrigger(net.minecraft.advancements.CriterionTrigger)

Aggregations

CriterionTrigger (net.minecraft.advancements.CriterionTrigger)1 FilteredTrigger (org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger)1 Trigger (org.spongepowered.api.advancement.criteria.trigger.Trigger)1