public class EntitySorter extends Object implements Comparator
Constructor and Description |
---|
EntitySorter(Entity par1Entity) |
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public EntitySorter(Entity par1Entity)
public int sortByDistanceToEntity(WorldRenderer par1WorldRenderer, WorldRenderer par2WorldRenderer)
public int compare(Object par1Obj, Object par2Obj)
compare
in interface Comparator