本文整理汇总了Java中net.minecraft.client.renderer.entity.layers.LayerElytra类的典型用法代码示例。如果您正苦于以下问题:Java LayerElytra类的具体用法?Java LayerElytra怎么用?Java LayerElytra使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LayerElytra类属于net.minecraft.client.renderer.entity.layers包,在下文中一共展示了LayerElytra类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: RenderArmorStand
import net.minecraft.client.renderer.entity.layers.LayerElytra; //导入依赖的package包/类
public RenderArmorStand(RenderManager manager)
{
super(manager, new ModelArmorStand(), 0.0F);
LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
{
protected void initArmor()
{
this.modelLeggings = new ModelArmorStandArmor(0.5F);
this.modelArmor = new ModelArmorStandArmor(1.0F);
}
};
this.addLayer(layerbipedarmor);
this.addLayer(new LayerHeldItem(this));
this.addLayer(new LayerElytra(this));
this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:17,代码来源:RenderArmorStand.java
示例2: RenderPlayer
import net.minecraft.client.renderer.entity.layers.LayerElytra; //导入依赖的package包/类
public RenderPlayer(RenderManager renderManager, boolean useSmallArms)
{
super(renderManager, new ModelPlayer(0.0F, useSmallArms), 0.5F);
this.smallArms = useSmallArms;
this.addLayer(new LayerBipedArmor(this));
this.addLayer(new LayerHeldItem(this));
this.addLayer(new LayerArrow(this));
this.addLayer(new LayerDeadmau5Head(this));
this.addLayer(new LayerCape(this));
this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
this.addLayer(new LayerElytra(this));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:13,代码来源:RenderPlayer.java
示例3: RenderBiped
import net.minecraft.client.renderer.entity.layers.LayerElytra; //导入依赖的package包/类
public RenderBiped(RenderManager renderManagerIn, ModelBiped modelBipedIn, float shadowSize)
{
super(renderManagerIn, modelBipedIn, shadowSize);
this.addLayer(new LayerCustomHead(modelBipedIn.bipedHead));
this.addLayer(new LayerElytra(this));
this.addLayer(new LayerHeldItem(this));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:8,代码来源:RenderBiped.java
示例4: RenderBabySkeleton
import net.minecraft.client.renderer.entity.layers.LayerElytra; //导入依赖的package包/类
public RenderBabySkeleton(RenderManager renderManagerIn, ModelBabySkeleton modelBipedIn) {
super(renderManagerIn, modelBipedIn, 0.5F);
this.addLayer(new LayerCustomHead(modelBipedIn.bipedHead));
this.addLayer(new LayerElytra(this));
this.addLayer(new LayerBabyHeldItem(this));
this.addLayer(new LayerSkinsuit(this, new ModelBabySkeleton(0.0F, true, true, 2)));
this.addLayer(new LayerBipedArmor(this) {
@Override
protected void initArmor() {
this.modelLeggings = new ModelBabySkeleton(0.5F, true, false, 1);
this.modelArmor = new ModelBabySkeleton(1.0F, true, false, 1);
}
});
}
开发者ID:The-Fireplace-Minecraft-Mods,项目名称:Overlord,代码行数:15,代码来源:RenderBabySkeleton.java
示例5: doRenderLayer_elytra
import net.minecraft.client.renderer.entity.layers.LayerElytra; //导入依赖的package包/类
@Hook("net.gobbob.mobends.client.renderer.entity.layers.LayerBendsElytra#func_177141_a")
public static Hook.Result doRenderLayer_elytra(LayerBendsElytra layer, AbstractClientPlayer player, float limbSwing, float limbSwingAmount,
float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
ItemStack item = ExItemElytra.getInInventoryBauble(player);
if (item != null) {
{
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
GlStateManager.enableBlend();
if (player.isPlayerInfoSet() && player.getLocationElytra() != null)
renderPlayer.get(layer).bindTexture(player.getLocationElytra());
else if (player.hasPlayerInfo() && player.getLocationCape() != null && player.isWearing(EnumPlayerModelParts.CAPE))
renderPlayer.get(layer).bindTexture(player.getLocationCape());
else
renderPlayer.get(layer).bindTexture(LayerElytra.TEXTURE_ELYTRA);
GlStateManager.pushMatrix();
renderPlayer.get(layer).getMainModel().bipedBody.postRender(scale);
GlStateManager.translate(0.0F, -12.0F * scale, 0.125F);
modelElytra.get(layer).setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale, player);
modelElytra.get(layer).render(player, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale);
if (item.isItemEnchanted())
LayerArmorBase.renderEnchantedGlint(renderPlayer.get(layer), player, modelElytra.get(layer), limbSwing, limbSwingAmount,
partialTicks, ageInTicks, netHeadYaw, headPitch, scale);
GlStateManager.popMatrix();
}
return Hook.Result.NULL;
}
return Hook.Result.VOID;
}
开发者ID:NekoCaffeine,项目名称:Alchemy,代码行数:33,代码来源:ExMobends.java
示例6: doRenderLayer_elytra
import net.minecraft.client.renderer.entity.layers.LayerElytra; //导入依赖的package包/类
@Hook("net.minecraft.client.renderer.entity.layers.LayerElytra#func_177141_a")
public static Hook.Result doRenderLayer_elytra(LayerElytra layer, EntityLivingBase living, float limbSwing, float limbSwingAmount,
float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
ItemStack item = getFormLiving0(living);
if (item.getItem() == Items.ELYTRA) {
{
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
GlStateManager.enableBlend();
GlStateManager.blendFunc(GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
if (living instanceof AbstractClientPlayer) {
AbstractClientPlayer player = (AbstractClientPlayer) living;
if (player.isPlayerInfoSet() && player.getLocationElytra() != null)
layer.renderPlayer.bindTexture(player.getLocationElytra());
else if (player.hasPlayerInfo() && player.getLocationCape() != null && player.isWearing(EnumPlayerModelParts.CAPE))
layer.renderPlayer.bindTexture(player.getLocationCape());
else
layer.renderPlayer.bindTexture(LayerElytra.TEXTURE_ELYTRA);
} else
layer.renderPlayer.bindTexture(LayerElytra.TEXTURE_ELYTRA);
GlStateManager.pushMatrix();
GlStateManager.translate(0.0F, 0.0F, 0.125F);
layer.modelElytra.setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale, living);
layer.modelElytra.render(living, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale);
if (item.isItemEnchanted())
LayerArmorBase.renderEnchantedGlint(layer.renderPlayer, living, layer.modelElytra, limbSwing, limbSwingAmount,
partialTicks, ageInTicks, netHeadYaw, headPitch, scale);
GlStateManager.disableBlend();
GlStateManager.popMatrix();
}
return Hook.Result.NULL;
}
return Hook.Result.VOID;
}
开发者ID:NekoCaffeine,项目名称:Alchemy,代码行数:38,代码来源:ExItemElytra.java
示例7: RenderPlayerMob
import net.minecraft.client.renderer.entity.layers.LayerElytra; //导入依赖的package包/类
public RenderPlayerMob (RenderManager renderManager, ModelPlayerMob model) {
super(renderManager, model, 0.5F);
this.addLayer(new LayerBipedArmor(this));
this.addLayer(new LayerHeldItem(this));
this.addLayer(new LayerArrow(this));
this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
this.addLayer(new LayerElytra(this));
this.blendProfile = Profile.PLAYER_SKIN;
}
开发者ID:Darkhax-Minecraft,项目名称:Bookshelf,代码行数:11,代码来源:RenderPlayerMob.java
示例8: LayerPonyElytra
import net.minecraft.client.renderer.entity.layers.LayerElytra; //导入依赖的package包/类
public LayerPonyElytra(RenderLivingBase<?> rp) {
super(rp, new LayerElytra(rp));
}
开发者ID:MineLittlePony,项目名称:MineLittlePony,代码行数:4,代码来源:LayerPonyElytra.java
注:本文中的net.minecraft.client.renderer.entity.layers.LayerElytra类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论