Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.hugo.hostile.renders;
- import fr.hugo.hostile.Reference;
- import fr.hugo.hostile.entity.EntityAssassin;
- import fr.hugo.hostile.models.ModelAssassin;
- import net.minecraft.client.model.ModelBiped;
- import net.minecraft.client.renderer.entity.RenderBiped;
- import net.minecraft.client.renderer.entity.RenderManager;
- import net.minecraft.client.renderer.entity.layers.LayerHeldItem;
- import net.minecraft.entity.Entity;
- import net.minecraft.entity.passive.EntityOcelot;
- import net.minecraft.util.ResourceLocation;
- import net.minecraftforge.fml.relauncher.SideOnly;
- public class RenderAssassin extends RenderBiped
- {
- public static final ResourceLocation ASSASSIN1_TEXTURE = new ResourceLocation(Reference.MOD_ID + ":textures/humans/assassin1.png");
- public static final ResourceLocation ASSASSIN2_TEXTURE = new ResourceLocation(Reference.MOD_ID + ":textures/humans/assassin2.png");
- public static final ResourceLocation ASSASSIN3_TEXTURE = new ResourceLocation(Reference.MOD_ID + ":textures/humans/assassin3.png");
- public static final ResourceLocation ASSASSIN4_TEXTURE = new ResourceLocation(Reference.MOD_ID + ":textures/humans/assassin4.png");
- public static final ResourceLocation ASSASSIN5_TEXTURE = new ResourceLocation(Reference.MOD_ID + ":textures/humans/assassin5.png");
- public RenderAssassin(RenderManager renderManagerIn)
- {
- super(renderManagerIn, new ModelBiped(), 0.5F);
- this.addLayer(new LayerHeldItem(this));
- }
- {
- EntityAssassin.skins = (new ResourceLocation[]
- {
- new ResourceLocation(Reference.MOD_ID + ":textures/humans/assassin1.png"), new ResourceLocation(Reference.MOD_ID + ":textures/humans/assassin2.png"), new ResourceLocation(Reference.MOD_ID + ":textures/humans/assassin3.png"), new ResourceLocation(Reference.MOD_ID + ":textures/humans/assassin4.png"), new ResourceLocation(Reference.MOD_ID + ":textures/humans/assassin5.png")
- });
- }
- protected ResourceLocation getEntityTexture(EntityAssassin assassin)
- {
- switch (EntityAssassin.currentSkin)
- {
- case 0:
- default:
- return ASSASSIN1_TEXTURE;
- case 1:
- return ASSASSIN2_TEXTURE;
- case 2:
- return ASSASSIN3_TEXTURE;
- case 3:
- return ASSASSIN4_TEXTURE;
- case 4:
- return ASSASSIN5_TEXTURE;
- }
- }
- protected ResourceLocation getAssassinTexture(EntityAssassin assassin)
- {
- return EntityAssassin.skins[EntityAssassin.currentSkin];
- }
- protected ResourceLocation getEntityTexture(Entity entity)
- {
- return this.getAssassinTexture((EntityAssassin)entity);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement