All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.magistuarmory.misc.ModMerchOffers Maven / Gradle / Ivy

There is a newer version: 8.10
Show newest version
package com.magistuarmory.misc;

import com.magistuarmory.item.ModItems;
import dev.architectury.registry.level.entity.trade.SimpleTrade;
import dev.architectury.registry.level.entity.trade.TradeRegistry;
import net.minecraft.class_1799;
import net.minecraft.class_1802;
import net.minecraft.class_3852;
import net.minecraft.class_3853;

public class ModMerchOffers
{
	public static class_3853.class_1652[] SHEPHERD_TRADES;
	public static class_3853.class_1652[] WANDERING_TRADER_TRADES;
	
	public static void setup()
	{
		SHEPHERD_TRADES = new class_3853.class_1652[]{
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.APOSTOLIC_CROSS_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.BOWL_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.BULL_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.CHESS_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.CRUSADER_CROSS_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.DRAGON_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.EAGLE_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.HORSE_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.LILY_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.LION1_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.LION2_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.ORTHODOX_CROSS_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.SNAKE_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.SUN_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.SWORDS_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.TOWER_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.TREE_PATTERN.get()), 7, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.TWOHEADED_EAGLE_PATTERN.get()), 7, 0, 1),
		};

		WANDERING_TRADER_TRADES = new class_3853.class_1652[] {
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.GAZELLE_HORNS_DECORATION.get()), 3, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.DUCK_DECORATION.get()), 3, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.HORSE_DECORATION.get()), 3, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687, 10), class_1799.field_8037, new class_1799(ModItems.CROWN_DECORATION.get()), 1, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.UNICORN_DECORATION.get()), 3, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.BULLHORNS_DECORATION.get()), 3, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.DRAGON_DECORATION.get()), 3, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687, 8), class_1799.field_8037, new class_1799(ModItems.MINICROWN.get()), 1, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.ANTLERS_DECORATION.get()), 3, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.BEAR_DECORATION.get()), 3, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.LILY_DECORATION.get()), 3, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.LION_DECORATION.get()), 3, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.DEMON_HORNS_DECORATION.get()), 3, 0, 1),
			new SimpleTrade(new class_1799(class_1802.field_8687), class_1799.field_8037, new class_1799(ModItems.GRIFFIN_DECORATION.get()), 3, 0, 1),
		};
		
		TradeRegistry.registerVillagerTrade(class_3852.field_17063, 1, ModMerchOffers.SHEPHERD_TRADES);
		TradeRegistry.registerTradeForWanderingTrader(false, ModMerchOffers.WANDERING_TRADER_TRADES);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy