net.minecraft.server.management
Class PlayerPositionComparator

java.lang.Object
  extended by net.minecraft.server.management.PlayerPositionComparator
All Implemented Interfaces:
Comparator

public class PlayerPositionComparator
extends Object
implements Comparator


Constructor Summary
PlayerPositionComparator(ChunkCoordinates par1ChunkCoordinates)
           
 
Method Summary
 int compare(Object par1Obj, Object par2Obj)
           
 int comparePlayers(EntityPlayerMP par1EntityPlayerMP, EntityPlayerMP par2EntityPlayerMP)
          Compare the position of two players.
 
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

PlayerPositionComparator

public PlayerPositionComparator(ChunkCoordinates par1ChunkCoordinates)
Method Detail

comparePlayers

public int comparePlayers(EntityPlayerMP par1EntityPlayerMP,
                          EntityPlayerMP par2EntityPlayerMP)
Compare the position of two players.


compare

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