本文整理汇总了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);
}
示例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);
}