Proper Reformating

This commit is contained in:
Kam committed 2025-03-13 17:14:45 -04:00
1 parent ce75880aba
commit 180d257024
1179 files changed
+59847 -61583

No files matched your search

+25 -26
View File
@@ -5,33 +5,32 @@ import noppes.npcs.entity.EntityNPCInterface;
public class EntityAIRole extends EntityAIBase {
private EntityNPCInterface npc;
public EntityAIRole(EntityNPCInterface npc){
this.npc = npc;
}
@Override
public boolean shouldExecute() {
if(npc.isKilled() || npc.roleInterface == null)
return false;
return npc.roleInterface.aiShouldExecute();
}
public void startExecuting()
{
npc.roleInterface.aiStartExecuting();
private EntityNPCInterface npc;
public EntityAIRole(EntityNPCInterface npc) {
this.npc = npc;
}
@Override
public boolean continueExecuting()
{
if(npc.isKilled() || npc.roleInterface == null)
return false;
return npc.roleInterface.aiContinueExecute();
@Override
public boolean shouldExecute() {
if (npc.isKilled() || npc.roleInterface == null)
return false;
return npc.roleInterface.aiShouldExecute();
}
public void updateTask(){
if(npc.roleInterface != null)
npc.roleInterface.aiUpdateTask();
public void startExecuting() {
npc.roleInterface.aiStartExecuting();
}
@Override
public boolean continueExecuting() {
if (npc.isKilled() || npc.roleInterface == null)
return false;
return npc.roleInterface.aiContinueExecute();
}
public void updateTask() {
if (npc.roleInterface != null)
npc.roleInterface.aiUpdateTask();
}
}