net.minecraft.client.renderer
Class EntitySorter

java.lang.Object
  extended by net.minecraft.client.renderer.EntitySorter
All Implemented Interfaces:
Comparator

public class EntitySorter
extends Object
implements Comparator


Constructor Summary
EntitySorter(Entity par1Entity)
           
 
Method Summary
 int compare(Object par1Obj, Object par2Obj)
           
 int sortByDistanceToEntity(WorldRenderer par1WorldRenderer, WorldRenderer par2WorldRenderer)
          Sorts the two world renderers according to their distance to a given entity.
 
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

EntitySorter

public EntitySorter(Entity par1Entity)
Method Detail

sortByDistanceToEntity

public int sortByDistanceToEntity(WorldRenderer par1WorldRenderer,
                                  WorldRenderer par2WorldRenderer)
Sorts the two world renderers according to their distance to a given entity.


compare

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