mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
1.6.2 test - Finished liquids, added connected textures on glass
This commit is contained in:
1 parent
40c6f445a2
commit
a80fcbce86
704 files changed
+60909
No files matched your search
@@ -0,0 +1,73 @@
|
||||
package tconstruct.entity;
|
||||
|
||||
import tconstruct.entity.ai.GAIAttackTarget;
|
||||
import tconstruct.entity.ai.GAIFindTarget;
|
||||
import tconstruct.entity.ai.GAIFollowOwner;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class Automaton extends GolemBase
|
||||
{
|
||||
int state;
|
||||
|
||||
/*TaskBase currentTask;
|
||||
HashMap<String, TaskBase> taskList = new HashMap<String, TaskBase>();*/
|
||||
|
||||
public Automaton(World world)
|
||||
{
|
||||
super(world);
|
||||
this.setSize(0.9F, 2.42F);
|
||||
//this.texture = "/mods/tinker/textures/mob/crystalguardamber.png";
|
||||
this.tasks.addTask(1, new GAIAttackTarget(this));
|
||||
this.tasks.addTask(2, new GAIFindTarget(this));
|
||||
this.tasks.addTask(3, new GAIFollowOwner(this));
|
||||
|
||||
/*taskList.put("wait", new TaskWait(this));
|
||||
TaskBase task = new TaskClearcut(this);
|
||||
taskList.put("clearcut", task);
|
||||
currentTask = task;*/
|
||||
}
|
||||
|
||||
/*@Override
|
||||
public void initCreature ()
|
||||
{
|
||||
baseAttack = 5;
|
||||
maxHealth = 50;
|
||||
}*/
|
||||
|
||||
/*@Override
|
||||
public void updateAITick()
|
||||
{
|
||||
if (!currentTask.update())
|
||||
{
|
||||
currentTask.finishTask();
|
||||
}
|
||||
}*/
|
||||
|
||||
protected String getHurtSound ()
|
||||
{
|
||||
return "mob.irongolem.hit";
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the sound this mob makes on death.
|
||||
*/
|
||||
protected String getDeathSound ()
|
||||
{
|
||||
return "mob.irongolem.death";
|
||||
}
|
||||
|
||||
/**
|
||||
* Plays step sound at given x, y, z for the entity
|
||||
*/
|
||||
protected void playStepSound (int par1, int par2, int par3, int par4)
|
||||
{
|
||||
this.playSound("mob.irongolem.walk", 1.0F, 1.0F);
|
||||
}
|
||||
|
||||
public boolean interact (EntityPlayer par1EntityPlayer)
|
||||
{
|
||||
this.setCurrentItemOrArmor(0, par1EntityPlayer.getCurrentEquippedItem().copy());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user