本文整理匯總了Java中net.minecraftforge.common.ChestGenHooks.MINESHAFT_CORRIDOR屬性的典型用法代碼示例。如果您正苦於以下問題:Java ChestGenHooks.MINESHAFT_CORRIDOR屬性的具體用法?Java ChestGenHooks.MINESHAFT_CORRIDOR怎麽用?Java ChestGenHooks.MINESHAFT_CORRIDOR使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類net.minecraftforge.common.ChestGenHooks
的用法示例。
在下文中一共展示了ChestGenHooks.MINESHAFT_CORRIDOR屬性的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;
}