Remove unused function in HiresModelManager

This commit is contained in:
Blue (Lukas Rieger) 2021-06-24 10:36:50 +02:00
parent 42a8960705
commit 0818f945c8
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800

View File

@ -37,9 +37,6 @@
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import java.util.zip.GZIPOutputStream;
public class HiresModelManager {
@ -101,30 +98,6 @@ private void save(String modelJson, Vector2i tile){
}
}
/**
* Returns all tiles that the provided chunks are intersecting
*/
@Deprecated
public Collection<Vector2i> getTilesForChunks(Iterable<Vector2i> chunks){
Set<Vector2i> tiles = new HashSet<>();
for (Vector2i chunk : chunks) {
Vector3i minBlockPos = new Vector3i(chunk.getX() * 16, 0, chunk.getY() * 16);
//loop to cover the case that a tile is smaller then a chunk, should normally only add one tile (at 0, 0)
for (int x = 0; x < 15; x += tileGrid.getGridSize().getX()) {
for (int z = 0; z < 15; z += tileGrid.getGridSize().getY()) {
tiles.add(posToTile(minBlockPos.add(x, 0, z)));
}
}
tiles.add(posToTile(minBlockPos.add(0, 0, 15)));
tiles.add(posToTile(minBlockPos.add(15, 0, 0)));
tiles.add(posToTile(minBlockPos.add(15, 0, 15)));
}
return tiles;
}
/**
* Returns the tile-grid
*/