mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 02:54:27 +00:00
Proper Reformating
This commit is contained in:
1 parent
ce75880aba
commit
180d257024
1179 files changed
+59847
-61583
No files matched your search
@@ -6,21 +6,22 @@ import noppes.npcs.entity.EntityNPCInterface;
|
||||
|
||||
public class EntityAITransform extends EntityAIBase {
|
||||
|
||||
private EntityNPCInterface npc;
|
||||
public EntityAITransform(EntityNPCInterface npc){
|
||||
this.npc = npc;
|
||||
setMutexBits(AiMutex.PASSIVE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldExecute() {
|
||||
if(npc.isKilled() || npc.isAttacking() || npc.transform.editingModus)
|
||||
return false;
|
||||
private EntityNPCInterface npc;
|
||||
|
||||
return npc.worldObj.getWorldTime() % 24000 < 12000?npc.transform.isActive:!npc.transform.isActive;
|
||||
}
|
||||
|
||||
public void startExecuting(){
|
||||
npc.transform.transform(!npc.transform.isActive);
|
||||
public EntityAITransform(EntityNPCInterface npc) {
|
||||
this.npc = npc;
|
||||
setMutexBits(AiMutex.PASSIVE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldExecute() {
|
||||
if (npc.isKilled() || npc.isAttacking() || npc.transform.editingModus)
|
||||
return false;
|
||||
|
||||
return npc.worldObj.getWorldTime() % 24000 < 12000 ? npc.transform.isActive : !npc.transform.isActive;
|
||||
}
|
||||
|
||||
public void startExecuting() {
|
||||
npc.transform.transform(!npc.transform.isActive);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user