use of net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedOutEvent in project SpongeForge by SpongePowered.
the class SpongeForgeEventFactory method callPlayerLoggedOutEvent.
private static ClientConnectionEvent.Disconnect callPlayerLoggedOutEvent(Event event) {
ClientConnectionEvent.Disconnect spongeEvent = (ClientConnectionEvent.Disconnect) event;
PlayerLoggedOutEvent fmlEvent = new PlayerLoggedOutEvent((EntityPlayer) spongeEvent.getTargetEntity());
((IMixinEventBus) MinecraftForge.EVENT_BUS).post(fmlEvent, true);
return spongeEvent;
}
Aggregations