I don't think Forge allows a "main" mod class (a class with the @Mod annotation) to extend any other class.
Try striping your class down to:
package com.example.examplemod;
(many imports)
@Mod(modid = ExampleMod.MODID, version = ExampleMod.VERSION)
public class ExampleMod {
public static final String MODID = "examplemod";
public static final String VERSION = "1.0";
@EventHandler
public void preInit(FMLPreInitializationEvent event){ }
Then creating a separate class to override the methods:
Initializing proxies, registering things (hooks, blocks, etc), among others. Basically the same thing a main class in any java application would, it's the entry point or "hub" of the software.
im trying to override the renderModel method which is in the RendererLivingEntity class. am i missing anything?
package com.example.examplemod;
(many imports)
@Mod(modid = ExampleMod.MODID, version = ExampleMod.VERSION)
@SideOnly(Side.CLIENT)
public class ExampleMod extends RendererLivingEntity
{
public ExampleMod(ModelBase p_i1261_1_, float p_i1261_2_) {
super(p_i1261_1_, p_i1261_2_);
// TODO Auto-generated constructor stub
}
public static final String MODID = "examplemod";
public static final String VERSION = "1.0";
@Override
protected void renderModel(EntityLivingBase p_77036_1_, float p_77036_2_, float p_77036_3_, float p_77036_4_, float p_77036_5_, float p_77036_6_, float p_77036_7_)
{
...
}
}
Try striping your class down to:
Then creating a separate class to override the methods:
If I may ask, why exactly do you need to override those method(s)?
Mapping and Modding rules | Global rules
Initializing proxies, registering things (hooks, blocks, etc), among others. Basically the same thing a main class in any java application would, it's the entry point or "hub" of the software.