Package org.spoutcraft.client.special

Examples of org.spoutcraft.client.special.VIP


 

  public static String getCapeUrl(String par0Str, String par1Str) {
    String playerCloakUrl;
    String cleanUserName = ChatColor.stripColor(par0Str);
    VIP vip = Resources.getVIP(cleanUserName);
   
    if (par1Str != null) {
      playerCloakUrl = par1Str;
    } else {
      playerCloakUrl = String.format("http://skins.minecraft.net/MinecraftCloaks/%s.png", new Object[] {StringUtils.stripControlCodes(par0Str)});
    }
   
    if (vip != null && vip.getCape() != null) {
      playerCloakUrl = vip.getCape();
    } else {
      Holiday holiday = Resources.getHoliday();
      if (holiday != null && holiday.getCape() != null) {
        playerCloakUrl = holiday.getCape();
      }
View Full Code Here


    }
  }

  public static void addVIPAccessoriesFor(EntityPlayer player) {
    String cleanUserName = ChatColor.stripColor(player.username);
    VIP vip = Resources.getVIP(cleanUserName);
    if (vip == null) {
      return;
    }
    Map<String, String> vAcs = vip.Accessories();
    if (vAcs == null) {
      return;
    }
    String that = vAcs.get("tophat");
    String nhat = vAcs.get("notchhat");
View Full Code Here

          double var10 = par1EntityPlayer.getDistanceSqToEntity(this.renderManager.livingPlayer);
          float var12 = par1EntityPlayer.isSneaking() ? 32.0F : 64.0F;
          String title = par1EntityPlayer.getDisplayName();
          if (var10 < (double)(var12 * var12)) {
            String cleanUserName = ChatColor.stripColor(par1EntityPlayer.username);
            VIP vip = Resources.getVIP(cleanUserName);
            float var92 = 0.0F;
            if (vip != null) {
              title = vip.getTitle();
              var92 = vip.getScale();
            } else {
              if (par1EntityPlayer.displayName != null) {
                title = par1EntityPlayer.displayName;
              } else {
                title = par1EntityPlayer.getEntityName();
View Full Code Here

  protected void renderPlayerScale(AbstractClientPlayer par1AbstractClientPlayer, float par2) {
    float var3 = 0.9375F;
    // Spout Start
    String cleanUserName = ChatColor.stripColor(par1AbstractClientPlayer.getEntityName());
    VIP vip = Resources.getVIP(cleanUserName);
   
    if (vip != null) {
      var3 = vip.getScale();
    }
    // Spout End
    GL11.glScalef(var3, var3, var3);
  }
View Full Code Here

TOP

Related Classes of org.spoutcraft.client.special.VIP

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.