Examples of VIP


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

Examples of org.spoutcraft.client.special.VIP

    }
  }

  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

Examples of org.spoutcraft.client.special.VIP

          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

Examples of org.spoutcraft.client.special.VIP

  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

Examples of personal.mhc.pardus.model.commodities.VIP

     * Test updatePriceGuide(...) works with a priceGuide.
     */
    @Test
    public void testUpdatePriceGuide(){
        // Create CommodityImpl to update.
        CommodityImpl commodity = new VIP();
        // Set commodity's amount.
        commodity.setAmount(10);
        // Create a priceGuide.
        PriceGuide priceGuide = pgs.newPriceGuide();
        // Call updatePriceGuide with a PriceGuide.
        PriceGuide pg = null;
        try {
            pg = pgs.updatePriceGuide(priceGuide, commodity);
        } catch (CommodityException ex) {
            fail();
        }
        // Did it update the commodity?
        assertTrue(pg.getVIP().getAmount() == commodity.getAmount());
        // Did it leave other commodities alone?
        assertTrue(pg.getFood().getAmount() == 0);
    }
View Full Code Here

Examples of personal.mhc.pardus.model.commodities.VIP

     * Test updatePriceGuide(...) works even though there is no priceGuide provided.
     */
    @Test
    public void testUpdatePriceGuideNoPriceGuideProvided(){
        // Create CommodityImpl to update.
        CommodityImpl commodity = new VIP();
        // Set commodity's amount.
        commodity.setAmount(10);
        // Call updatePriceGuide without having a PriceGuide.
        PriceGuide pg = null;
        try {
            pg = pgs.updatePriceGuide(null, commodity);
        } catch (CommodityException ex) {
            fail();
        }
        // Did it update the commodity?
        assertTrue(pg.getVIP().getAmount() == commodity.getAmount());
        // Did it leave other commodities alone?
        assertTrue(pg.getFood().getAmount() == 0);
    }
View Full Code Here

Examples of personal.mhc.pardus.model.commodities.VIP

                case 37: comm = new KeldonBrains();break;
                case 38: comm = new RashkirBones(); break;
                case 39: comm = new Packages(); break;
                case 40: comm = new FactionPackage(); break;
                case 41: comm = new Explosives();break;
                case 42: comm = new VIP(); break;
                case 43: comm = new NeuralStimulator();break;
                case 44: comm = new X993RepairDrone();break;
                default: comm = new Food();break;
            }
            // And get the amount and max.
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.