Techne Models Recompile Error! PLEASE HELP!

Started by xianma on Tue, 01/26/2016 - 02:05
Last seen on 07:03, 30. Jun 2018
Joined Oct 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Techne Models Recompile Error! PLEASE HELP!
Tue, 01/26/2016 - 02:07 (edited)

Here is the gradle log shows the problem. Source code is down the gradle log problem.

C:\Pylo\MCreator162\forge\build\sources\main\java\mod\mcreator\mcreator_bulk.java:101: error: cannot find symbol
        RenderingRegistry.registerEntityRenderingHandler(mcreator_bulk.Entitybulk.class, new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_bulk.Model(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("bulk.png");}});
                                                                                                                                                                        ^
  symbol:   class Model
  location: class mcreator_bulk
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


import net.minecraftforge.fml.client.registry.*;
import net.minecraftforge.fml.common.*;
import net.minecraftforge.fml.common.asm.*;
import net.minecraftforge.fml.common.asm.transformers.*;
import net.minecraftforge.fml.common.discovery.*;
import net.minecraftforge.fml.common.discovery.asm.*;
import net.minecraftforge.fml.common.event.*;
import net.minecraftforge.fml.common.functions.*;
import net.minecraftforge.fml.common.network.*;
import net.minecraftforge.fml.common.registry.*;
import net.minecraftforge.fml.common.toposort.*;
import net.minecraftforge.fml.common.versioning.*;
import net.minecraftforge.fml.relauncher.*;
import net.minecraftforge.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.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.minecraft.init.*;
import java.util.*;

@SuppressWarnings("unchecked")
public class mcreator_bulk {

    public static int mobid = 0;
    public Object instance;

    public void load(FMLInitializationEvent event){
    
        RenderingRegistry.registerEntityRenderingHandler(mcreator_bulk.Entitybulk.class, new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_bulk.Model(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("bulk.png");}});
    
    }

    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;
    }
    @SideOnly(Side.CLIENT)
    public void registerRenderers(){
        
    }
    public void serverLoad(FMLServerStartingEvent event){}
    public void preInit(FMLPreInitializationEvent event){
        int entityID = EntityRegistry.findGlobalUniqueEntityId();
        mobid = entityID;
        EntityRegistry.registerGlobalEntityID(mcreator_bulk.Entitybulk.class, "bulk", entityID);
        EntityRegistry.registerModEntity(mcreator_bulk.Entitybulk.class, "bulk", entityID, instance, 64, 1, true);
        EntityList.entityEggs.put(Integer.valueOf(entityID), new EntityList.EntityEggInfo(entityID, (102 << 16) + (102 << 8) + 102, (0 << 16) + (0 << 8) + 0));
        EntityRegistry.addSpawn(mcreator_bulk.Entitybulk.class, 20, 3, 30, EnumCreatureType.MONSTER , clean(BiomeGenBase.getBiomeGenArray()));

        
    }
    
    public static BiomeGenBase[] clean(final BiomeGenBase[] v) {
        List<BiomeGenBase> list = new ArrayList<BiomeGenBase>(Arrays.asList(v));
        list.removeAll(Collections.singleton(null));
        return list.toArray(new BiomeGenBase[list.size()]);
    }

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


   public static class Entitybulk extends EntityMob 
    {
        World world = null;
        public Entitybulk(World var1)
        {
            super(var1);
            world = var1;
            experienceValue = 5;
            this.isImmuneToFire = false;
            addRandomArmor();
            setNoAI(!false);
            
        }

        

protected void applyEntityAttributes(){
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.15000000000000002D);
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(25D);
if(this.getEntityAttribute(SharedMonsterAttributes.attackDamage)!=null)this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(5D);
}


        

        
protected void addRandomArmor(){

}


        
        @Override
        protected Item getDropItem()
        {
            return new ItemStack(Items.iron_sword).getItem();
        }

        @Override
        protected String getLivingSound()
        {
            return "";
        }

        @Override
        protected String getHurtSound()
        {
            return "game.neutral.hurt";
        }
        
        @Override
        protected String getDeathSound()
        {
            return "game.neutral.die";
        }

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

        @Override
        public void fall(float l, float d){
            super.fall(l,d);
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            super.fall(l,d);
            Entity entity = this;
            
        }

        @Override
        public void onDeath(DamageSource source){
            super.onDeath(source);
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            Entity entity = this;
            
            
        }

        @Override
        public boolean interact(EntityPlayer entity){
            super.interact(entity);
            int i = (int)this.posX;
            int j = (int)this.posY;
            int k = (int)this.posZ;
            
            return true;
        }
        
        @Override
        protected float getSoundVolume()
        {
        return 1.0F;
        }
        
    }

    

public static class bulk extends ModelBase
{
    ModelRenderer body_1;
    ModelRenderer body_2;
    ModelRenderer head;
    ModelRenderer nose;
    ModelRenderer leg_1;
    ModelRenderer leg_2;
    ModelRenderer arm_1;
    ModelRenderer arm_2;

    public bulk()
    {
        this( 0.0f );
    }

    public bulk( float par1 )
    {
        body_1 = new ModelRenderer( this, 20, 4 );
        body_1.setTextureSize( 64, 64 );
        body_1.addBox( -7F, -4F, -4F, 14, 8, 8);
        body_1.setRotationPoint( 0F, 0.5F, 0F );
        body_2 = new ModelRenderer( this, 38, 20 );
        body_2.setTextureSize( 64, 64 );
        body_2.addBox( -4F, -5.5F, -2.5F, 8, 11, 5);
        body_2.setRotationPoint( 0F, 8.500054F, 0.9995693F );
        head = new ModelRenderer( this, 0, 0 );
        head.setTextureSize( 64, 64 );
        head.addBox( -3F, -3F, -3F, 6, 6, 6);
        head.setRotationPoint( 0F, -2.500216F, -3.999839F );
        nose = new ModelRenderer( this, 0, 12 );
        nose.setTextureSize( 64, 64 );
        nose.addBox( -1F, -2.5F, -1F, 2, 5, 2);
        nose.setRotationPoint( 0F, 1F, -7F );
        leg_1 = new ModelRenderer( this, 48, 36 );
        leg_1.setTextureSize( 64, 64 );
        leg_1.addBox( -2F, -5F, -2F, 4, 10, 4);
        leg_1.setRotationPoint( -2F, 19.00005F, 0.9990041F );
        leg_2 = new ModelRenderer( this, 48, 36 );
        leg_2.setTextureSize( 64, 64 );
        leg_2.addBox( -2F, -5F, -2F, 4, 10, 4);
        leg_2.setRotationPoint( 2F, 19.00005F, 0.9990041F );
        arm_1 = new ModelRenderer( this, 36, 36 );
        arm_1.setTextureSize( 64, 64 );
        arm_1.addBox( -1F, -11F, -2F, 2, 22, 4);
        arm_1.setRotationPoint( -8F, 10F, -0.0005113964F );
        arm_2 = new ModelRenderer( this, 36, 36 );
        arm_2.setTextureSize( 64, 64 );
        arm_2.addBox( -1F, -11F, -2F, 2, 22, 4);
        arm_2.setRotationPoint( 8F, 10F, -0.0005113964F );
    }

   public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
   {
        body_1.rotateAngleX = 0.566883F;
        body_1.rotateAngleY = 0F;
        body_1.rotateAngleZ = 0F;
        body_1.renderWithRotation(par7);

        body_2.rotateAngleX = -5.389697E-05F;
        body_2.rotateAngleY = 0F;
        body_2.rotateAngleZ = 0F;
        body_2.renderWithRotation(par7);

        head.rotateAngleX = 0.3033009F;
        head.rotateAngleY = 0F;
        head.rotateAngleZ = 0F;
        head.renderWithRotation(par7);

        nose.rotateAngleX = 0.3008963F;
        nose.rotateAngleY = 0F;
        nose.rotateAngleZ = 0F;
        nose.renderWithRotation(par7);

        leg_1.rotateAngleX = -5.389697E-05F;
        leg_1.rotateAngleY = 0F;
        leg_1.rotateAngleZ = 0F;
        leg_1.renderWithRotation(par7);

        leg_2.rotateAngleX = -5.389697E-05F;
        leg_2.rotateAngleY = 0F;
        leg_2.rotateAngleZ = 0F;
        leg_2.renderWithRotation(par7);

        arm_1.rotateAngleX = -5.401143E-05F;
        arm_1.rotateAngleY = 0F;
        arm_1.rotateAngleZ = 0F;
        arm_1.renderWithRotation(par7);

        arm_2.rotateAngleX = -5.401143E-05F;
        arm_2.rotateAngleY = 0F;
        arm_2.rotateAngleZ = 0F;
        arm_2.renderWithRotation(par7);

    }

}


}

 

Edited by xianma on Tue, 01/26/2016 - 02:07