本文整理匯總了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);
}