Search in sources :

Example 1 with EntityAddEvent

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

the class MixinWorld method onEntityAdded.

@Inject(method = "onEntityAdded", at = @At("HEAD"), cancellable = true)
public void onEntityAdded(Entity entityIn, final CallbackInfo info) {
    EntityAddEvent event = new EntityAddEvent(entityIn);
    Spark.eventBus.post(event);
}
Also used : EntityAddEvent(me.wallhacks.spark.event.player.EntityAddEvent) Inject(org.spongepowered.asm.mixin.injection.Inject)

Aggregations

EntityAddEvent (me.wallhacks.spark.event.player.EntityAddEvent)1 Inject (org.spongepowered.asm.mixin.injection.Inject)1