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