2015-08-29 14:33:25 +02:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("VillageJamHouseHandler.java") is part of the Actually Additions mod for Minecraft.
|
2015-08-29 14:33:25 +02:00
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
2016-05-16 22:52:27 +02:00
|
|
|
* http://ellpeck.de/actaddlicense
|
2015-08-29 14:33:25 +02:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2016-05-16 22:54:42 +02:00
|
|
|
* © 2015-2016 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.gen;
|
2015-04-06 15:51:59 +02:00
|
|
|
|
2016-05-07 12:55:59 +02:00
|
|
|
import net.minecraft.util.EnumFacing;
|
|
|
|
import net.minecraft.world.gen.structure.StructureComponent;
|
2015-04-06 15:51:59 +02:00
|
|
|
import net.minecraft.world.gen.structure.StructureVillagePieces;
|
2016-01-07 18:20:59 +01:00
|
|
|
import net.minecraftforge.fml.common.registry.VillagerRegistry;
|
2015-04-06 15:51:59 +02:00
|
|
|
|
2016-05-07 12:55:59 +02:00
|
|
|
import java.util.List;
|
2015-04-06 15:51:59 +02:00
|
|
|
import java.util.Random;
|
|
|
|
|
2016-05-07 12:55:59 +02:00
|
|
|
public class VillageJamHouseHandler implements VillagerRegistry.IVillageCreationHandler{
|
2015-04-06 15:51:59 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public StructureVillagePieces.PieceWeight getVillagePieceWeight(Random random, int i){
|
|
|
|
return new StructureVillagePieces.PieceWeight(VillageComponentJamHouse.class, 5, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Class<?> getComponentClass(){
|
|
|
|
return VillageComponentJamHouse.class;
|
|
|
|
}
|
|
|
|
|
2016-05-07 12:55:59 +02:00
|
|
|
@Override
|
|
|
|
public StructureVillagePieces.Village buildComponent(StructureVillagePieces.PieceWeight villagePiece, StructureVillagePieces.Start startPiece, List<StructureComponent> pieces, Random random, int p1, int p2, int p3, EnumFacing facing, int p5){
|
|
|
|
return VillageComponentJamHouse.buildComponent(pieces, p1, p2, p3, facing);
|
|
|
|
}
|
2015-04-06 15:51:59 +02:00
|
|
|
}
|