Package com.flansmod.common

Examples of com.flansmod.common.PlayerData


  @Override
  public Vec3 getSpawnPoint(EntityPlayerMP player)
  {
    if(teamsManager.currentRound == null)
      return null;
    PlayerData data = getPlayerData(player);
    List<ITeamObject> validSpawnPoints = new ArrayList<ITeamObject>();
    if(data.newTeam == null)
      return null;
   
    //Check each team's spawnpoints
View Full Code Here


      {
        hitboxes.add(new PlayerHitbox(player, bodyAxes.findLocalAxesGlobally(rightArmAxes), new Vector3f(originXRight, 1.3F, originZRight), new Vector3f(gunType.shieldOrigin.y, -1.05F + gunType.shieldOrigin.x, -1F / 16F + gunType.shieldOrigin.z), new Vector3f(gunType.shieldDimensions.y, gunType.shieldDimensions.x, gunType.shieldDimensions.z), EnumHitboxType.RIGHTITEM))
      }
     
      //Add left hand shield box
      PlayerData data = PlayerHandler.getPlayerData(player);
      if(gunType.oneHanded && data.offHandGunSlot != 0)
      {
        ItemStack leftHandStack = null;
        //Client side other players
        if(player.worldObj.isRemote && !FlansMod.proxy.isThePlayer(player))
View Full Code Here

      }
      else return penetratingPower;
    }
    case LEFTITEM :
    {
      PlayerData data = PlayerHandler.getPlayerData(player);
      if(data.offHandGunSlot != 0)
      {
        ItemStack leftHandStack = null;
        if(player.worldObj.isRemote && !FlansMod.proxy.isThePlayer(player))
          leftHandStack = data.offHandGunStack;
View Full Code Here

  }

  @Override
  public void playerKilled(EntityPlayerMP player, DamageSource source)
  {
    PlayerData playerData = getPlayerData(player);
    EntityPlayerMP attacker = getPlayerFromDamageSource(source);
    if(attacker != null)
    {
      PlayerData attackerData = getPlayerData(attacker);
     
      //They killed themself. Oh noes. Do nothing
      if(attacker == player)
      {
        //playerData.score--;
View Full Code Here

  @Override
  public Vec3 getSpawnPoint(EntityPlayerMP player)
  {
    if(teamsManager.currentRound == null)
      return null;
    PlayerData data = getPlayerData(player);
    List<ITeamObject> validSpawnPoints = new ArrayList<ITeamObject>();
    if(data.newTeam == null)
      return null;
   
    //Check each team's spawnpoints
View Full Code Here

  @Override
  public Vec3 getSpawnPoint(EntityPlayerMP player)
  {
    if(teamsManager.currentRound == null)
      return null;
    PlayerData data = getPlayerData(player);
    List<ITeamObject> validSpawnPoints = new ArrayList<ITeamObject>();
    if(data.newTeam == null)
      return null;
   
    ArrayList<ITeamBase> bases = teamsManager.currentRound.map.getBasesPerTeam(teamsManager.currentRound.getTeamID(data.newTeam));
View Full Code Here

      //Flag belongs to some team other than spectators
      if(flag.getBase().getOwnerID() > 1)
      {
        //Get the player's team and teamID
        Team playerTeam = getPlayerData(player).team;
        PlayerData playerData = getPlayerData(player);
        Team flagTeam = teamsManager.getTeam(flag.getBase().getOwnerID());
       
        //Make sure they are in the game and on the right map
        if(playerTeam != null && playerTeam != Team.spectators && flag.getBase().getMap() == teamsManager.currentRound.map)
        {
View Full Code Here

  @Override
  public Vec3 getSpawnPoint(EntityPlayerMP player)
  {
    if(teamsManager.currentRound == null)
      return null;
    PlayerData data = getPlayerData(player);
    List<ITeamObject> validSpawnPoints = new ArrayList<ITeamObject>();
    if(data.newTeam == null)
      return null;
   
    ArrayList<ITeamBase> bases = teamsManager.currentRound.map.getBasesPerTeam(teamsManager.currentRound.getTeamID(data.newTeam));
View Full Code Here

    {
      EntityLivingBase entity = (EntityLivingBase)data[1];
      if(entity instanceof EntityPlayer)
      {
        EntityPlayer player = (EntityPlayer)entity;
        PlayerData playerData = PlayerHandler.getPlayerData(player, Side.CLIENT);
        if(playerData.offHandGunSlot != 0)
        {
          GunAnimations animations = FlansModClient.gunAnimationsLeft.get(data[1]);
          if(animations == null)
          {
View Full Code Here

 
  public void displayScoreboardGUI()
  {
    for(EntityPlayer player : getPlayers())
    {
      PlayerData data = PlayerHandler.getPlayerData(player);
      if(!data.builder)
        sendPacketToPlayer(new PacketRoundFinished(scoreDisplayTime), (EntityPlayerMP)player);
    }
  }
View Full Code Here

TOP

Related Classes of com.flansmod.common.PlayerData

Copyright © 2018 www.massapicom. 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.