Skip to content

Instantly share code, notes, and snippets.

@TheTroop
Created June 18, 2015 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheTroop/f3eb593cfcc266d09256 to your computer and use it in GitHub Desktop.
Save TheTroop/f3eb593cfcc266d09256 to your computer and use it in GitHub Desktop.
[1.7.10] When i spawn my Mob Minecraft is Crazy
package com.TheTroop.legendrymod;
import com.TheTroop.legendrymod.Mobs.EntityWiggen;
import com.TheTroop.legendrymod.Model.ModelWiggen;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.util.ResourceLocation;
public class RenderWiggen extends RenderLiving {
private static final ResourceLocation texture = new ResourceLocation("lm:textures/entity/Wiggen.png");
protected ModelWiggen modelEntity;
public RenderWiggen(ModelBase p_i1262_1_, float p_i1262_2_) {
super(p_i1262_1_, p_i1262_2_);
modelEntity = ((ModelWiggen) mainModel);
}
public void renderWiggen(EntityWiggen entity, double x, double y, double z, float u, float v) {
super.doRender(entity, x, y, z, u, v);
}
public void doRenderLiving(EntityLiving entityLiving, double x, double y, double z, float u, float v) {
renderWiggen((EntityWiggen)entityLiving, x, y, z, u, v);
}
public void doRender(Entity entity, double x, double y, double z, float u, float v) {
renderWiggen((EntityWiggen)entity, x, y, z, u, v);
}
@Override
protected ResourceLocation getEntityTexture(Entity p_110775_1_) {
return texture;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment