本文整理汇总了Java中net.minecraftforge.common.ChestGenHooks.STRONGHOLD_CROSSING属性的典型用法代码示例。如果您正苦于以下问题:Java ChestGenHooks.STRONGHOLD_CROSSING属性的具体用法?Java ChestGenHooks.STRONGHOLD_CROSSING怎么用?Java ChestGenHooks.STRONGHOLD_CROSSING使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类net.minecraftforge.common.ChestGenHooks
的用法示例。
在下文中一共展示了ChestGenHooks.STRONGHOLD_CROSSING属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mapGenLocation
private String mapGenLocation (String location) {
if (location.equals("mineshaftCorridor"))
return ChestGenHooks.MINESHAFT_CORRIDOR;
if (location.equals("pyramidDesertChest"))
return ChestGenHooks.PYRAMID_DESERT_CHEST;
if (location.equals("pyramidJungleChest"))
return ChestGenHooks.PYRAMID_JUNGLE_CHEST;
if (location.equals("strongholdCorridor"))
return ChestGenHooks.STRONGHOLD_CORRIDOR;
if (location.equals("strongholdLibrary"))
return ChestGenHooks.STRONGHOLD_LIBRARY;
if (location.equals("strongholdCrossing"))
return ChestGenHooks.STRONGHOLD_CROSSING;
if (location.equals("villageBlacksmith"))
return ChestGenHooks.VILLAGE_BLACKSMITH;
if (location.equals("dungeonChest"))
return ChestGenHooks.DUNGEON_CHEST;
return null;
}
示例2: getLootChestTable
/**
* Convert numbers to actual loot-table entries
* @param pACfg
* @return
*/
public static String getLootChestTable(AsteroidConfig pACfg)
{
String tLootTable = ChestGenHooks.MINESHAFT_CORRIDOR;
switch(pACfg.LootChestTable)
{
case 2:
tLootTable = ChestGenHooks.PYRAMID_DESERT_CHEST;
break;
case 3:
tLootTable = ChestGenHooks.PYRAMID_JUNGLE_CHEST;
break;
case 4:
tLootTable = ChestGenHooks.PYRAMID_JUNGLE_DISPENSER;
break;
case 5:
tLootTable = ChestGenHooks.STRONGHOLD_CORRIDOR;
break;
case 6:
tLootTable = ChestGenHooks.STRONGHOLD_LIBRARY;
break;
case 7:
tLootTable = ChestGenHooks.STRONGHOLD_CROSSING;
break;
case 8:
tLootTable = ChestGenHooks.VILLAGE_BLACKSMITH;
break;
case 9:
tLootTable = ChestGenHooks.BONUS_CHEST;
break;
case 10:
tLootTable = ChestGenHooks.DUNGEON_CHEST;
break;
}
return tLootTable;
}