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);
}
Aggregations