use of org.spongepowered.api.event.entity.TargetEntityEvent in project SpongeForge by SpongePowered.
the class SpongeForgeEventFactory method createEntityEvent.
// Entity events
public static EntityEvent createEntityEvent(Event event) {
TargetEntityEvent spongeEvent = (TargetEntityEvent) event;
EntityEvent forgeEvent = new EntityEvent((Entity) spongeEvent.getTargetEntity());
return forgeEvent;
}
Aggregations