@Override public void doRenderLayer(@Nonnull AbstractClientPlayer entity, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) { IWizardryCapability cap = WizardryCapabilityProvider.getCap(entity); if (cap != null) { EnumBloodType type = cap.getBloodType(); if (type != null && type != EnumBloodType.NONE) { render.bindTexture(EnumBloodType.getResourceLocation(type)); ClientUtilMethods.glColor(type.color); setModelVisibilities(entity); GlStateManager.enableBlendProfile(Profile.PLAYER_SKIN); GlStateManager.disableLighting(); ShaderHelper.INSTANCE.useShader(Shaders.rawColor); render.getMainModel().render(entity, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale); GlStateManager.enableLighting(); ShaderHelper.INSTANCE.releaseShader(); GlStateManager.disableBlendProfile(Profile.PLAYER_SKIN); GlStateManager.color(1.0F, 1.0F, 1.0F); } } }
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; }
public void setBlendProfile (Profile profile) { this.blendProfile = profile; }