Rendermonster:
[spoiler]
public class RenderMonster extends RendererLivingEntity {
public static final ResourceLocation TEXTURE = new ResourceLocation(Reference.MOD_ID + ":textures/entity/monster.png");
public RenderMonster() {
super(Minecraft.getMinecraft().getRenderManager(), new ModelMonster() {
@Override
public void render(Entity entityIn, float p_78088_2_, float p_78088_3_, float p_78088_4_, float p_78088_5_, float p_78088_6_, float scale) {
super.render(entityIn, p_78088_2_, p_78088_3_, p_78088_4_, p_78088_5_, p_78088_6_, scale);
}
}, 1F);
}
@Override
protected void preRenderCallback(EntityLivingBase entity, float f) {
if(entity instanceof EntityMonster) {
EntityMonster monster = (EntityMonster) entity;
GL11.glScalef(1F, 1F, 1F);
}
}
@Override
protected ResourceLocation getEntityTexture(Entity entity) {
return TEXTURE;
}
}
[/spoiler]
Also I tried using EntityRegistry.registerModEntity instead of EntityRegistry.registerGlobalEntityID, like this:
EntityRegistry.registerModEntity(entity, name, Reference.MOD_ID, this, 8, 3, false);
That didn't work because I 'can't use this in a static context'.
I then tried to put this in my main mod's class, called Jolo.class:
public static Object instance = new Jolo();
And then do this in the register class:
EntityRegistry.registerModEntity(entity, name, Reference.MOD_ID, Jolo.instance, 8, 3, false);
But that doesn't work...
Also sorry if I'm making stupid mistakes.