Package powercrystals.minefactoryreloaded.setup.village

Source Code of powercrystals.minefactoryreloaded.setup.village.VillageCreationHandler

package powercrystals.minefactoryreloaded.setup.village;

import java.util.List;
import java.util.Random;

import net.minecraft.world.gen.structure.ComponentVillageStartPiece;
import net.minecraft.world.gen.structure.StructureVillagePieceWeight;
import cpw.mods.fml.common.registry.VillagerRegistry.IVillageCreationHandler;

public class VillageCreationHandler implements IVillageCreationHandler
{
  @Override
  public StructureVillagePieceWeight getVillagePieceWeight(Random random, int i)
  {
    return new StructureVillagePieceWeight(ComponentZoologistHouse.class, 20, random.nextInt(1) + i);
  }
 
  @Override
  public Class<?> getComponentClass()
  {
    return ComponentZoologistHouse.class;
  }
 
  @SuppressWarnings("rawtypes")
  @Override
  public Object buildComponent(StructureVillagePieceWeight villagePiece, ComponentVillageStartPiece startPiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5)
  {
    return ComponentZoologistHouse.buildComponent(villagePiece, startPiece, pieces, random, p1, p2, p3, p4, p5);
  }
}
TOP

Related Classes of powercrystals.minefactoryreloaded.setup.village.VillageCreationHandler

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.