mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +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,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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user