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


Java ModelPlayer.setRotationAngles方法代码示例

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


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

示例1: renderRightArm

import net.minecraft.client.model.ModelPlayer; //导入方法依赖的package包/类
public void renderRightArm(AbstractClientPlayer clientPlayer)
{
    float f = 1.0F;
    GlStateManager.color(1.0F, 1.0F, 1.0F);
    float f1 = 0.0625F;
    ModelPlayer modelplayer = this.getMainModel();
    this.setModelVisibilities(clientPlayer);
    GlStateManager.enableBlend();
    modelplayer.swingProgress = 0.0F;
    modelplayer.isSneak = false;
    modelplayer.setRotationAngles(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, clientPlayer);
    modelplayer.bipedRightArm.rotateAngleX = 0.0F;
    modelplayer.bipedRightArm.render(0.0625F);
    modelplayer.bipedRightArmwear.rotateAngleX = 0.0F;
    modelplayer.bipedRightArmwear.render(0.0625F);
    GlStateManager.disableBlend();
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:18,代码来源:RenderPlayer.java

示例2: renderLeftArm

import net.minecraft.client.model.ModelPlayer; //导入方法依赖的package包/类
public void renderLeftArm(AbstractClientPlayer clientPlayer)
{
    float f = 1.0F;
    GlStateManager.color(1.0F, 1.0F, 1.0F);
    float f1 = 0.0625F;
    ModelPlayer modelplayer = this.getMainModel();
    this.setModelVisibilities(clientPlayer);
    GlStateManager.enableBlend();
    modelplayer.isSneak = false;
    modelplayer.swingProgress = 0.0F;
    modelplayer.setRotationAngles(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, clientPlayer);
    modelplayer.bipedLeftArm.rotateAngleX = 0.0F;
    modelplayer.bipedLeftArm.render(0.0625F);
    modelplayer.bipedLeftArmwear.rotateAngleX = 0.0F;
    modelplayer.bipedLeftArmwear.render(0.0625F);
    GlStateManager.disableBlend();
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:18,代码来源:RenderPlayer.java

示例3: renderRightArm

import net.minecraft.client.model.ModelPlayer; //导入方法依赖的package包/类
@Override
  public void renderRightArm(AbstractClientPlayer clientPlayer)
  {
  	ExtendedPlayer exPlayer = ExtendedPlayerProvider.getExtendedPlayer(clientPlayer);
  	ResourceLocation skin = clientPlayer.getLocationSkin();
if(exPlayer.getPlayerDisguiseUUID() !=null){
	ResourceLocation res = DownloadedTextures.getSkin(exPlayer.getPlayerDisguiseUUID());
	if(res !=null){
		skin = res;
	}
}
Minecraft.getMinecraft().getRenderManager().renderEngine.bindTexture(skin);
  	
  	GlStateManager.color(1.0F, 1.0F, 1.0F);
      ModelPlayer modelplayer = this.getMainModel();
      this.setModelVisibilities(clientPlayer);
      GlStateManager.enableBlend();
      modelplayer.swingProgress = 0.0F;
      modelplayer.isSneak = false;
      modelplayer.setRotationAngles(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, clientPlayer);
      modelplayer.bipedRightArm.rotateAngleX = 0.0F;
      modelplayer.bipedRightArm.render(0.0625F);
      modelplayer.bipedRightArmwear.rotateAngleX = 0.0F;
      modelplayer.bipedRightArmwear.render(0.0625F);
      GlStateManager.disableBlend();
  }
 
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:27,代码来源:RenderPlayerHand.java

示例4: renderLeftArm

import net.minecraft.client.model.ModelPlayer; //导入方法依赖的package包/类
@Override
  public void renderLeftArm(AbstractClientPlayer clientPlayer)
  {
  	ExtendedPlayer exPlayer = ExtendedPlayerProvider.getExtendedPlayer(clientPlayer);
  	ResourceLocation skin = clientPlayer.getLocationSkin();
if(exPlayer.getPlayerDisguiseUUID() !=null){
	ResourceLocation res = DownloadedTextures.getSkin(exPlayer.getPlayerDisguiseUUID());
	if(res !=null){
		skin = res;
	}
}

Minecraft.getMinecraft().getRenderManager().renderEngine.bindTexture(skin);
  	GlStateManager.color(1.0F, 1.0F, 1.0F);
      ModelPlayer modelplayer = this.getMainModel();
      this.setModelVisibilities(clientPlayer);
      GlStateManager.enableBlend();
      modelplayer.isSneak = false;
      modelplayer.swingProgress = 0.0F;
      modelplayer.setRotationAngles(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, clientPlayer);
      modelplayer.bipedLeftArm.rotateAngleX = 0.0F;
      modelplayer.bipedLeftArm.render(0.0625F);
      modelplayer.bipedLeftArmwear.rotateAngleX = 0.0F;
      modelplayer.bipedLeftArmwear.render(0.0625F);
      GlStateManager.disableBlend();
  }
 
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:27,代码来源:RenderPlayerHand.java

示例5: renderRightArm

import net.minecraft.client.model.ModelPlayer; //导入方法依赖的package包/类
public void renderRightArm(AbstractClientPlayer clientPlayer)
{
    float f = 1.0F;
    GlStateManager.color(f, f, f);
    ModelPlayer modelplayer = this.getMainModel();
    this.setModelVisibilities(clientPlayer);
    modelplayer.swingProgress = 0.0F;
    modelplayer.isSneak = false;
    modelplayer.setRotationAngles(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, clientPlayer);
    modelplayer.renderRightArm();
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:12,代码来源:RenderPlayer.java

示例6: renderLeftArm

import net.minecraft.client.model.ModelPlayer; //导入方法依赖的package包/类
public void renderLeftArm(AbstractClientPlayer clientPlayer)
{
    float f = 1.0F;
    GlStateManager.color(f, f, f);
    ModelPlayer modelplayer = this.getMainModel();
    this.setModelVisibilities(clientPlayer);
    modelplayer.isSneak = false;
    modelplayer.swingProgress = 0.0F;
    modelplayer.setRotationAngles(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, clientPlayer);
    modelplayer.renderLeftArm();
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:12,代码来源:RenderPlayer.java

示例7: doRenderLayer

import net.minecraft.client.model.ModelPlayer; //导入方法依赖的package包/类
@Override
public void doRenderLayer(EntityLivingBase entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
    ResourceLocation texture = new ResourceLocation(Reference.MODID, "textures/armour/Valor.png");
    String drive = entitylivingbaseIn.getCapability(ModCapabilities.DRIVE_STATE, null).getActiveDriveName();
    switch (drive) {
        case Strings.Form_Valor:
            texture = new ResourceLocation(Reference.MODID, "textures/armour/Valor.png");
            break;
        case Strings.Form_Wisdom:
            texture = new ResourceLocation(Reference.MODID, "textures/armour/Wisdom.png");
            break;
        case Strings.Form_Limit:
            texture = new ResourceLocation(Reference.MODID, "textures/armour/Limit.png");
            break;
        case Strings.Form_Master:
            texture = new ResourceLocation(Reference.MODID, "textures/armour/Master.png");
            break;
        case Strings.Form_Final:
            texture = new ResourceLocation(Reference.MODID, "textures/armour/Final.png");
            break;
        case Strings.Form_Anti:
            texture = new ResourceLocation(Reference.MODID, "textures/armour/Anti.png");
            break;
    }
    if (entitylivingbaseIn.getCapability(ModCapabilities.DRIVE_STATE, null).getInDrive()) {
        ModelPlayer model = renderPlayer.getMainModel();
        model.setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale, entitylivingbaseIn);
        if (model.isSneak) {
            GlStateManager.translate(0.0F, 0.2F, 0.0F);
        }
        renderPlayer.bindTexture(texture);
        if (drive.equals(Strings.Form_Anti)) {
            GlStateManager.color(1, 1, 1,0.95f);
            GlStateManager.enableBlend();
            model.bipedHeadwear.render(scale);
        }
        model.bipedBodyWear.render(scale);
        model.bipedLeftArmwear.render(scale);
        model.bipedRightArmwear.render(scale);
        model.bipedLeftLegwear.render(scale);
        model.bipedRightLegwear.render(scale);
    }
}
 
开发者ID:Wehavecookies56,项目名称:Kingdom-Keys-Re-Coded,代码行数:44,代码来源:LayerRendererDrive.java


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