Home » Newcomers » Newcomers » The constructor Blahblah(blah) is undefined(basically idk what The constructor Blahblah(blah) is undefined means)
The constructor Blahblah(blah) is undefined [message #1222661] |
Fri, 20 December 2013 20:55  |
Eclipse User |
|
|
|
[code]package alona.sld;
import net.minecraft.src.EntityAIAvoidEntity;
import net.minecraft.src.EntityAICreeperSwell;
import net.minecraft.src.EntityAIFollowOwner;
import net.minecraft.src.EntityAILeapAtTarget;
import net.minecraft.src.EntityAIMate;
import net.minecraft.src.EntityAIOcelotSit;
import net.minecraft.src.EntityAISwimming;
import net.minecraft.src.EntityAITargetNonTamed;
import net.minecraft.src.EntityAITempt;
import net.minecraft.src.EntityAIWander;
import net.minecraft.src.EntityAIWatchClosest;
import net.minecraft.src.EntityAgeable;
import net.minecraft.src.EntityIronGolem;
import net.minecraft.src.EntityLiving;
import net.minecraft.src.EntityTameable;
import net.minecraft.src.Item;
import net.minecraft.src.NBTTagCompound;
import net.minecraft.src.ResourceLocation;
import net.minecraft.src.World;
import net.minecraft.src.EntityPlayer;
@SuppressWarnings("null")
public class CreatureGildedSpikeloreDragon extends EntityTameable {
private static final ResourceLocation newTextureForSpikeloreDragon = new ResourceLocation ("/Client/src/assets/minecraft/new texture for spikelore dragon.png");
private short angerLevel;
private Object swellingCreeper;
public CreatureGildedSpikeloreDragon(World par1World) {
super(par1World);
// TODO Auto-generated constructor stub
}
@Override
public EntityAgeable createChild(EntityAgeable var1) {
// TODO Auto-generated method stub
return null;
}
{
this.setSize(0.6F, 0.8F);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, this.aiSit);
this.tasks.addTask(4, new EntityAIAvoidEntity(this, EntityIronGolem.class, 16.0F, 0.8D, 1.33D));
this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 5.0F));
this.tasks.addTask(7, new EntityAILeapAtTarget(this, 0.3F));
this.tasks.addTask(9, new EntityAIMate(this, 0.8D));
this.tasks.addTask(10,new EntityAIWander(this, 0.8D));
this.tasks.addTask(11,new EntityAIWatchClosest(this, EntityPlayer.class, 10.0F));
this.tasks.addTask(2, new SpikeloreSwell(this));
} {
NBTTagCompound par1NBTTagCompound = null;
super.readEntityFromNBT(par1NBTTagCompound);
this.angerLevel = par1NBTTagCompound.getShort("Anger");
((EntityLiving) this.swellingCreeper).getNavigator().clearPathEntity();
}
public int getCreeperState() {
// TODO Auto-generated method stub
return 0;
}
public void setCreeperState(int i) {
// TODO Auto-generated method stub
{this.tasks.addTask(2, new SpikeloreSwell(this));}
^
| that line has the error in tittle
|
|
|
Re: The constructor Blahblah(blah) is undefined [message #1223369 is a reply to message #1222661] |
Mon, 23 December 2013 02:13  |
Eclipse User |
|
|
|
So look at what constructors are available, and in particular at the
types of their arguments and make sure you pass an argument of a
conforming type.
On 22/12/2013 10:25 PM, tabitha torrez wrote:
> [code]package alona.sld;
>
> import net.minecraft.src.EntityAIAvoidEntity;
> import net.minecraft.src.EntityAICreeperSwell;
> import net.minecraft.src.EntityAIFollowOwner;
> import net.minecraft.src.EntityAILeapAtTarget;
> import net.minecraft.src.EntityAIMate;
> import net.minecraft.src.EntityAIOcelotSit;
> import net.minecraft.src.EntityAISwimming;
> import net.minecraft.src.EntityAITargetNonTamed;
> import net.minecraft.src.EntityAITempt;
> import net.minecraft.src.EntityAIWander;
> import net.minecraft.src.EntityAIWatchClosest;
> import net.minecraft.src.EntityAgeable;
> import net.minecraft.src.EntityIronGolem;
> import net.minecraft.src.EntityLiving;
> import net.minecraft.src.EntityTameable;
> import net.minecraft.src.Item;
> import net.minecraft.src.NBTTagCompound;
> import net.minecraft.src.ResourceLocation;
> import net.minecraft.src.World;
> import net.minecraft.src.EntityPlayer;
>
> @SuppressWarnings("null")
> public class CreatureGildedSpikeloreDragon extends EntityTameable {
> private static final ResourceLocation newTextureForSpikeloreDragon
> = new ResourceLocation ("/Client/src/assets/minecraft/new texture for
> spikelore dragon.png");
> private short angerLevel;
> private Object swellingCreeper;
> public CreatureGildedSpikeloreDragon(World par1World) {
> super(par1World);
> // TODO Auto-generated constructor stub
> }
>
> @Override
> public EntityAgeable createChild(EntityAgeable var1) {
> // TODO Auto-generated method stub
> return null;
> }
>
> {
> this.setSize(0.6F, 0.8F);
> this.getNavigator().setAvoidsWater(true);
> this.tasks.addTask(1, new EntityAISwimming(this));
> this.tasks.addTask(2, this.aiSit);
> this.tasks.addTask(4, new EntityAIAvoidEntity(this,
> EntityIronGolem.class, 16.0F, 0.8D, 1.33D));
> this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D,
> 10.0F, 5.0F));
> this.tasks.addTask(7, new EntityAILeapAtTarget(this, 0.3F));
> this.tasks.addTask(9, new EntityAIMate(this, 0.8D));
> this.tasks.addTask(10,new EntityAIWander(this, 0.8D));
> this.tasks.addTask(11,new EntityAIWatchClosest(this,
> EntityPlayer.class, 10.0F));
> this.tasks.addTask(2, new SpikeloreSwell(this));
>
> } {
>
> NBTTagCompound par1NBTTagCompound = null;
> super.readEntityFromNBT(par1NBTTagCompound);
> this.angerLevel = par1NBTTagCompound.getShort("Anger");
> ((EntityLiving)
> this.swellingCreeper).getNavigator().clearPathEntity();
>
>
>
>
>
> }
>
> public int getCreeperState() {
> // TODO Auto-generated method stub
> return 0;
> }
>
> public void setCreeperState(int i) {
> // TODO Auto-generated method stub
>
>
> {this.tasks.addTask(2, new SpikeloreSwell(this));}
> ^
> | that line has the error in tittle
|
|
|
Goto Forum:
Current Time: Mon Jun 23 02:39:03 EDT 2025
Powered by FUDForum. Page generated in 0.10064 seconds
|