Full Imports and Code Format Optimization

This commit is contained in:
Kam committed 2025-03-12 20:12:01 -04:00
1 parent 250edf099c
commit 6815f579a7
1192 files changed
+60344 -62167

No files matched your search

@@ -6,23 +6,23 @@ import noppes.npcs.entity.EntityNPCInterface;
public class EntityAIWorldLines extends EntityAIBase {
private EntityNPCInterface npc;
private final EntityNPCInterface npc;
private int cooldown = 100;
public EntityAIWorldLines(EntityNPCInterface npc){
public EntityAIWorldLines(EntityNPCInterface npc) {
this.npc = npc;
this.setMutexBits(AiMutex.PASSIVE);
}
@Override
public boolean shouldExecute() {
if(cooldown > 0){
if (cooldown > 0) {
cooldown--;
}
return !npc.isAttacking() && !npc.isKilled() && npc.advanced.hasWorldLines() && npc.getRNG().nextInt(1800) == 1;
}
public void startExecuting(){
public void startExecuting() {
cooldown = 100;
npc.saySurrounding(npc.advanced.getWorldLine());
}