Importing techne model

1 post / 0 new
Offline
Last seen: 7 months 6 days ago
Joined: 06/08/2015 - 19:14
Gems: 0
Importing techne model

Help please!
 

I'm creating mob, modelled in Techne, but it causes error (arrow is under word in bold):

C:\Pylo\MCreator149\forge\build\sources\java\mcreator_gbot.java:107: '(' or '[' expected
        RenderingRegistry.registerEntityRenderingHandler(mcreator_gbot.Entitygbot.class, new RenderLiving(new mcreator_gbot.ModelG-bot(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("G-bot.png");}});

Code of my Mob:
 

 

Spoiler: Highlight to view
import cpw.mods.fml.client.*;
import cpw.mods.fml.client.registry.*;
import cpw.mods.fml.common.*;
import cpw.mods.fml.common.asm.*;
import cpw.mods.fml.common.asm.transformers.*;
import cpw.mods.fml.common.discovery.*;
import cpw.mods.fml.common.discovery.asm.*;
import cpw.mods.fml.common.event.*;
import cpw.mods.fml.common.functions.*;
import cpw.mods.fml.common.network.*;
import cpw.mods.fml.common.registry.*;
import cpw.mods.fml.common.toposort.*;
import cpw.mods.fml.common.versioning.*;
import cpw.mods.fml.relauncher.*;
import cpw.mods.fml.server.*;
import net.minecraft.block.*;
import net.minecraft.block.material.*;
import net.minecraft.client.*;
import net.minecraft.client.audio.*;
import net.minecraft.client.entity.*;
import net.minecraft.client.gui.*;
import net.minecraft.client.gui.achievement.*;
import net.minecraft.client.gui.inventory.*;
import net.minecraft.client.model.*;
import net.minecraft.client.multiplayer.*;
import net.minecraft.client.particle.*;
import net.minecraft.client.renderer.*;
import net.minecraft.client.renderer.culling.*;
import net.minecraft.client.renderer.entity.*;
import net.minecraft.client.renderer.tileentity.*;
import net.minecraft.client.settings.*;
import net.minecraft.command.*;
import net.minecraft.crash.*;
import net.minecraft.creativetab.*;
import net.minecraft.dispenser.*;
import net.minecraft.enchantment.*;
import net.minecraft.entity.*;
import net.minecraft.entity.ai.*;
import net.minecraft.entity.boss.*;
import net.minecraft.entity.effect.*;
import net.minecraft.entity.item.*;
import net.minecraft.entity.monster.*;
import net.minecraft.entity.passive.*;
import net.minecraft.entity.player.*;
import net.minecraft.entity.projectile.*;
import net.minecraft.inventory.*;
import net.minecraft.item.*;
import net.minecraft.item.crafting.*;
import net.minecraft.nbt.*;
import net.minecraft.network.*;
import net.minecraft.network.rcon.*;
import net.minecraft.pathfinding.*;
import net.minecraft.potion.*;
import net.minecraft.profiler.*;
import net.minecraft.server.*;
import net.minecraft.server.dedicated.*;
import net.minecraft.server.gui.*;
import net.minecraft.server.integrated.*;
import net.minecraft.server.management.*;
import net.minecraft.src.*;
import net.minecraft.stats.*;
import net.minecraft.tileentity.*;
import net.minecraft.util.*;
import net.minecraft.village.*;
import net.minecraft.world.*;
import net.minecraft.world.biome.*;
import net.minecraft.world.chunk.*;
import net.minecraft.world.chunk.storage.*;
import net.minecraft.world.demo.*;
import net.minecraft.world.gen.*;
import net.minecraft.world.gen.feature.*;
import net.minecraft.world.gen.layer.*;
import net.minecraft.world.gen.structure.*;
import net.minecraft.world.storage.*;
import net.minecraftforge.classloading.*;
import net.minecraftforge.client.*;
import net.minecraftforge.client.event.*;
import net.minecraftforge.client.event.sound.*;
import net.minecraftforge.common.*;
import net.minecraftforge.event.*;
import net.minecraftforge.event.entity.*;
import net.minecraftforge.event.entity.item.*;
import net.minecraftforge.event.entity.living.*;
import net.minecraftforge.event.entity.minecart.*;
import net.minecraftforge.event.entity.player.*;
import net.minecraftforge.event.terraingen.*;
import net.minecraftforge.event.world.*;
import net.minecraftforge.oredict.*;
import net.minecraftforge.transformers.*;
import net.minecraft.init.*;
import java.util.Random;

@SuppressWarnings("unchecked")
public class mcreator_gbot {

    public static int mobid = 0;
    public Object instance;

    public void load(){}

    public void generateNether(World world, Random random, int chunkX, int chunkZ){}
    public void generateSurface(World world, Random random, int chunkX, int chunkZ){}
    public int addFuel(ItemStack fuel){
        return 0;
    }
    public void registerRenderers(){
        RenderingRegistry.registerEntityRenderingHandler(mcreator_gbot.Entitygbot.class, new RenderLiving(new mcreator_gbot.ModelG-bot(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("G-bot.png");}});
    }
    public void serverLoad(FMLServerStartingEvent event){}
    public void preInit(FMLPreInitializationEvent event){
        int entityID = EntityRegistry.findGlobalUniqueEntityId();
        mobid = entityID;
        EntityRegistry.registerGlobalEntityID(mcreator_gbot.Entitygbot.class, "gbot", entityID);
        EntityRegistry.registerModEntity(mcreator_gbot.Entitygbot.class, "gbot", entityID, instance, 64, 1, true);
        EntityList.entityEggs.put(Integer.valueOf(entityID), new EntityList.EntityEggInfo(entityID, (0 << 16) + (0 << 8) + 0, (0 << 16) + (0 << 8) + 0));

        
    }

    /*public Entity spawnEntity(int var1, World var2, double var3, double var5, double var7)
    {
        if(var1==mobid)
                return new mcreator_gbot.Entitygbot(var2);
        else
                return null;
    }*/


   public static class Entitygbot extends EntityZombie 
    {
        World world = null;
        public Entitygbot(World var1)
        {
            super(var1);
            world = var1;
            experienceValue = 10;
            this.isImmuneToFire = false;
            addRandomArmor();
            
        }

        

        

        
protected void addRandomArmor(){

}

 

        public boolean isAIEnabled()
        {
               return true;
        }

        /**
         * Drop 0-2 items of this living's type
         */
        protected void dropFewItems(boolean var1, int var2)
        {
            this.entityDropItem(new ItemStack(mcreator_robotDetails.block), 0.0F);
        }

        /**
         * Returns the sound this mob makes while it's alive.
         */
        protected String getLivingSound()
        {
            return "mod.gbot.living";
        }

        /**
         * Returns the sound this mob makes when it is hurt.
         */
        protected String getHurtSound()
        {
            return "mod.gbot.hurt";
        }

        /**
         * Returns the sound this mob makes on death.
         */
        protected String getDeathSound()
        {
            return "mod.gbot.death";
        }

        public void onStruckByLightning(EntityLightningBolt entityLightningBolt){
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            
        }

        protected void fall(float l){
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            super.fall(l);
            
        }

        public void onCriticalHit(Entity entity) {
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            
        }

        public void onKillEntity(EntityLiving entityLiving){
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            
        }

        public boolean interact(EntityPlayer entity){
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            
            return true;
        }

        public String getEntityName(){
            return "gbot";
        }

    }

    

//Exported java file
//Keep in mind that you still need to fill in some blanks
// - ZeuX

public static class Gbot extends ModelBase
{
public void Gbot()
{
Shape1 = new ModelRenderer(this, 8, 2);
Shape1.addBox(0F, 0F, 0F, 3, 1, 1, 0F);
Shape1.setRotationPoint(0F, -1F, 0F);
Shape1.rotateAngleX = 0F;
Shape1.rotateAngleY = 0F;
Shape1.rotateAngleZ = 0F;
Shape1.mirror = false;
Shape1 = new ModelRenderer(this, 16, 0);
Shape1.addBox(0F, 0F, 0F, 3, 1, 1, 0F);
Shape1.setRotationPoint(-2.3F, 0F, -1.05F);
Shape1.rotateAngleX = 0F;
Shape1.rotateAngleY = -0.4014257F;
Shape1.rotateAngleZ = -9.300983E-17F;
Shape1.mirror = false;
Shape1 = new ModelRenderer(this, 0, 0);
Shape1.addBox(0F, 0F, 0F, 3, 1, 1, 0F);
Shape1.setRotationPoint(2.6F, 0F, 0.1F);
Shape1.rotateAngleX = 0F;
Shape1.rotateAngleY = 0.4014257F;
Shape1.rotateAngleZ = -9.300983E-17F;
Shape1.mirror = false;
Shape1 = new ModelRenderer(this, 8, 0);
Shape1.addBox(0F, 0F, 0F, 3, 1, 1, 0F);
Shape1.setRotationPoint(0F, 0F, 0F);
Shape1.rotateAngleX = 0F;
Shape1.rotateAngleY = 0F;
Shape1.rotateAngleZ = 0F;
Shape1.mirror = false;
}

public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5, entity);

Shape1.render(f5);
Shape1.render(f5);
Shape1.render(f5);
Shape1.render(f5);
}

public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity e)

{
super.setRotationAngles(f, f1, f2, f3, f4, f5, e);
}

//fields
public ModelRenderer Shape1;
public ModelRenderer Shape1;
public ModelRenderer Shape1;
public ModelRenderer Shape1;
}

} 


 

My friend says, that RotateAngles causes this, but is it truth. How can I fix this error? Help me please!