use of net.minecraftforge.event.entity.EntityEvent 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