use of org.spongepowered.api.event.world.UnloadWorldEvent in project SpongeForge by SpongePowered.
the class SpongeForgeEventFactory method callWorldUnloadEvent.
private static UnloadWorldEvent callWorldUnloadEvent(Event event) {
UnloadWorldEvent spongeEvent = (UnloadWorldEvent) event;
((IMixinEventBus) MinecraftForge.EVENT_BUS).post(new WorldEvent.Unload((net.minecraft.world.World) spongeEvent.getTargetWorld()), true);
return spongeEvent;
}
Aggregations