use of net.silentchaos512.gear.gear.part.LazyPartData in project Silent-Gear by SilentChaos512.
the class ModGiftLootTables method accept.
@Override
public void accept(BiConsumer<ResourceLocation, LootTable.Builder> p_accept_1_) {
p_accept_1_.accept(ModItems.BLUEPRINT_PACKAGE.get().getDefaultLootTable(), LootTable.lootTable().withPool(LootPool.lootPool().add(LootItem.lootTableItem(ModItems.ROD_BLUEPRINT))).withPool(LootPool.lootPool().add(LootItem.lootTableItem(ModItems.PICKAXE_BLUEPRINT))).withPool(LootPool.lootPool().add(LootItem.lootTableItem(ModItems.SHOVEL_BLUEPRINT))).withPool(LootPool.lootPool().add(LootItem.lootTableItem(ModItems.AXE_BLUEPRINT))).withPool(LootPool.lootPool().add(LootItem.lootTableItem(ModItems.KNIFE_BLUEPRINT))).withPool(LootPool.lootPool().add(LootItem.lootTableItem(ModItems.SWORD_BLUEPRINT).setWeight(11)).add(LootItem.lootTableItem(ModItems.KATANA_BLUEPRINT).setWeight(5)).add(LootItem.lootTableItem(ModItems.MACHETE_BLUEPRINT).setWeight(7)).add(LootItem.lootTableItem(ModItems.SPEAR_BLUEPRINT).setWeight(8))).withPool(LootPool.lootPool().add(LootItem.lootTableItem(ModItems.SHIELD_BLUEPRINT))));
for (Item item : Registration.getItems(item -> item instanceof ICoreItem)) {
p_accept_1_.accept(SilentGear.getId("random_gear/" + NameUtils.from(item).getPath()), LootTable.lootTable().withPool(LootPool.lootPool().add(LootItem.lootTableItem(item).setWeight(3).apply(SelectGearTierLootFunction.builder(1))).add(LootItem.lootTableItem(item).setWeight(5).apply(SelectGearTierLootFunction.builder(2))).add(LootItem.lootTableItem(item).setWeight(2).apply(SelectGearTierLootFunction.builder(3)))));
}
// FIXME
p_accept_1_.accept(SilentGear.getId("test/ldf_mallet"), LootTable.lootTable().withPool(LootPool.lootPool().add(LootItem.lootTableItem(ModItems.HAMMER).apply(SetPartsFunction.builder(ImmutableList.of(new LazyPartData(SilentGear.getId("main/diamond")), new LazyPartData(SilentGear.getId("main/diamond")), new LazyPartData(SilentGear.getId("main/emerald")), new LazyPartData(SilentGear.getId("rod/blaze")), new LazyPartData(SilentGear.getId("tip/redstone"))))).apply(() -> setName(new TextComponent("Loliberty Defense Force Mallet"))).apply(() -> setLore(ImmutableList.of(new TextComponent("Standard Issue"), new TextComponent("Protectors of Free Speech")))))));
}
Aggregations