2015-08-29 14:33:25 +02:00
|
|
|
|
/*
|
|
|
|
|
* This file ("VillageJamHouseHandler.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
|
*
|
|
|
|
|
* <EFBFBD> 2015 Ellpeck
|
|
|
|
|
*/
|
|
|
|
|
|
2015-04-06 15:51:59 +02:00
|
|
|
|
package ellpeck.actuallyadditions.gen;
|
|
|
|
|
|
|
|
|
|
import cpw.mods.fml.common.registry.VillagerRegistry;
|
|
|
|
|
import net.minecraft.world.gen.structure.StructureVillagePieces;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
|
|
public class VillageJamHouseHandler implements VillagerRegistry.IVillageCreationHandler{
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public StructureVillagePieces.PieceWeight getVillagePieceWeight(Random random, int i){
|
|
|
|
|
return new StructureVillagePieces.PieceWeight(VillageComponentJamHouse.class, 5, 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Class<?> getComponentClass(){
|
|
|
|
|
return VillageComponentJamHouse.class;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Object buildComponent(StructureVillagePieces.PieceWeight villagePiece, StructureVillagePieces.Start startPiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5){
|
|
|
|
|
return VillageComponentJamHouse.buildComponent(pieces, p1, p2, p3, p4);
|
|
|
|
|
}
|
|
|
|
|
}
|