diff --git a/common/src/main/java/common/ai/EntityAIBase.java b/common/src/main/java/common/ai/EntityAIBase.java index 9eccf20a..cb5ac9b8 100755 --- a/common/src/main/java/common/ai/EntityAIBase.java +++ b/common/src/main/java/common/ai/EntityAIBase.java @@ -1,71 +1,32 @@ package common.ai; -public abstract class EntityAIBase -{ - /** - * A bitmask telling which other tasks may not run concurrently. The test is a simple bitwise AND - if it yields - * zero, the two tasks may run concurrently, if not - they must run exclusively from each other. - */ - private int mutexBits; +public abstract class EntityAIBase { + private int mutex; - /** - * Returns whether the EntityAIBase should begin execution. - */ - public abstract boolean shouldExecute(); + public abstract boolean shouldExecute(); - /** - * Returns whether an in-progress EntityAIBase should continue executing - */ - public boolean continueExecuting() - { - return this.shouldExecute(); - } + public boolean continueExecuting() { + return this.shouldExecute(); + } - /** - * Determine if this AI Task is interruptible by a higher (= lower value) priority task. All vanilla AITask have - * this value set to true. - */ - public boolean isInterruptible() - { - return true; - } + public boolean isInterruptible() { + return true; + } - /** - * Execute a one shot task or start executing a continuous task - */ - public void startExecuting() - { - } + public void startExecuting() { + } - /** - * Resets the task - */ - public void resetTask() - { - } + public void resetTask() { + } - /** - * Updates the task - */ - public void updateTask() - { - } + public void updateTask() { + } - /** - * Sets a bitmask telling which other tasks may not run concurrently. The test is a simple bitwise AND - if it - * yields zero, the two tasks may run concurrently, if not - they must run exclusively from each other. - */ - public void setMutexBits(int mutexBitsIn) - { - this.mutexBits = mutexBitsIn; - } + public void setMutexBits(int bits) { + this.mutex = bits; + } - /** - * Get a bitmask telling which other tasks may not run concurrently. The test is a simple bitwise AND - if it yields - * zero, the two tasks may run concurrently, if not - they must run exclusively from each other. - */ - public int getMutexBits() - { - return this.mutexBits; - } + public int getMutexBits() { + return this.mutex; + } }