/******************************************************************************* * AbyssalCraft * Copyright (c) 2012 - 2017 Shinoow. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v3 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl-3.0.txt * * Contributors: * Shinoow - implementation ******************************************************************************/ package com.shinoow.abyssalcraft.client.render.entity; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.client.renderer.entity.layers.LayerCustomHead; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import com.shinoow.abyssalcraft.client.model.entity.ModelGatekeeperMinion; import com.shinoow.abyssalcraft.common.entity.EntityGatekeeperMinion; @SideOnly(Side.CLIENT) public class RenderGatekeeperMinion extends RenderLiving<EntityGatekeeperMinion> { private static ResourceLocation texture = new ResourceLocation("abyssalcraft:textures/model/elite/gatekeeperminion.png"); public RenderGatekeeperMinion(RenderManager manager) { this(manager, new ModelGatekeeperMinion()); } public RenderGatekeeperMinion(RenderManager manager, ModelGatekeeperMinion model) { super(manager, model, 0.5F); addLayer(new LayerCustomHead(model.head)); } @Override protected ResourceLocation getEntityTexture(EntityGatekeeperMinion entity) { return texture; } }