当前位置: 首页>>代码示例>>Java>>正文


Java VillagerRegistry.getVillageComponent方法代码示例

本文整理汇总了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;
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:49,代码来源:StructureVillagePieces.java

示例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;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:49,代码来源:StructureVillagePieces.java


注:本文中的cpw.mods.fml.common.registry.VillagerRegistry.getVillageComponent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。