Search in sources :

Example 1 with PlayerUpdateEvent

use of me.wallhacks.spark.event.player.PlayerUpdateEvent in project Spark-Client by Spark-Client-Development.

the class MixinEntityPlayer method onUpdate.

@Inject(method = "onUpdate", at = @At("RETURN"))
public void onUpdate(final CallbackInfo info) {
    if ((Object) this instanceof EntityPlayerSP) {
        PlayerUpdateEvent event = new PlayerUpdateEvent();
        Spark.eventBus.post(event);
        Spark.switchManager.OnLateUpdate();
    }
}
Also used : PlayerUpdateEvent(me.wallhacks.spark.event.player.PlayerUpdateEvent) EntityPlayerSP(net.minecraft.client.entity.EntityPlayerSP) Inject(org.spongepowered.asm.mixin.injection.Inject)

Aggregations

PlayerUpdateEvent (me.wallhacks.spark.event.player.PlayerUpdateEvent)1 EntityPlayerSP (net.minecraft.client.entity.EntityPlayerSP)1 Inject (org.spongepowered.asm.mixin.injection.Inject)1