public class EntityYComparator extends java.lang.Object implements java.util.Comparator<IEntity>
Comparator implementation sorts entities by the max y-coordinate of their collision box (if its a ICollisionEntity)
or of their bounding box.ICollisionEntity.getCollisionBox(),
IEntity.getBoundingBox(),
Double.compareTo(Double)| Constructor and Description |
|---|
EntityYComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(IEntity m1,
IEntity m2) |