Class EntitySorter

java.lang.Object
net.minecraft.src.EntitySorter
All Implemented Interfaces:
Comparator

public class EntitySorter extends Object implements Comparator
  • Constructor Details

    • EntitySorter

      public EntitySorter(Entity par1Entity)
  • Method Details

    • 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