Java 类net.minecraft.world.gen.structure.ComponentScatteredFeaturePieces.DesertPyramid 实例源码

项目:TRHS_Club_Mod_2016    文件:ChestGenHooks.java   
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);
}
项目:CauldronGit    文件:ChestGenHooks.java   
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);
}
项目:Cauldron    文件:ChestGenHooks.java   
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);
}
项目:Cauldron    文件:ChestGenHooks.java   
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);
}
项目:Cauldron    文件:ChestGenHooks.java   
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);
}