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