當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。