mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-16 13:03:12 +01:00
37 lines
1.4 KiB
Java
37 lines
1.4 KiB
Java
/*
|
|
* 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://ellpeck.de/actaddlicense
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
*
|
|
* © 2015-2016 Ellpeck
|
|
*/
|
|
|
|
package de.ellpeck.actuallyadditions.mod.gen;
|
|
|
|
import net.minecraft.util.EnumFacing;
|
|
import net.minecraft.world.gen.structure.StructureComponent;
|
|
import net.minecraft.world.gen.structure.StructureVillagePieces;
|
|
import net.minecraftforge.fml.common.registry.VillagerRegistry;
|
|
|
|
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 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);
|
|
}
|
|
}
|