Search in sources :

Example 1 with TargetEntityEvent

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;
}
Also used : TargetEntityEvent(org.spongepowered.api.event.entity.TargetEntityEvent) ConstructEntityEvent(org.spongepowered.api.event.entity.ConstructEntityEvent) MoveEntityEvent(org.spongepowered.api.event.entity.MoveEntityEvent) DestructEntityEvent(org.spongepowered.api.event.entity.DestructEntityEvent) SpawnEntityEvent(org.spongepowered.api.event.entity.SpawnEntityEvent) EntityEvent(net.minecraftforge.event.entity.EntityEvent) AttackEntityEvent(net.minecraftforge.event.entity.player.AttackEntityEvent) InteractEntityEvent(org.spongepowered.api.event.entity.InteractEntityEvent) TargetEntityEvent(org.spongepowered.api.event.entity.TargetEntityEvent)

Aggregations

EntityEvent (net.minecraftforge.event.entity.EntityEvent)1 AttackEntityEvent (net.minecraftforge.event.entity.player.AttackEntityEvent)1 ConstructEntityEvent (org.spongepowered.api.event.entity.ConstructEntityEvent)1 DestructEntityEvent (org.spongepowered.api.event.entity.DestructEntityEvent)1 InteractEntityEvent (org.spongepowered.api.event.entity.InteractEntityEvent)1 MoveEntityEvent (org.spongepowered.api.event.entity.MoveEntityEvent)1 SpawnEntityEvent (org.spongepowered.api.event.entity.SpawnEntityEvent)1 TargetEntityEvent (org.spongepowered.api.event.entity.TargetEntityEvent)1