本文整理汇总了Java中net.wurstclient.update.Version类的典型用法代码示例。如果您正苦于以下问题:Java Version类的具体用法?Java Version怎么用?Java Version使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Version类属于net.wurstclient.update包,在下文中一共展示了Version类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: drawScreen
import net.wurstclient.update.Version; //导入依赖的package包/类
@Override
public void drawScreen(int mouseX, int mouseY, float partialTicks)
{
drawDefaultBackground();
drawCenteredString(fontRendererObj,
"Minecraft 1.12.X Compatibility Mode", width / 2, 20, 0xffffff);
drawCenteredString(fontRendererObj,
"�aCurrent version: " + new Version(
"1.12." + WurstClient.INSTANCE.options.mc112x_compatibility),
width / 2, 80, 0xa0a0a0);
drawCenteredString(fontRendererObj,
"Only one version can be selected at any time.", width / 2, 110,
0xa0a0a0);
drawCenteredString(fontRendererObj,
"Changing this option requires the game to be restarted.",
width / 2, 120, 0xa0a0a0);
super.drawScreen(mouseX, mouseY, partialTicks);
}
示例2: confirmClicked
import net.wurstclient.update.Version; //导入依赖的package包/类
@Override
public void confirmClicked(boolean result, int id)
{
super.confirmClicked(result, id);
// changelog
if(id == 64)
{
if(result)
WurstClient.INSTANCE.analytics.trackEvent("changelog",
"go play");
else
{
MiscUtils.openLink(
new Version(WurstClient.VERSION).getChangelogLink());
WurstClient.INSTANCE.analytics.trackEvent("changelog",
"view changelog");
}
mc.displayGuiScreen(this);
}
}
示例3: confirmClicked
import net.wurstclient.update.Version; //导入依赖的package包/类
@Override
public void confirmClicked(boolean result, int id) {
super.confirmClicked(result, id);
// changelog
if (id == 64) {
if (result)
WurstClient.INSTANCE.analytics.trackEvent("changelog",
"go play");
else {
MiscUtils.openLink(
new Version(WurstClient.VERSION).getChangelogLink());
WurstClient.INSTANCE.analytics.trackEvent("changelog",
"view changelog");
}
mc.displayGuiScreen(this);
}
}
示例4: doPrimaryAction
import net.wurstclient.update.Version; //导入依赖的package包/类
@Override
public void doPrimaryAction()
{
MiscUtils.openLink(new Version(WurstClient.VERSION).getChangelogLink());
}