Search in sources :

Example 1 with ListItemForEmeralds

use of net.minecraft.entity.passive.EntityVillager.ListItemForEmeralds in project pnc-repressurized by TeamPneumatic.

the class VillagerHandler method init.

public static void init() {
    mechanicProfession = new VillagerProfession(Names.MOD_ID + ":mechanic", Textures.VILLAGER_MECHANIC, "minecraft:textures/entity/zombie_villager/zombie_villager.png");
    VillagerCareer career = new VillagerCareer(mechanicProfession, Names.MOD_ID + ".mechanic");
    career.addTrade(1, new ListItemForEmeralds(Itemss.PCB_BLUEPRINT, new PriceInfo(10, 19)), new ListItemForEmeralds(Itemss.NUKE_VIRUS, new PriceInfo(1, 5)), new ListItemForEmeralds(Itemss.STOP_WORM, new PriceInfo(1, 5)));
    for (int i = 0; i < ItemAssemblyProgram.PROGRAMS_AMOUNT; i++) {
        career.addTrade(1, new ListItemForEmeralds(new ItemStack(Itemss.ASSEMBLY_PROGRAM, 1, i), new PriceInfo(5, 11)));
    }
}
Also used : VillagerCareer(net.minecraftforge.fml.common.registry.VillagerRegistry.VillagerCareer) VillagerProfession(net.minecraftforge.fml.common.registry.VillagerRegistry.VillagerProfession) ItemStack(net.minecraft.item.ItemStack) ListItemForEmeralds(net.minecraft.entity.passive.EntityVillager.ListItemForEmeralds) PriceInfo(net.minecraft.entity.passive.EntityVillager.PriceInfo)

Aggregations

ListItemForEmeralds (net.minecraft.entity.passive.EntityVillager.ListItemForEmeralds)1 PriceInfo (net.minecraft.entity.passive.EntityVillager.PriceInfo)1 ItemStack (net.minecraft.item.ItemStack)1 VillagerCareer (net.minecraftforge.fml.common.registry.VillagerRegistry.VillagerCareer)1 VillagerProfession (net.minecraftforge.fml.common.registry.VillagerRegistry.VillagerProfession)1