Search in sources :

Example 1 with TargetWorldEvent

use of org.spongepowered.api.event.world.TargetWorldEvent in project SpongeForge by SpongePowered.

the class SpongeForgeEventFactory method createWorldEvent.

// World events
public static WorldEvent createWorldEvent(Event event) {
    TargetWorldEvent spongeEvent = (TargetWorldEvent) event;
    WorldEvent forgeEvent = new WorldEvent((net.minecraft.world.World) spongeEvent.getTargetWorld());
    return forgeEvent;
}
Also used : LoadWorldEvent(org.spongepowered.api.event.world.LoadWorldEvent) EntityJoinWorldEvent(net.minecraftforge.event.entity.EntityJoinWorldEvent) UnloadWorldEvent(org.spongepowered.api.event.world.UnloadWorldEvent) WorldEvent(net.minecraftforge.event.world.WorldEvent) SaveWorldEvent(org.spongepowered.api.event.world.SaveWorldEvent) TargetWorldEvent(org.spongepowered.api.event.world.TargetWorldEvent) TargetWorldEvent(org.spongepowered.api.event.world.TargetWorldEvent)

Aggregations

EntityJoinWorldEvent (net.minecraftforge.event.entity.EntityJoinWorldEvent)1 WorldEvent (net.minecraftforge.event.world.WorldEvent)1 LoadWorldEvent (org.spongepowered.api.event.world.LoadWorldEvent)1 SaveWorldEvent (org.spongepowered.api.event.world.SaveWorldEvent)1 TargetWorldEvent (org.spongepowered.api.event.world.TargetWorldEvent)1 UnloadWorldEvent (org.spongepowered.api.event.world.UnloadWorldEvent)1