Search in sources :

Example 1 with ICriterionTrigger

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

the class MixinICriterionInstance method getType.

@Override
default Trigger getType() {
    final ICriterionTrigger triggerType = CriteriaTriggers.get(getId());
    checkNotNull(triggerType, "triggerType");
    return (Trigger) triggerType;
}
Also used : Trigger(org.spongepowered.api.advancement.criteria.trigger.Trigger) FilteredTrigger(org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger) ICriterionTrigger(net.minecraft.advancements.ICriterionTrigger) ICriterionTrigger(net.minecraft.advancements.ICriterionTrigger)

Aggregations

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