本文整理汇总了Java中cpw.mods.fml.common.registry.VillagerRegistry.getVillageComponent方法的典型用法代码示例。如果您正苦于以下问题:Java VillagerRegistry.getVillageComponent方法的具体用法?Java VillagerRegistry.getVillageComponent怎么用?Java VillagerRegistry.getVillageComponent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cpw.mods.fml.common.registry.VillagerRegistry
的用法示例。
在下文中一共展示了VillagerRegistry.getVillageComponent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_75083_a
import cpw.mods.fml.common.registry.VillagerRegistry; //导入方法依赖的package包/类
private static StructureVillagePieces.Village func_75083_a(StructureVillagePieces.Start p_75083_0_, StructureVillagePieces.PieceWeight p_75083_1_, List p_75083_2_, Random p_75083_3_, int p_75083_4_, int p_75083_5_, int p_75083_6_, int p_75083_7_, int p_75083_8_)
{
Class oclass = p_75083_1_.villagePieceClass;
Object object = null;
if (oclass == StructureVillagePieces.House4Garden.class)
{
object = StructureVillagePieces.House4Garden.func_74912_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
}
else if (oclass == StructureVillagePieces.Church.class)
{
object = StructureVillagePieces.Church.func_74919_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
}
else if (oclass == StructureVillagePieces.House1.class)
{
object = StructureVillagePieces.House1.func_74898_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
}
else if (oclass == StructureVillagePieces.WoodHut.class)
{
object = StructureVillagePieces.WoodHut.func_74908_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
}
else if (oclass == StructureVillagePieces.Hall.class)
{
object = StructureVillagePieces.Hall.func_74906_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
}
else if (oclass == StructureVillagePieces.Field1.class)
{
object = StructureVillagePieces.Field1.func_74900_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
}
else if (oclass == StructureVillagePieces.Field2.class)
{
object = StructureVillagePieces.Field2.func_74902_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
}
else if (oclass == StructureVillagePieces.House2.class)
{
object = StructureVillagePieces.House2.func_74915_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
}
else if (oclass == StructureVillagePieces.House3.class)
{
object = StructureVillagePieces.House3.func_74921_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
}
else
{
object = VillagerRegistry.getVillageComponent(p_75083_1_, p_75083_0_ , p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
}
return (StructureVillagePieces.Village)object;
}
示例2: func_75083_a
import cpw.mods.fml.common.registry.VillagerRegistry; //导入方法依赖的package包/类
private static ComponentVillage func_75083_a(ComponentVillageStartPiece par0ComponentVillageStartPiece, StructureVillagePieceWeight par1StructureVillagePieceWeight, List par2List, Random par3Random, int par4, int par5, int par6, int par7, int par8)
{
Class oclass = par1StructureVillagePieceWeight.villagePieceClass;
Object object = null;
if (oclass == ComponentVillageHouse4_Garden.class)
{
object = ComponentVillageHouse4_Garden.func_74912_a(par0ComponentVillageStartPiece, par2List, par3Random, par4, par5, par6, par7, par8);
}
else if (oclass == ComponentVillageChurch.class)
{
object = ComponentVillageChurch.func_74919_a(par0ComponentVillageStartPiece, par2List, par3Random, par4, par5, par6, par7, par8);
}
else if (oclass == ComponentVillageHouse1.class)
{
object = ComponentVillageHouse1.func_74898_a(par0ComponentVillageStartPiece, par2List, par3Random, par4, par5, par6, par7, par8);
}
else if (oclass == ComponentVillageWoodHut.class)
{
object = ComponentVillageWoodHut.func_74908_a(par0ComponentVillageStartPiece, par2List, par3Random, par4, par5, par6, par7, par8);
}
else if (oclass == ComponentVillageHall.class)
{
object = ComponentVillageHall.func_74906_a(par0ComponentVillageStartPiece, par2List, par3Random, par4, par5, par6, par7, par8);
}
else if (oclass == ComponentVillageField.class)
{
object = ComponentVillageField.func_74900_a(par0ComponentVillageStartPiece, par2List, par3Random, par4, par5, par6, par7, par8);
}
else if (oclass == ComponentVillageField2.class)
{
object = ComponentVillageField2.func_74902_a(par0ComponentVillageStartPiece, par2List, par3Random, par4, par5, par6, par7, par8);
}
else if (oclass == ComponentVillageHouse2.class)
{
object = ComponentVillageHouse2.func_74915_a(par0ComponentVillageStartPiece, par2List, par3Random, par4, par5, par6, par7, par8);
}
else if (oclass == ComponentVillageHouse3.class)
{
object = ComponentVillageHouse3.func_74921_a(par0ComponentVillageStartPiece, par2List, par3Random, par4, par5, par6, par7, par8);
}
else
{
object = VillagerRegistry.getVillageComponent(par1StructureVillagePieceWeight, par0ComponentVillageStartPiece , par2List, par3Random, par4, par5, par6, par7, par8);
}
return (ComponentVillage)object;
}