Spectator Keyframes are now colored blue, and the timespan during which an Entity is spectated is tinted

This commit is contained in:
CrushedPixel
2015-06-03 14:20:32 +02:00
parent 0dbc18c662
commit 01f80294aa
5 changed files with 98 additions and 31 deletions

View File

@@ -1,15 +1,11 @@
package eu.crushedpixel.replaymod.holders;
import eu.crushedpixel.replaymod.replay.ReplayHandler;
import java.util.Comparator;
public class KeyframeComparator implements Comparator<Keyframe> {
@Override
public int compare(Keyframe o1, Keyframe o2) {
if(ReplayHandler.isSelected(o1)) return 1;
if(ReplayHandler.isSelected(o2)) return -1;
return ((Integer) o1.getRealTimestamp()).compareTo(o2.getRealTimestamp());
}