You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			65 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Java
		
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Java
		
	
package net.minecraft.entity.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;
 | 
						|
    private static final String __OBFID = "CL_00001587";
 | 
						|
 | 
						|
    /**
 | 
						|
     * Returns whether the EntityAIBase should begin execution.
 | 
						|
     */
 | 
						|
    public abstract boolean shouldExecute();
 | 
						|
 | 
						|
    /**
 | 
						|
     * Returns whether an in-progress EntityAIBase should continue executing
 | 
						|
     */
 | 
						|
    public boolean continueExecuting()
 | 
						|
    {
 | 
						|
        return this.shouldExecute();
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Determine if this AI Task is interruptible by a higher (= lower value) priority task.
 | 
						|
     */
 | 
						|
    public boolean isInterruptible()
 | 
						|
    {
 | 
						|
        return true;
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Execute a one shot task or start executing a continuous task
 | 
						|
     */
 | 
						|
    public void startExecuting() {}
 | 
						|
 | 
						|
    /**
 | 
						|
     * Resets the task
 | 
						|
     */
 | 
						|
    public void resetTask() {}
 | 
						|
 | 
						|
    /**
 | 
						|
     * Updates the task
 | 
						|
     */
 | 
						|
    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 p_75248_1_)
 | 
						|
    {
 | 
						|
        this.mutexBits = p_75248_1_;
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * 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;
 | 
						|
    }
 | 
						|
} |