Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-16 16:10:07 +01:00
Address vector deprecations
Dieser Commit ist enthalten in:
Ursprung
34009d1d06
Commit
c2e3a4e77e
@ -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++) {
|
||||
|
@ -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));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren