Endless
Любитель OpenGL
- 270
- 11
- 82
Где выходят ошибки я указал
выдает, что: The constructor ... is undefined
Java:
package com.BreachCraft.Main;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAIHurtByTarget;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAINearestAttackableTarget;
import net.minecraft.entity.ai.EntityAIWander;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.ai.attributes.IAttribute;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
public class SCPobject106 extends EntityMob {
private Object tasks;
private Object targetTasks;
public SCPobject106(World world) {
super(world);
this.tasks.addTask(0, new EntityAIWander(this, 1.0D)); //Error happens here.
this.tasks.addTask(1, new EntityAIWatchClosest(this, EntityPlayer.class, 15.0F)); //Error happens here.
this.tasks.addTask(2, new EntityAILookIdle(this)); //Error happens here.
this.targetTasks.addTask(0, new EntityAIHurtByTarget(this, false)); //Error happens here.
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); //Error happens here.
}
public boolean isAIEnabled()
{
return true;
}
}