Search in sources :

Example 1 with IMixinAdvancementProgress

use of org.spongepowered.common.interfaces.advancement.IMixinAdvancementProgress in project SpongeCommon by SpongePowered.

the class MixinPlayerAdvancements method onStartProgress.

@Inject(method = "startProgress", at = @At("RETURN"))
private void onStartProgress(Advancement advancement, AdvancementProgress progress, CallbackInfo ci) {
    final IMixinAdvancementProgress advancementProgress = (IMixinAdvancementProgress) progress;
    advancementProgress.setAdvancement(((org.spongepowered.api.advancement.Advancement) advancement).getId());
    advancementProgress.setPlayerAdvancements((PlayerAdvancements) (Object) this);
}
Also used : IMixinAdvancementProgress(org.spongepowered.common.interfaces.advancement.IMixinAdvancementProgress) Inject(org.spongepowered.asm.mixin.injection.Inject)

Aggregations

Inject (org.spongepowered.asm.mixin.injection.Inject)1 IMixinAdvancementProgress (org.spongepowered.common.interfaces.advancement.IMixinAdvancementProgress)1