Package net.minecraft.entity.player

Examples of net.minecraft.entity.player.EntityPlayer.attackEntityFrom()


            ItemStack itemInUse = player.itemInUse;
            if (itemInUse != null && itemInUse.getItem() == this) {

        event.setCanceled(true);
        handleNext = 3;
        player.attackEntityFrom(DamageSource.magic, 3);
      }
    }

    if (handle) {
      Entity source = event.source.getSourceOfDamage();
View Full Code Here


            interdictionMatrix.mergeIntoInventory(player.inventory.getStackInSlot(i));
            player.inventory.setInventorySlotContents(i, null);
          }
        }
        player.setHealth(1);
        player.attackEntityFrom(ModularForceFieldSystem.damagefieldShock, 100);
        interdictionMatrix.requestFortron(Settings.INTERDICTION_MURDER_ENERGY, false);

        player.addChatMessage("[" + interdictionMatrix.getInvName() + "] " + LanguageUtility.getLocal("message.moduleAntiPersonnel.death"));
      }
    }
View Full Code Here

  {
    if(teamsManager.currentRound.teams[0].members.size() > 0)
    {
      EntityPlayer zombifiedPlayer = teamsManager.getPlayer(teamsManager.currentRound.teams[0].members.get(rand.nextInt(teamsManager.currentRound.teams[0].members.size())));
      teamsManager.messageAll("\u00a74" + zombifiedPlayer.getCommandSenderName() + "\u00a7c was infected with the \u00a74zombie plague\u00a7c!");
      zombifiedPlayer.attackEntityFrom(DamageSource.generic, 1000000000F);
    }
  }
 
  public Team[] getTeamsCanSpawnAs(TeamsRound currentRound, EntityPlayer player)
  {
View Full Code Here

      else if (count > 1)
        damage = 2;
      else if (count > 0)
        damage = 3;

      player.attackEntityFrom(damageSourceBeeEnd, damage);
    }

    return storedData;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.