mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 18:45:21 +01:00
Improve RenderTask code-style
This commit is contained in:
parent
be1e5a7d95
commit
af88ad6e40
@ -24,27 +24,22 @@
|
||||
*/
|
||||
package de.bluecolored.bluemap.common;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Deque;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.flowpowered.math.vector.Vector2d;
|
||||
import com.flowpowered.math.vector.Vector2i;
|
||||
import com.flowpowered.math.vector.Vector3i;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
|
||||
public class RenderTask {
|
||||
|
||||
private final UUID uuid;
|
||||
private String name;
|
||||
private final String name;
|
||||
|
||||
private final MapType mapType;
|
||||
private Deque<Vector2i> renderTiles;
|
||||
private final Deque<Vector2i> renderTiles;
|
||||
|
||||
private long firstTileTime;
|
||||
private long additionalRunTime;
|
||||
@ -97,9 +92,7 @@ public void optimizeQueue(Vector2i centerBlockPos) {
|
||||
});
|
||||
|
||||
renderTiles.clear();
|
||||
for (Vector2i tile : tileList) {
|
||||
renderTiles.add(tile);
|
||||
}
|
||||
renderTiles.addAll(tileList);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user