3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-20 01:40:06 +01:00

Address vector deprecations

Dieser Commit ist enthalten in:
dordsor21 2024-06-07 16:23:05 +01:00
Ursprung 07c6148ee4
Commit 8db2e7d77d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B
2 geänderte Dateien mit 9 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -994,7 +994,7 @@ public class MCAChunk implements IChunk {
tiles.entrySet().removeIf(e -> {
BlockVector3 pos = e.getKey();
return set
.getBlock(pos.getBlockX(), pos.getBlockY(), pos.getBlockZ())
.getBlock(pos.x(), pos.y(), pos.z())
.getOrdinalChar() != BlockTypesCache.ReservedIDs.__RESERVED__;
});
for (int layer = set.getMinSectionPosition(); layer <= set.getMaxSectionPosition(); layer++) {

Datei anzeigen

@ -64,8 +64,8 @@ public class WorldRegionsRegion implements Region {
public Iterator<BlockVector3> iterator() {
Queue<BlockVector2> queue = new ArrayDeque<>(getChunks());
return new Iterator<>() {
private final int by = min.getY();
private final int ty = max.getY();
private final int by = min.y();
private final int ty = max.y();
private final MutableBlockVector3 mutable = new MutableBlockVector3();
private BlockVector2 chunk = queue.poll();
@ -156,7 +156,7 @@ public class WorldRegionsRegion implements Region {
BlockVector3 min = getMinimumPoint();
BlockVector3 max = getMaximumPoint();
return max.getX() - min.getX() + 1;
return max.x() - min.x() + 1;
}
/**
@ -169,7 +169,7 @@ public class WorldRegionsRegion implements Region {
BlockVector3 min = getMinimumPoint();
BlockVector3 max = getMaximumPoint();
return max.getY() - min.getY() + 1;
return max.y() - min.y() + 1;
}
/**
@ -182,7 +182,7 @@ public class WorldRegionsRegion implements Region {
BlockVector3 min = getMinimumPoint();
BlockVector3 max = getMaximumPoint();
return max.getZ() - min.getZ() + 1;
return max.z() - min.z() + 1;
}
@Override
@ -233,8 +233,8 @@ public class WorldRegionsRegion implements Region {
return new Iterator<>() {
private final MutableBlockVector3 mutable = new MutableBlockVector3();
private final int by = min.getY() >> 4;
private final int ty = max.getY() >> 4;
private final int by = min.y() >> 4;
private final int ty = max.y() >> 4;
private BlockVector2 chunk = chunks.poll();
private int y;
@ -267,7 +267,7 @@ public class WorldRegionsRegion implements Region {
@Override
public int size() {
return getChunks().size() * ((max.getY() >> 4) - (min.getY() >> 4));
return getChunks().size() * ((max.y() >> 4) - (min.y() >> 4));
}
};
}