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