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.
		
		
		
		
		
			
		
			
				
	
	
		
			32 lines
		
	
	
		
			818 B
		
	
	
	
		
			Java
		
	
			
		
		
	
	
			32 lines
		
	
	
		
			818 B
		
	
	
	
		
			Java
		
	
package net.minecraft.entity.ai;
 | 
						|
 | 
						|
import net.minecraft.entity.passive.EntityVillager;
 | 
						|
import net.minecraft.entity.player.EntityPlayer;
 | 
						|
 | 
						|
public class EntityAILookAtTradePlayer extends EntityAIWatchClosest
 | 
						|
{
 | 
						|
    private final EntityVillager theMerchant;
 | 
						|
    private static final String __OBFID = "CL_00001593";
 | 
						|
 | 
						|
    public EntityAILookAtTradePlayer(EntityVillager p_i1633_1_)
 | 
						|
    {
 | 
						|
        super(p_i1633_1_, EntityPlayer.class, 8.0F);
 | 
						|
        this.theMerchant = p_i1633_1_;
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Returns whether the EntityAIBase should begin execution.
 | 
						|
     */
 | 
						|
    public boolean shouldExecute()
 | 
						|
    {
 | 
						|
        if (this.theMerchant.isTrading())
 | 
						|
        {
 | 
						|
            this.closestEntity = this.theMerchant.getCustomer();
 | 
						|
            return true;
 | 
						|
        }
 | 
						|
        else
 | 
						|
        {
 | 
						|
            return false;
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |