1.7.10 Files

Files added
This commit is contained in:
KAMKEEL committed 2018-09-13 12:03:28 -04:00
1 parent 393ea9b463
commit a31efb2dc3
1768 files changed
+84831

No files matched your search

@@ -0,0 +1,42 @@
package noppes.npcs.ai;
import net.minecraft.entity.ai.EntityAIBase;
import noppes.npcs.entity.EntityNPCInterface;
public class EntityAIJob extends EntityAIBase {
private EntityNPCInterface npc;
public EntityAIJob(EntityNPCInterface npc){
this.npc = npc;
}
@Override
public boolean shouldExecute() {
if(npc.isKilled() || npc.jobInterface == null)
return false;
return npc.jobInterface.aiShouldExecute();
}
public void startExecuting()
{
npc.jobInterface.aiStartExecuting();
}
@Override
public boolean continueExecuting()
{
if(npc.isKilled() || npc.jobInterface == null)
return false;
return npc.jobInterface.aiContinueExecute();
}
public void updateTask()
{
npc.jobInterface.aiUpdateTask();
}
public void resetTask() {
if(npc.jobInterface != null)
npc.jobInterface.resetTask();
}
}