Java 类net.minecraft.client.renderer.entity.layers.LayerElytra 实例源码

项目:Backmemed    文件:RenderArmorStand.java   
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));
}
项目:Backmemed    文件:RenderPlayer.java   
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));
}
项目:Backmemed    文件:RenderBiped.java   
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));
}
项目:CustomWorldGen    文件:RenderPlayer.java   
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));
}
项目:Overlord    文件:RenderBabySkeleton.java   
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);
        }
    });
}
项目:Alchemy    文件:ExMobends.java   
@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;
}
项目:Alchemy    文件:ExItemElytra.java   
@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;
}
项目:Bookshelf    文件:RenderPlayerMob.java   
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;
    }
项目:ExpandedRailsMod    文件:RenderPlayer.java   
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));
}
项目:MineLittlePony    文件:LayerPonyElytra.java   
public LayerPonyElytra(RenderLivingBase<?> rp) {
    super(rp, new LayerElytra(rp));
}