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


Java JunglePyramid類代碼示例

本文整理匯總了Java中net.minecraft.world.gen.structure.ComponentScatteredFeaturePieces.JunglePyramid的典型用法代碼示例。如果您正苦於以下問題:Java JunglePyramid類的具體用法?Java JunglePyramid怎麽用?Java JunglePyramid使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


JunglePyramid類屬於net.minecraft.world.gen.structure.ComponentScatteredFeaturePieces包,在下文中一共展示了JunglePyramid類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: init

import net.minecraft.world.gen.structure.ComponentScatteredFeaturePieces.JunglePyramid; //導入依賴的package包/類
private static void init()
{
    if (hasInit)
    {
        return;
    }

    hasInit = true;

    addInfo(MINESHAFT_CORRIDOR,       StructureMineshaftPieces.field_78818_a,   3,  7);
    addInfo(PYRAMID_DESERT_CHEST,     DesertPyramid.field_74941_i,             2,  7);
    addInfo(PYRAMID_JUNGLE_CHEST,     JunglePyramid.field_74943_l,         2,  7);
    addInfo(PYRAMID_JUNGLE_DISPENSER, JunglePyramid.field_74944_m,     2,  2);
    addInfo(STRONGHOLD_CORRIDOR,      ChestCorridor.field_75003_a,             2,  4);
    addInfo(STRONGHOLD_LIBRARY,       Library.field_75007_b,            1,  5);
    addInfo(STRONGHOLD_CROSSING,      RoomCrossing.field_75014_c,  1,  5);
    addInfo(VILLAGE_BLACKSMITH,       House2.field_74918_a,             3,  9);
    addInfo(BONUS_CHEST,              WorldServer.field_73069_S,                    10, 10);
    addInfo(DUNGEON_CHEST,            WorldGenDungeons.field_111189_a,                   8,  8);

    ItemStack book = new ItemStack(Items.field_151134_bR, 1, 0);
    WeightedRandomChestContent tmp = new WeightedRandomChestContent(book, 1, 1, 1);
    getInfo(MINESHAFT_CORRIDOR  ).addItem(tmp);
    getInfo(PYRAMID_DESERT_CHEST).addItem(tmp);
    getInfo(PYRAMID_JUNGLE_CHEST).addItem(tmp);
    getInfo(STRONGHOLD_CORRIDOR ).addItem(tmp);
    getInfo(STRONGHOLD_LIBRARY  ).addItem(new WeightedRandomChestContent(book, 1, 5, 2));
    getInfo(STRONGHOLD_CROSSING ).addItem(tmp);
    getInfo(DUNGEON_CHEST       ).addItem(tmp);
}
 
開發者ID:SchrodingersSpy,項目名稱:TRHS_Club_Mod_2016,代碼行數:31,代碼來源:ChestGenHooks.java

示例2: init

import net.minecraft.world.gen.structure.ComponentScatteredFeaturePieces.JunglePyramid; //導入依賴的package包/類
private static void init()
{
    if (hasInit)
    {
        return;
    }

    hasInit = true;

    addInfo(MINESHAFT_CORRIDOR,       StructureMineshaftPieces.mineshaftChestContents,   3,  7);
    addInfo(PYRAMID_DESERT_CHEST,     DesertPyramid.itemsToGenerateInTemple,             2,  7);
    addInfo(PYRAMID_JUNGLE_CHEST,     JunglePyramid.junglePyramidsChestContents,         2,  7);
    addInfo(PYRAMID_JUNGLE_DISPENSER, JunglePyramid.junglePyramidsDispenserContents,     2,  2);
    addInfo(STRONGHOLD_CORRIDOR,      ChestCorridor.strongholdChestContents,             2,  4);
    addInfo(STRONGHOLD_LIBRARY,       Library.strongholdLibraryChestContents,            1,  5);
    addInfo(STRONGHOLD_CROSSING,      RoomCrossing.strongholdRoomCrossingChestContents,  1,  5);
    addInfo(VILLAGE_BLACKSMITH,       House2.villageBlacksmithChestContents,             3,  9);
    addInfo(BONUS_CHEST,              WorldServer.bonusChestContent,                    10, 10);
    addInfo(DUNGEON_CHEST,            WorldGenDungeons.field_111189_a,                   8,  8);

    ItemStack book = new ItemStack(Items.enchanted_book, 1, 0);
    WeightedRandomChestContent tmp = new WeightedRandomChestContent(book, 1, 1, 1);
    getInfo(MINESHAFT_CORRIDOR  ).addItem(tmp);
    getInfo(PYRAMID_DESERT_CHEST).addItem(tmp);
    getInfo(PYRAMID_JUNGLE_CHEST).addItem(tmp);
    getInfo(STRONGHOLD_CORRIDOR ).addItem(tmp);
    getInfo(STRONGHOLD_LIBRARY  ).addItem(new WeightedRandomChestContent(book, 1, 5, 2));
    getInfo(STRONGHOLD_CROSSING ).addItem(tmp);
    getInfo(DUNGEON_CHEST       ).addItem(tmp);
}
 
開發者ID:alexandrage,項目名稱:CauldronGit,代碼行數:31,代碼來源:ChestGenHooks.java


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