當前位置: 首頁>>代碼示例>>Java>>正文


Java ChestGenHooks.STRONGHOLD_CROSSING屬性代碼示例

本文整理匯總了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;
}
 
開發者ID:jaquadro,項目名稱:GardenCollection,代碼行數:20,代碼來源:ConfigManager.java

示例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;
}
 
開發者ID:GTNewHorizons,項目名稱:GalacticGregGT5,代碼行數:42,代碼來源:DynamicDimensionConfig.java


注:本文中的net.minecraftforge.common.ChestGenHooks.STRONGHOLD_CROSSING屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。