Fix all warnings

Add and make use of Lombok
Remove Mojang API
Remove ZipFileUtils
Remove StreamTools in favor of Apache IOUtils
Keyframe should be abstract all derivatives final
Replace clone in Keyframe with copy
Move some constants from GuiReplaySetttings to GuiConstants
This commit is contained in:
johni0702
2015-06-29 21:45:37 +02:00
parent 3122c0a71e
commit a058497727
110 changed files with 487 additions and 1921 deletions

View File

@@ -29,20 +29,16 @@ public class ChatMessageHandler {
private boolean active = true;
private boolean alive = true;
private Queue<IChatComponent> requests = new ConcurrentLinkedQueue<IChatComponent>();
private EntityPlayerSP player = null;
public Thread t = new Thread(new Runnable() {
@Override
public void run() {
while(alive) {
while(!Thread.currentThread().isInterrupted()) {
while(active) {
try {
while(player == null) {
if(!alive) {
break;
}
Thread.sleep(100);
player = Minecraft.getMinecraft().thePlayer;
}
@@ -67,6 +63,7 @@ public class ChatMessageHandler {
}, "replaymod-chat-message-handler");
public ChatMessageHandler() {
t.setDaemon(true);
t.start();
}