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