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


Java ModelSpider类代码示例

本文整理汇总了Java中net.minecraft.client.model.ModelSpider的典型用法代码示例。如果您正苦于以下问题:Java ModelSpider类的具体用法?Java ModelSpider怎么用?Java ModelSpider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ModelSpider类属于net.minecraft.client.model包,在下文中一共展示了ModelSpider类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getModelRenderer

import net.minecraft.client.model.ModelSpider; //导入依赖的package包/类
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelSpider))
    {
        return null;
    }
    else
    {
        ModelSpider modelspider = (ModelSpider)model;
        return modelPart.equals("head") ? modelspider.spiderHead : (modelPart.equals("neck") ? modelspider.spiderNeck : (modelPart.equals("body") ? modelspider.spiderBody : (modelPart.equals("leg1") ? modelspider.spiderLeg1 : (modelPart.equals("leg2") ? modelspider.spiderLeg2 : (modelPart.equals("leg3") ? modelspider.spiderLeg3 : (modelPart.equals("leg4") ? modelspider.spiderLeg4 : (modelPart.equals("leg5") ? modelspider.spiderLeg5 : (modelPart.equals("leg6") ? modelspider.spiderLeg6 : (modelPart.equals("leg7") ? modelspider.spiderLeg7 : (modelPart.equals("leg8") ? modelspider.spiderLeg8 : null))))))))));
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:13,代码来源:ModelAdapterSpider.java

示例2: RenderSpider

import net.minecraft.client.model.ModelSpider; //导入依赖的package包/类
public RenderSpider(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSpider(), 1.0F);
    this.addLayer(new LayerSpiderEyes(this));
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:6,代码来源:RenderSpider.java

示例3: makeModel

import net.minecraft.client.model.ModelSpider; //导入依赖的package包/类
public ModelBase makeModel()
{
    return new ModelSpider();
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:ModelAdapterSpider.java

示例4: RenderAmber

import net.minecraft.client.model.ModelSpider; //导入依赖的package包/类
public RenderAmber(){
	this.model = new ModelBlock();
	modelSilverfish = new ModelSilverfish();
	modelSpider = new ModelSpider();
	modelCompsognathus = new ModelCompsognathus();
}
 
开发者ID:Alex-the-666,项目名称:It-s-About-Time-Minecraft-Mod,代码行数:7,代码来源:RenderAmber.java

示例5: RenderSpider

import net.minecraft.client.model.ModelSpider; //导入依赖的package包/类
public RenderSpider()
{
    super(new ModelSpider(), 1.0F);
    this.setRenderPassModel(new ModelSpider());
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:6,代码来源:RenderSpider.java

示例6: RenderRideableSpider

import net.minecraft.client.model.ModelSpider; //导入依赖的package包/类
public RenderRideableSpider()
{
    super(new ModelSpider(), 1.0F);
    this.setRenderPassModel(new ModelSpider());
}
 
开发者ID:Darkona,项目名称:AdventureBackpack2,代码行数:6,代码来源:RenderRideableSpider.java

示例7: RenderNetherSpider

import net.minecraft.client.model.ModelSpider; //导入依赖的package包/类
public RenderNetherSpider()
{
	super(new ModelSpider(), 1.0F);
	this.setRenderPassModel(new ModelSpider());
}
 
开发者ID:AlphaSwittle-Team,项目名称:MinExtension,代码行数:6,代码来源:RenderNetherSpider.java

示例8: RenderAntiSpider

import net.minecraft.client.model.ModelSpider; //导入依赖的package包/类
public RenderAntiSpider(RenderManager manager)
{
	super(manager, new ModelSpider(), 1.0F);
	addLayer(new LayerAntiSpiderEyes(this));
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:6,代码来源:RenderAntiSpider.java

示例9: RenderSpider

import net.minecraft.client.model.ModelSpider; //导入依赖的package包/类
public RenderSpider() {
   super(new ModelSpider(), 1.0F);
   this.func_77042_a(new ModelSpider());
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:5,代码来源:RenderSpider.java

示例10: RenderNyxSpider

import net.minecraft.client.model.ModelSpider; //导入依赖的package包/类
public RenderNyxSpider() {
	super(new ModelSpider(), 1.0F);
	setRenderPassModel(new ModelSpider());
	shadowSize *= 0.8;
}
 
开发者ID:TheDaemoness,项目名称:IceAndShadow2,代码行数:6,代码来源:RenderNyxSpider.java

示例11: getPotentialArm

import net.minecraft.client.model.ModelSpider; //导入依赖的package包/类
public static ModelRenderer getPotentialArm(ModelBase parent)
{
	if(parent != null)
	{
		Class clz = parent.getClass();
           if(armMappings.containsKey(clz))
           {
               return armMappings.get(clz);
           }
		if(clz == ModelHorse.class)
		{
			ModelHorse dummy = new ModelHorse();
			
			ModelRenderer leg = new ModelRenderer(dummy, 60, 29);
	        leg.addBox(-1.1F, -1.0F, -2.1F, 3, 8, 4);
	        leg.setRotationPoint(-4.0F, 9.0F, -8.0F);
	        
	        ModelRenderer shin = new ModelRenderer(dummy, 60, 41);
	        shin.addBox(-1.1F, 0.0F, -1.6F, 3, 5, 3);
	        shin.setRotationPoint(0.0F, 7.0F, 0.0F);
	        leg.addChild(shin);
	        
	        ModelRenderer hoof = new ModelRenderer(dummy, 60, 51);
	        hoof.addBox(-1.6F, 5.1F, -2.1F, 4, 3, 4);
	        hoof.setRotationPoint(0.0F, 0.0F, 0.0F);

	        shin.addChild(hoof);
	        
	        return leg;
		}
		else
		{
			while(clz != ModelBase.class && ModelBase.class.isAssignableFrom(clz))
			{
				try
				{
					Field[] fields = clz.getDeclaredFields();
					for(Field f : fields)
					{
						f.setAccessible(true);
						if(f.getType() == ModelRenderer.class)
						{
							if(clz == ModelBiped.class && (f.getName().equalsIgnoreCase("bipedRightArm") || f.getName().equalsIgnoreCase("f") || f.getName().equalsIgnoreCase("field_78112_f")) || 
								clz == ModelQuadruped.class && (f.getName().equalsIgnoreCase("leg3") || f.getName().equalsIgnoreCase("e") || f.getName().equalsIgnoreCase("field_78147_e")) ||
								clz == ModelCreeper.class && (f.getName().equalsIgnoreCase("leg3") || f.getName().equalsIgnoreCase("f") || f.getName().equalsIgnoreCase("field_78129_f")) ||
								clz == ModelIronGolem.class && (f.getName().equalsIgnoreCase("ironGolemRightArm") || f.getName().equalsIgnoreCase("c") || f.getName().equalsIgnoreCase("field_78177_c")) ||
								clz == ModelSpider.class && (f.getName().equalsIgnoreCase("spiderLeg7") || f.getName().equalsIgnoreCase("j") || f.getName().equalsIgnoreCase("field_78210_j")) ||
								clz == ModelWolf.class && (f.getName().equalsIgnoreCase("wolfLeg3") || f.getName().equalsIgnoreCase("e") || f.getName().equalsIgnoreCase("field_78182_e")) ||
								clz == ModelOcelot.class && (f.getName().equalsIgnoreCase("ocelotFrontRightLeg") || f.getName().equalsIgnoreCase("d") || f.getName().equalsIgnoreCase("field_78157_d")) ||
								clz != ModelBiped.class && clz != ModelQuadruped.class && clz != ModelCreeper.class && clz != ModelIronGolem.class && clz != ModelSpider.class && clz != ModelWolf.class && clz != ModelOcelot.class &&  
								(f.getName().contains("Right") || f.getName().contains("right")) && (f.getName().contains("arm") || f.getName().contains("hand") || f.getName().contains("Arm") || f.getName().contains("Hand")))
							{
								ModelRenderer arm = (ModelRenderer)f.get(parent);
								if(arm != null)
								{
									return arm; // Add normal parent fields
								}
							}
						}
						else if(f.getType() == ModelRenderer[].class && clz == ModelSquid.class && (f.getName().equalsIgnoreCase("squidTentacles") || f.getName().equalsIgnoreCase("b") || f.getName().equalsIgnoreCase("field_78201_b")))
						{
							return ((ModelRenderer[])f.get(parent))[0];
						}
					}
					clz = clz.getSuperclass();
				}
				catch(Exception e)
				{
					throw new UnableToAccessFieldException(new String[0], e);
				}
			}
		}
	}

	return null;
}
 
开发者ID:iChun,项目名称:Morph,代码行数:77,代码来源:ModelHelper.java


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