Search in sources :

Example 1 with TargetLivingEvent

use of org.spongepowered.api.event.entity.living.TargetLivingEvent in project SpongeForge by SpongePowered.

the class SpongeForgeEventFactory method createLivingEvent.

// Living events
public static LivingEvent createLivingEvent(Event event) {
    TargetLivingEvent spongeEvent = (TargetLivingEvent) event;
    LivingEvent forgeEvent = new LivingEvent((EntityLivingBase) spongeEvent.getTargetEntity());
    return forgeEvent;
}
Also used : TargetLivingEvent(org.spongepowered.api.event.entity.living.TargetLivingEvent) LivingEvent(net.minecraftforge.event.entity.living.LivingEvent) TargetLivingEvent(org.spongepowered.api.event.entity.living.TargetLivingEvent)

Aggregations

LivingEvent (net.minecraftforge.event.entity.living.LivingEvent)1 TargetLivingEvent (org.spongepowered.api.event.entity.living.TargetLivingEvent)1