package buildcraftAdditions.villager; /** * Copyright (c) 2014-2015, AEnterprise * http://buildcraftadditions.wordpress.com/ * Buildcraft Additions is distributed under the terms of GNU GPL v3.0 * Please check the contents of the license located in * http://buildcraftadditions.wordpress.com/wiki/licensing-stuff/ */ import java.util.List; import java.util.Random; import net.minecraft.world.gen.structure.StructureVillagePieces.PieceWeight; import net.minecraft.world.gen.structure.StructureVillagePieces.Start; import cpw.mods.fml.common.registry.VillagerRegistry.IVillageCreationHandler; public class PowerPlantCreationHandeler implements IVillageCreationHandler { @Override public PieceWeight getVillagePieceWeight(Random random, int i) { return new PieceWeight(ComponentPowerPlant.class, 1, 1); } @Override public Class<?> getComponentClass() { return ComponentPowerPlant.class; } @Override public Object buildComponent(PieceWeight villagePiece, Start startPiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5) { return ComponentPowerPlant.buildComponent(startPiece, pieces, random, p1, p2, p3, p4, p5); } }