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


Java RenderPlayer.renderRightArm方法代码示例

本文整理汇总了Java中net.minecraft.client.renderer.entity.RenderPlayer.renderRightArm方法的典型用法代码示例。如果您正苦于以下问题:Java RenderPlayer.renderRightArm方法的具体用法?Java RenderPlayer.renderRightArm怎么用?Java RenderPlayer.renderRightArm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.client.renderer.entity.RenderPlayer的用法示例。


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

示例1: renderArm

import net.minecraft.client.renderer.entity.RenderPlayer; //导入方法依赖的package包/类
private static void renderArm(EnumHandSide p_187455_1_) {
	Minecraft mc = Minecraft.getMinecraft();

	mc.getTextureManager().bindTexture(mc.player.getLocationSkin());
	Render<AbstractClientPlayer> render = mc.getRenderManager()
			.<AbstractClientPlayer>getEntityRenderObject(mc.player);
	RenderPlayer renderplayer = (RenderPlayer) render;
	GlStateManager.pushMatrix();
	float f = p_187455_1_ == EnumHandSide.RIGHT ? 1.0F : -1.0F;
	GlStateManager.rotate(92.0F, 0.0F, 1.0F, 0.0F);
	GlStateManager.rotate(45.0F, 1.0F, 0.0F, 0.0F);
	GlStateManager.rotate(f * -41.0F, 0.0F, 0.0F, 1.0F);
	GlStateManager.translate(f * 0.3F, -1.1F, 0.45F);

	if (p_187455_1_ == EnumHandSide.RIGHT) {
		renderplayer.renderRightArm(mc.player);
	} else {
		renderplayer.renderLeftArm(mc.player);
	}

	GlStateManager.popMatrix();
}
 
开发者ID:the-realest-stu,项目名称:Etheric,代码行数:23,代码来源:SeeingStoneHandler.java

示例2: func_178095_a

import net.minecraft.client.renderer.entity.RenderPlayer; //导入方法依赖的package包/类
private void func_178095_a(AbstractClientPlayer clientPlayer, float p_178095_2_, float p_178095_3_)
{
    float f = -0.3F * MathHelper.sin(MathHelper.sqrt_float(p_178095_3_) * (float)Math.PI);
    float f1 = 0.4F * MathHelper.sin(MathHelper.sqrt_float(p_178095_3_) * (float)Math.PI * 2.0F);
    float f2 = -0.4F * MathHelper.sin(p_178095_3_ * (float)Math.PI);
    GlStateManager.translate(f, f1, f2);
    GlStateManager.translate(0.64000005F, -0.6F, -0.71999997F);
    GlStateManager.translate(0.0F, p_178095_2_ * -0.6F, 0.0F);
    GlStateManager.rotate(45.0F, 0.0F, 1.0F, 0.0F);
    float f3 = MathHelper.sin(p_178095_3_ * p_178095_3_ * (float)Math.PI);
    float f4 = MathHelper.sin(MathHelper.sqrt_float(p_178095_3_) * (float)Math.PI);
    GlStateManager.rotate(f4 * 70.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(f3 * -20.0F, 0.0F, 0.0F, 1.0F);
    this.mc.getTextureManager().bindTexture(clientPlayer.getLocationSkin());
    GlStateManager.translate(-1.0F, 3.6F, 3.5F);
    GlStateManager.rotate(120.0F, 0.0F, 0.0F, 1.0F);
    GlStateManager.rotate(200.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.rotate(-135.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.scale(1.0F, 1.0F, 1.0F);
    GlStateManager.translate(5.6F, 0.0F, 0.0F);
    Render<AbstractClientPlayer> render = this.renderManager.<AbstractClientPlayer>getEntityRenderObject(this.mc.thePlayer);
    GlStateManager.disableCull();
    RenderPlayer renderplayer = (RenderPlayer)render;
    renderplayer.renderRightArm(this.mc.thePlayer);
    GlStateManager.enableCull();
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:27,代码来源:ItemRenderer.java

示例3: func_178095_a

import net.minecraft.client.renderer.entity.RenderPlayer; //导入方法依赖的package包/类
private void func_178095_a(AbstractClientPlayer clientPlayer, float p_178095_2_, float p_178095_3_)
{
    float f = -0.3F * MathHelper.sin(MathHelper.sqrt_float(p_178095_3_) * (float)Math.PI);
    float f1 = 0.4F * MathHelper.sin(MathHelper.sqrt_float(p_178095_3_) * (float)Math.PI * 2.0F);
    float f2 = -0.4F * MathHelper.sin(p_178095_3_ * (float)Math.PI);
    GlStateManager.translate(f, f1, f2);
    GlStateManager.translate(0.64000005F, -0.6F, -0.71999997F);
    GlStateManager.translate(0.0F, p_178095_2_ * -0.6F, 0.0F);
    GlStateManager.rotate(45.0F, 0.0F, 1.0F, 0.0F);
    float f3 = MathHelper.sin(p_178095_3_ * p_178095_3_ * (float)Math.PI);
    float f4 = MathHelper.sin(MathHelper.sqrt_float(p_178095_3_) * (float)Math.PI);
    GlStateManager.rotate(f4 * 70.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(f3 * -20.0F, 0.0F, 0.0F, 1.0F);
    this.mc.getTextureManager().bindTexture(clientPlayer.getLocationSkin());
    GlStateManager.translate(-1.0F, 3.6F, 3.5F);
    GlStateManager.rotate(120.0F, 0.0F, 0.0F, 1.0F);
    GlStateManager.rotate(200.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.rotate(-135.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.scale(1.0F, 1.0F, 1.0F);
    GlStateManager.translate(5.6F, 0.0F, 0.0F);
    Render render = this.renderManager.getEntityRenderObject(this.mc.thePlayer);
    GlStateManager.disableCull();
    RenderPlayer renderplayer = (RenderPlayer)render;
    renderplayer.renderRightArm(this.mc.thePlayer);
    GlStateManager.enableCull();
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:27,代码来源:ItemRenderer.java

示例4: renderArm

import net.minecraft.client.renderer.entity.RenderPlayer; //导入方法依赖的package包/类
private void renderArm(EnumHandSide p_187455_1_)
{
    this.mc.getTextureManager().bindTexture(this.mc.player.getLocationSkin());
    Render<AbstractClientPlayer> render = this.renderManager.<AbstractClientPlayer>getEntityRenderObject(this.mc.player);
    RenderPlayer renderplayer = (RenderPlayer)render;
    GlStateManager.pushMatrix();
    float f = p_187455_1_ == EnumHandSide.RIGHT ? 1.0F : -1.0F;
    GlStateManager.rotate(92.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(45.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.rotate(f * -41.0F, 0.0F, 0.0F, 1.0F);
    GlStateManager.translate(f * 0.3F, -1.1F, 0.45F);

    if (p_187455_1_ == EnumHandSide.RIGHT)
    {
        renderplayer.renderRightArm(this.mc.player);
    }
    else
    {
        renderplayer.renderLeftArm(this.mc.player);
    }

    GlStateManager.popMatrix();
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:24,代码来源:ItemRenderer.java

示例5: renderArm

import net.minecraft.client.renderer.entity.RenderPlayer; //导入方法依赖的package包/类
private void renderArm(EnumHandSide p_187455_1_)
{
    this.mc.getTextureManager().bindTexture(this.mc.thePlayer.getLocationSkin());
    Render<AbstractClientPlayer> render = this.renderManager.<AbstractClientPlayer>getEntityRenderObject(this.mc.thePlayer);
    RenderPlayer renderplayer = (RenderPlayer)render;
    GlStateManager.pushMatrix();
    float f = p_187455_1_ == EnumHandSide.RIGHT ? 1.0F : -1.0F;
    GlStateManager.rotate(92.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(45.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.rotate(f * -41.0F, 0.0F, 0.0F, 1.0F);
    GlStateManager.translate(f * 0.3F, -1.1F, 0.45F);

    if (p_187455_1_ == EnumHandSide.RIGHT)
    {
        renderplayer.renderRightArm(this.mc.thePlayer);
    }
    else
    {
        renderplayer.renderLeftArm(this.mc.thePlayer);
    }

    GlStateManager.popMatrix();
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:24,代码来源:ItemRenderer.java

示例6: renderRightArm

import net.minecraft.client.renderer.entity.RenderPlayer; //导入方法依赖的package包/类
private void renderRightArm(RenderPlayer renderPlayerIn)
{
    GlStateManager.pushMatrix();
    GlStateManager.rotate(54.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(64.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.rotate(-62.0F, 0.0F, 0.0F, 1.0F);
    GlStateManager.translate(0.25F, -0.85F, 0.75F);
    renderPlayerIn.renderRightArm(this.mc.thePlayer);
    GlStateManager.popMatrix();
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:11,代码来源:ItemRenderer.java

示例7: renderArmFirstPerson

import net.minecraft.client.renderer.entity.RenderPlayer; //导入方法依赖的package包/类
private void renderArmFirstPerson(float p_187456_1_, float p_187456_2_, EnumHandSide p_187456_3_)
{
    boolean flag = p_187456_3_ != EnumHandSide.LEFT;
    float f = flag ? 1.0F : -1.0F;
    float f1 = MathHelper.sqrt(p_187456_2_);
    float f2 = -0.3F * MathHelper.sin(f1 * (float)Math.PI);
    float f3 = 0.4F * MathHelper.sin(f1 * ((float)Math.PI * 2F));
    float f4 = -0.4F * MathHelper.sin(p_187456_2_ * (float)Math.PI);
    GlStateManager.translate(f * (f2 + 0.64000005F), f3 + -0.6F + p_187456_1_ * -0.6F, f4 + -0.71999997F);
    GlStateManager.rotate(f * 45.0F, 0.0F, 1.0F, 0.0F);
    float f5 = MathHelper.sin(p_187456_2_ * p_187456_2_ * (float)Math.PI);
    float f6 = MathHelper.sin(f1 * (float)Math.PI);
    GlStateManager.rotate(f * f6 * 70.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(f * f5 * -20.0F, 0.0F, 0.0F, 1.0F);
    AbstractClientPlayer abstractclientplayer = this.mc.player;
    this.mc.getTextureManager().bindTexture(abstractclientplayer.getLocationSkin());
    GlStateManager.translate(f * -1.0F, 3.6F, 3.5F);
    GlStateManager.rotate(f * 120.0F, 0.0F, 0.0F, 1.0F);
    GlStateManager.rotate(200.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.rotate(f * -135.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.translate(f * 5.6F, 0.0F, 0.0F);
    RenderPlayer renderplayer = (RenderPlayer)this.renderManager.getEntityRenderObject(abstractclientplayer);
    GlStateManager.disableCull();

    if (flag)
    {
        renderplayer.renderRightArm(abstractclientplayer);
    }
    else
    {
        renderplayer.renderLeftArm(abstractclientplayer);
    }

    GlStateManager.enableCull();
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:36,代码来源:ItemRenderer.java

示例8: renderArmFirstPerson

import net.minecraft.client.renderer.entity.RenderPlayer; //导入方法依赖的package包/类
private void renderArmFirstPerson(float p_187456_1_, float p_187456_2_, EnumHandSide p_187456_3_)
{
    boolean flag = p_187456_3_ != EnumHandSide.LEFT;
    float f = flag ? 1.0F : -1.0F;
    float f1 = MathHelper.sqrt_float(p_187456_2_);
    float f2 = -0.3F * MathHelper.sin(f1 * (float)Math.PI);
    float f3 = 0.4F * MathHelper.sin(f1 * ((float)Math.PI * 2F));
    float f4 = -0.4F * MathHelper.sin(p_187456_2_ * (float)Math.PI);
    GlStateManager.translate(f * (f2 + 0.64000005F), f3 + -0.6F + p_187456_1_ * -0.6F, f4 + -0.71999997F);
    GlStateManager.rotate(f * 45.0F, 0.0F, 1.0F, 0.0F);
    float f5 = MathHelper.sin(p_187456_2_ * p_187456_2_ * (float)Math.PI);
    float f6 = MathHelper.sin(f1 * (float)Math.PI);
    GlStateManager.rotate(f * f6 * 70.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(f * f5 * -20.0F, 0.0F, 0.0F, 1.0F);
    AbstractClientPlayer abstractclientplayer = this.mc.thePlayer;
    this.mc.getTextureManager().bindTexture(abstractclientplayer.getLocationSkin());
    GlStateManager.translate(f * -1.0F, 3.6F, 3.5F);
    GlStateManager.rotate(f * 120.0F, 0.0F, 0.0F, 1.0F);
    GlStateManager.rotate(200.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.rotate(f * -135.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.translate(f * 5.6F, 0.0F, 0.0F);
    RenderPlayer renderplayer = (RenderPlayer)this.renderManager.getEntityRenderObject(abstractclientplayer);
    GlStateManager.disableCull();

    if (flag)
    {
        renderplayer.renderRightArm(abstractclientplayer);
    }
    else
    {
        renderplayer.renderLeftArm(abstractclientplayer);
    }

    GlStateManager.enableCull();
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:36,代码来源:ItemRenderer.java

示例9: renderArmFirstPerson

import net.minecraft.client.renderer.entity.RenderPlayer; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public static void renderArmFirstPerson(float progress, float swing, EnumHandSide handSide, boolean mini)
{
    boolean flag = handSide != EnumHandSide.LEFT;
    float f = flag ? 1.0F : -1.0F;
    float f1 = MathHelper.sqrt(swing);
    float f2 = -0.3F * MathHelper.sin(f1 * (float)Math.PI);
    float f3 = 0.4F * MathHelper.sin(f1 * ((float)Math.PI * 2F));
    float f4 = -0.4F * MathHelper.sin(swing * (float)Math.PI);
    GlStateManager.translate(f * (f2 + 0.64000005F), f3 + -0.6F + progress * -0.6F, f4 + -0.71999997F);
    GlStateManager.rotate(f * 45.0F, 0.0F, 1.0F, 0.0F);
    
    if(mini)GlStateManager.scale(0.8, 0.8, 0.8);
    
    float f5 = MathHelper.sin(swing * swing * (float)Math.PI);
    float f6 = MathHelper.sin(f1 * (float)Math.PI);
    GlStateManager.rotate(f * f6 * 70.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(f * f5 * -20.0F, 0.0F, 0.0F, 1.0F);
    AbstractClientPlayer abstractclientplayer = (AbstractClientPlayer) CrystalMod.proxy.getClientPlayer();
    Minecraft.getMinecraft().getTextureManager().bindTexture(abstractclientplayer.getLocationSkin());
    GlStateManager.translate(f * -1.0F, 3.6F, 3.5F);
    GlStateManager.rotate(f * 120.0F, 0.0F, 0.0F, 1.0F);
    GlStateManager.rotate(200.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.rotate(f * -135.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.translate(f * 5.6F, 0.0F, 0.0F);
    
    RenderPlayer renderplayer = renderHandOverride;
    GlStateManager.disableCull();

    if (flag)
    {
        renderplayer.renderRightArm(abstractclientplayer);
    }
    else
    {
        renderplayer.renderLeftArm(abstractclientplayer);
    }

    GlStateManager.enableCull();
}
 
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:41,代码来源:DisguiseClientHandler.java


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