本文整理汇总了Java中com.bioxx.tfc.api.Constant.Global.UNKNOWN属性的典型用法代码示例。如果您正苦于以下问题:Java Global.UNKNOWN属性的具体用法?Java Global.UNKNOWN怎么用?Java Global.UNKNOWN使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.bioxx.tfc.api.Constant.Global
的用法示例。
在下文中一共展示了Global.UNKNOWN属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateCurrentAlloy
private void updateCurrentAlloy() {
List<AlloyMetal> a = new ArrayList<AlloyMetal>();
Iterator<MetalPair> iter = metals.values().iterator();
float totalAmount = getTotalMetal();
iter = metals.values().iterator();
while (iter.hasNext()) {
MetalPair m = iter.next();
if (m != null)
a.add(new AlloyMetal(m.type, (m.amount / totalAmount) * 100f));
}
Metal match = AlloyManager.INSTANCE.matchesAlloy(a, Alloy.EnumTier.TierV);
if (match != null) {
currentAlloy = new Alloy(match, totalAmount);
currentAlloy.alloyIngred = a;
} else {
currentAlloy = new Alloy(Global.UNKNOWN, totalAmount);
currentAlloy.alloyIngred = a;
}
}
示例2: getMetalType
@Override
public Metal getMetalType(ItemStack is) {
int meta = is.getItemDamage();
switch (meta) {
case 0:
return Global.PIGIRON;
case 1:
return Global.STEEL;
case 2:
return Global.TIN;
case 3:
return Global.ZINC;
default:
return Global.UNKNOWN;
}
}
示例3: getMetalType
@Override
public Metal getMetalType(ItemStack is)
{
int meta = is.getItemDamage();
switch(meta)
{
case 0: return Global.BISMUTHBRONZE;
case 1: return Global.BLACKBRONZE;
case 2: return Global.BLACKSTEEL;
case 3: return Global.BRASS;
case 4: return Global.BRONZE;
case 5: return Global.REDSTEEL;
default : return Global.UNKNOWN;
}
}
示例4: getMetalType
@Override
public Metal getMetalType(ItemStack is) {
int meta = is.getItemDamage();
switch (meta) {
case 0:
return Global.BISMUTH;
case 1:
return Global.COPPER;
case 2:
return Global.WROUGHTIRON;
case 3:
return Global.LEAD;
case 4:
return Global.NICKEL;
case 5:
return Global.UNKNOWN;
default:
return Global.UNKNOWN;
}
}