mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 13:09:11 +00:00
Proper Reformating
This commit is contained in:
1 parent
ce75880aba
commit
180d257024
1179 files changed
+59847
-61583
No files matched your search
@@ -5,38 +5,36 @@ 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();
|
||||
private EntityNPCInterface npc;
|
||||
|
||||
public EntityAIJob(EntityNPCInterface npc) {
|
||||
this.npc = npc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean continueExecuting()
|
||||
{
|
||||
if(npc.isKilled() || npc.jobInterface == null)
|
||||
return false;
|
||||
return npc.jobInterface.aiContinueExecute();
|
||||
|
||||
@Override
|
||||
public boolean shouldExecute() {
|
||||
if (npc.isKilled() || npc.jobInterface == null)
|
||||
return false;
|
||||
return npc.jobInterface.aiShouldExecute();
|
||||
}
|
||||
|
||||
public void updateTask()
|
||||
{
|
||||
npc.jobInterface.aiUpdateTask();
|
||||
|
||||
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();
|
||||
if (npc.jobInterface != null)
|
||||
npc.jobInterface.resetTask();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user