Search in sources :

Example 1 with BasicTradeFactory

use of chronosacaria.mcda.factories.BasicTradeFactory in project MCDungeonsArmors by chronosacaria.

the class TradesRegistry method registerVillagerOffers.

public static void registerVillagerOffers() {
    TradeOfferHelper.registerVillagerOffers(VillagerProfession.ARMORER, 5, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 64), new ItemStack(ArmorsRegistry.armorItems.get(ArmorSets.CHAMPION).get(EquipmentSlot.HEAD)), 1, 30, 0.2F))));
    TradeOfferHelper.registerVillagerOffers(VillagerProfession.ARMORER, 5, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 64), new ItemStack(ArmorsRegistry.armorItems.get(ArmorSets.CHAMPION).get(EquipmentSlot.CHEST)), 1, 30, 0.2F))));
    TradeOfferHelper.registerVillagerOffers(VillagerProfession.ARMORER, 5, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 64), new ItemStack(ArmorsRegistry.armorItems.get(ArmorSets.CHAMPION).get(EquipmentSlot.LEGS)), 1, 30, 0.2F))));
    TradeOfferHelper.registerVillagerOffers(VillagerProfession.ARMORER, 5, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 64), new ItemStack(ArmorsRegistry.armorItems.get(ArmorSets.CHAMPION).get(EquipmentSlot.FEET)), 1, 30, 0.2F))));
}
Also used : BasicTradeFactory(chronosacaria.mcda.factories.BasicTradeFactory) ItemStack(net.minecraft.item.ItemStack) TradeOffer(net.minecraft.village.TradeOffer)

Example 2 with BasicTradeFactory

use of chronosacaria.mcda.factories.BasicTradeFactory in project MCDungeonsArmors by chronosacaria.

the class TradesRegistry method registerWanderingTrades.

public static void registerWanderingTrades() {
    TradeOfferHelper.registerWanderingTraderOffers(1, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 64), new ItemStack(ArmorsRegistry.armorItems.get(ArmorSets.ENTERTAINER).get(EquipmentSlot.HEAD), 1), 1, 2, 0.0F))));
    TradeOfferHelper.registerWanderingTraderOffers(1, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 64), new ItemStack(ArmorsRegistry.armorItems.get(ArmorSets.ENTERTAINER).get(EquipmentSlot.CHEST), 1), 1, 2, 0.0F))));
    TradeOfferHelper.registerWanderingTraderOffers(1, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 64), new ItemStack(ArmorsRegistry.armorItems.get(ArmorSets.ENTERTAINER).get(EquipmentSlot.LEGS), 1), 1, 2, 0.0F))));
    TradeOfferHelper.registerWanderingTraderOffers(1, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 64), new ItemStack(ArmorsRegistry.armorItems.get(ArmorSets.ENTERTAINER).get(EquipmentSlot.FEET), 1), 1, 2, 0.0F))));
    TradeOfferHelper.registerWanderingTraderOffers(1, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 16), new ItemStack(ItemsRegistry.items.get(ItemID.FOX_PELT), 1), 1, 2, 0.0F))));
    TradeOfferHelper.registerWanderingTraderOffers(1, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 24), new ItemStack(ItemsRegistry.items.get(ItemID.FOX_PELT_ARCTIC), 1), 1, 2, 0.0F))));
    TradeOfferHelper.registerWanderingTraderOffers(1, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 16), new ItemStack(ItemsRegistry.items.get(ItemID.OCELOT_PELT), 1), 4, 2, 0.0F))));
    TradeOfferHelper.registerWanderingTraderOffers(1, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 24), new ItemStack(ItemsRegistry.items.get(ItemID.OCELOT_PELT_BLACK), 1), 1, 2, 0.0F))));
    TradeOfferHelper.registerWanderingTraderOffers(1, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 16), new ItemStack(ItemsRegistry.items.get(ItemID.WOLF_PELT), 1), 4, 2, 0.0F))));
    TradeOfferHelper.registerWanderingTraderOffers(1, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 24), new ItemStack(ItemsRegistry.items.get(ItemID.WOLF_PELT_BLACK), 1), 1, 2, 0.0F))));
    TradeOfferHelper.registerWanderingTraderOffers(1, factories -> factories.add(new BasicTradeFactory(new TradeOffer(new ItemStack(Items.EMERALD, 16), new ItemStack(ItemsRegistry.items.get(ItemID.GOAT_PELT), 1), 4, 2, 0.0F))));
}
Also used : BasicTradeFactory(chronosacaria.mcda.factories.BasicTradeFactory) ItemStack(net.minecraft.item.ItemStack) TradeOffer(net.minecraft.village.TradeOffer)

Aggregations

BasicTradeFactory (chronosacaria.mcda.factories.BasicTradeFactory)2 ItemStack (net.minecraft.item.ItemStack)2 TradeOffer (net.minecraft.village.TradeOffer)2