net.minecraft.entity.ai
Class EntityAINearestAttackableTargetSorter

java.lang.Object
  extended by net.minecraft.entity.ai.EntityAINearestAttackableTargetSorter
All Implemented Interfaces:
Comparator

public class EntityAINearestAttackableTargetSorter
extends Object
implements Comparator


Constructor Summary
EntityAINearestAttackableTargetSorter(EntityAINearestAttackableTarget par1EntityAINearestAttackableTarget, Entity par2Entity)
           
 
Method Summary
 int compare(Object par1Obj, Object par2Obj)
           
 int compareDistanceSq(Entity par1Entity, Entity par2Entity)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

EntityAINearestAttackableTargetSorter

public EntityAINearestAttackableTargetSorter(EntityAINearestAttackableTarget par1EntityAINearestAttackableTarget,
                                             Entity par2Entity)
Method Detail

compareDistanceSq

public int compareDistanceSq(Entity par1Entity,
                             Entity par2Entity)

compare

public int compare(Object par1Obj,
                   Object par2Obj)
Specified by:
compare in interface Comparator