本文整理匯總了Java中net.minecraft.client.mco.ValueObjectSubscription類的典型用法代碼示例。如果您正苦於以下問題:Java ValueObjectSubscription類的具體用法?Java ValueObjectSubscription怎麽用?Java ValueObjectSubscription使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ValueObjectSubscription類屬於net.minecraft.client.mco包,在下文中一共展示了ValueObjectSubscription類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: func_146778_a
import net.minecraft.client.mco.ValueObjectSubscription; //導入依賴的package包/類
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");
}
}
示例2: func_98063_a
import net.minecraft.client.mco.ValueObjectSubscription; //導入依賴的package包/類
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");
}
}
示例3: func_98063_a
import net.minecraft.client.mco.ValueObjectSubscription; //導入依賴的package包/類
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");
}
}
示例4: func_98177_f
import net.minecraft.client.mco.ValueObjectSubscription; //導入依賴的package包/類
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);
}