Java 类net.minecraft.client.mco.ValueObjectSubscription 实例源码

项目:Resilience-Client-Source    文件:GuiScreenSubscription.java   
private void func_146778_a(long p_146778_1_)
{
    Session var3 = this.mc.getSession();
    McoClient var4 = new McoClient(var3.getSessionID(), var3.getUsername(), "1.7.2", Minecraft.getMinecraft().getProxy());

    try
    {
        ValueObjectSubscription var5 = var4.func_148705_g(p_146778_1_);
        this.field_146785_r = var5.field_148789_b;
        this.field_146784_s = this.func_146776_b(var5.field_148790_a);
    }
    catch (ExceptionMcoService var6)
    {
        logger.error("Couldn\'t get subscription");
    }
    catch (IOException var7)
    {
        logger.error("Couldn\'t parse response subscribing");
    }
}
项目:RuneCraftery    文件:GuiScreenSubscription.java   
private void func_98063_a(long par1)
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        ValueObjectSubscription valueobjectsubscription = mcoclient.func_98177_f(par1);
        this.field_98068_n = valueobjectsubscription.field_98170_b;
        this.field_98069_o = this.func_98062_b(valueobjectsubscription.field_98171_a);
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        Minecraft.getMinecraft().getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        Minecraft.getMinecraft().getLogAgent().logWarning("Realms: could not parse response");
    }
}
项目:BetterNutritionMod    文件:GuiScreenSubscription.java   
private void func_98063_a(long par1)
{
    McoClient mcoclient = new McoClient(this.mc.getSession());

    try
    {
        ValueObjectSubscription valueobjectsubscription = mcoclient.func_98177_f(par1);
        this.field_98068_n = valueobjectsubscription.field_98170_b;
        this.field_98069_o = this.func_98062_b(valueobjectsubscription.field_98171_a);
    }
    catch (ExceptionMcoService exceptionmcoservice)
    {
        Minecraft.getMinecraft().getLogAgent().logSevere(exceptionmcoservice.toString());
    }
    catch (IOException ioexception)
    {
        Minecraft.getMinecraft().getLogAgent().logWarning("Realms: could not parse response");
    }
}
项目:RuneCraftery    文件:GuiScreenSubscription.java   
private void func_98063_a(long p_98063_1_) {
   McoClient var3 = new McoClient(this.field_73882_e.func_110432_I());

   try {
      ValueObjectSubscription var4 = var3.func_98177_f(p_98063_1_);
      this.field_98068_n = var4.field_98170_b;
      this.field_98069_o = this.func_98062_b(var4.field_98171_a);
   } catch (ExceptionMcoService var5) {
      Minecraft.func_71410_x().func_98033_al().func_98232_c(var5.toString());
   } catch (IOException var6) {
      Minecraft.func_71410_x().func_98033_al().func_98236_b("Realms: could not parse response");
   }

}
项目:RuneCraftery    文件:McoClient.java   
public ValueObjectSubscription func_98177_f(long p_98177_1_) throws ExceptionMcoService, IOException {
   String var3 = this.func_96377_a(Request.func_96358_a(field_96388_b + "subscriptions" + "/$WORLD_ID".replace("$WORLD_ID", String.valueOf(p_98177_1_))));
   return ValueObjectSubscription.func_98169_a(var3);
}