1.6.2 test - Finished liquids, added connected textures on glass

This commit is contained in:
mDiyo committed 2013-07-26 21:18:53 -07:00
1 parent 40c6f445a2
commit a80fcbce86
704 files changed
+60909

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
package tconstruct.entity.ai;
import tconstruct.entity.GolemBase;
public class GAISwim extends GolemAIBase
{
public GAISwim(GolemBase golem)
{
super(golem);
this.setMutexBits(4);
golem.getNavigator().setCanSwim(true);
}
public boolean shouldExecute()
{
if(golem.isInWater() || this.golem.handleLavaMovement())
{
return true;
}
return false;
}
/*public void startExecuting()
{
if(golem.standby())
{
golem.setPatrolMode();
}
}*/
public void updateTask()
{
if (this.golem.getRNG().nextFloat() < 0.8F)
{
this.golem.getJumpHelper().setJumping();
}
}
}