本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
}