Java 类cpw.mods.fml.common.gameevent.PlayerEvent.PlayerRespawnEvent 实例源码

项目:4Space-5    文件:AsteroidsPlayerHandler.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event)
{
    if (event.player instanceof EntityPlayerMP)
    {
        this.onPlayerRespawn((EntityPlayerMP) event.player);
    }
}
项目:4Space-5    文件:GCPlayerHandler.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event)
{
    if (event.player instanceof EntityPlayerMP)
    {
        this.onPlayerRespawn((EntityPlayerMP) event.player);
    }
}
项目:Rival-Rebels-Mod    文件:RivalRebelsRound.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event)
{
    if (!roundstarted) return;
    event.player.setLocationAndAngles(cSpawnx, 200, cSpawnz,0,0);
    PacketDispatcher.packetsys.sendTo(new GuiSpawnPacket(), (EntityPlayerMP) event.player);
}
项目:BuildcentricTweeks    文件:RespawnEvent.java   
@SubscribeEvent(priority = EventPriority.HIGHEST)
public void onRespawnEvent(PlayerRespawnEvent event) 
{
    if (event.isCancelable())
        return;

    if(!event.player.capabilities.allowEdit)
    {
        event.player.setGameType(GameType.SURVIVAL);
    }
}
项目:LambdaLib    文件:LIFMLGameEventDispatcher.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event) {
    if (!addPlayerRespawn.isEmpty()) {
        hPlayerRespawn.addAll(addPlayerRespawn);
        addPlayerRespawn.clear();
    }
    for (Iterator<LIHandler> it = hPlayerRespawn.iterator(); it.hasNext(); ) {
        LIHandler handler = it.next();
        if (handler.isDead())
            it.remove();
        else
            handler.trigger(event);
    }
}
项目:Minegate    文件:MineGate.java   
@SubscribeEvent
public void onRespawn(PlayerRespawnEvent event){
    if(event.player.getEntityData().getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG).hasKey("MineGate_Recovery"))
    {
        ItemStack item = new ItemStack(recovery);
        item.setTagCompound(event.player.getEntityData().getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG).getCompoundTag("MineGate_Recovery"));
        event.player.getEntityData().getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG).removeTag("MineGate_Recovery");
        event.player.inventory.addItemStackToInventory(item);
    }
}
项目:rpginventory    文件:PlayerTracker.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent e) {
    if (!e.player.worldObj.isRemote) {
        PacketHelper.syncOwnInventory((EntityPlayerMP) e.player,PlayerRpgInventory.get(e.player));
    }
    PlayerRpgInventory.get(e.player);
}
项目:Factorial-Automation    文件:ModEventHandler.java   
@SubscribeEvent
public void onPlayerRespawnEvent(PlayerRespawnEvent event) {

    KnowledgeHandler playerKnowledge = new KnowledgeHandler(event.player.getDisplayName());
    playerKnowledge.setKnowledgeXP(0);
    // TODO: Convert to lang
    event.player.addChatComponentMessage(new ChatComponentText("You've lost some brain cells caused by the damage. Brain XP: "
            + (int) playerKnowledge.getKnowledgeXP()));
}
项目:projectzulu1.7.10-pre-1.3a    文件:ExperienceRedistributor.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event) {
    Integer experience = entityIdToExperience.remove(event.player.getEntityId());
    if (experience != null) {
        ProjectZuluLog.info("Removing Experience [%s] and adding [%s]", event.player.experienceTotal, experience);
        event.player.experienceLevel = 0;
        event.player.experienceTotal = 0;
        event.player.experience = 0;
        event.player.addExperience(experience);
    }
}
项目:projectzulu1.7.10    文件:ExperienceRedistributor.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event) {
    Integer experience = entityIdToExperience.remove(event.player.getEntityId());
    if (experience != null) {
        ProjectZuluLog.info("Removing Experience [%s] and adding [%s]", event.player.experienceTotal, experience);
        event.player.experienceLevel = 0;
        event.player.experienceTotal = 0;
        event.player.experience = 0;
        event.player.addExperience(experience);
    }
}
项目:TFCPrimitiveTech    文件:ModPlayerTracker.java   
@SubscribeEvent 
public void onPlayerRespawn(PlayerRespawnEvent e) 
{ 
}
项目:4Space-5    文件:ServerHandler.java   
@SubscribeEvent
public void loginEvent(PlayerRespawnEvent event) {
    NEISPH.sendHasServerSideTo((EntityPlayerMP) event.player);
}
项目:TFCTech    文件:ModPlayerTracker.java   
@SubscribeEvent 
public void onPlayerRespawn(PlayerRespawnEvent e) 
{ 
}
项目:TerraFirmaProgressivePack    文件:TFCPPPlayerTracker.java   
@SubscribeEvent 
public void onPlayerRespawn(PlayerRespawnEvent e) 
{ 
}
项目:TechNodefirmacraftMod    文件:ModPlayerTracker.java   
@SubscribeEvent 
public void onPlayerRespawn(PlayerRespawnEvent e) 
{ 
}
项目:DecorationsTFC    文件:PlayerTracker.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event)
{
}
项目:MerchantsTFC    文件:PlayerTracker.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event)
{
}
项目:AdvHealthOptions    文件:CommonProxy.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event) {
    if (event.player instanceof EntityPlayerMP)
        getProperties(event.player).respawn(event.player);
}
项目:NausicaaMod    文件:NPlayerHandler.java   
@SubscribeEvent
public void onPlayerRespawn (PlayerRespawnEvent event)
{
    onPlayerRespawn(event.player);
}
项目:LanternsTFC    文件:PlayerTracker.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event)
{
}
项目:DecorationsTFC    文件:PlayerTracker.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event)
{
}
项目:Gizmos    文件:FMLEventHandler.java   
@SubscribeEvent
public void onRespawn(PlayerRespawnEvent e){
    Debug.mark();
    BlockSpawner.relocatePlayer(e.player);
}
项目:CodeLyokoMod    文件:EventHandler.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event)
{
    PlayerInformation.forPlayer(event.player).setDirty();
}
项目:AgeCraft-Old    文件:ACEventHandler.java   
@SubscribeEvent
public void onPlayerRespawn(PlayerRespawnEvent event) {
    event.player.getAttributeMap().getAttributeInstance(SharedMonsterAttributes.maxHealth).setBaseValue(100.0D);
    event.player.setHealth(100.0F);
}
项目:AMCore    文件:ClientPlayerTracker.java   
@SubscribeEvent
public void onPlayerRespawnEvent(PlayerRespawnEvent event) {

}
项目:AMCore    文件:CommonPlayerTracker.java   
@SubscribeEvent
public void onPlayerRespawnEvent(PlayerRespawnEvent event) {

}