use of com.fastasyncworldedit.core.math.IntTriple in project FastAsyncWorldEdit by IntellectualSites.
the class DiskOptimizedClipboard method setTile.
@Override
public boolean setTile(int x, int y, int z, CompoundTag tag) {
final Map<String, Tag> values = new HashMap<>(tag.getValue());
values.put("x", new IntTag(x));
values.put("y", new IntTag(y));
values.put("z", new IntTag(z));
nbtMap.put(new IntTriple(x, y, z), new CompoundTag(values));
return true;
}
use of com.fastasyncworldedit.core.math.IntTriple in project FastAsyncWorldEdit by IntellectualSites.
the class CPUOptimizedClipboard method convertTilesToIndex.
public void convertTilesToIndex() {
if (nbtMapLoc.isEmpty()) {
return;
}
for (Map.Entry<IntTriple, CompoundTag> entry : nbtMapLoc.entrySet()) {
IntTriple key = entry.getKey();
setTile(getIndex(key.x(), key.y(), key.z()), entry.getValue());
}
nbtMapLoc.clear();
}
Aggregations