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

Implement new method

Dieser Commit ist enthalten in:
dordsor21 2021-09-12 11:48:32 +01:00
Ursprung 3ea3bd2a78
Commit 9014baf6e5
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B
4 geänderte Dateien mit 26 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -10,6 +10,7 @@ import com.sk89q.worldedit.world.biome.BiomeType;
import com.sk89q.worldedit.world.block.BlockState;
import com.sk89q.worldedit.world.block.BlockStateHolder;
import javax.annotation.Nullable;
import java.util.Arrays;
import java.util.Collections;
import java.util.Map;
@ -38,7 +39,6 @@ public class BitSetBlocks implements IChunkSet {
return row.rows[layer] != MemBlockSet.NULL_ROW_Y;
}
@Override
public boolean setBiome(int x, int y, int z, BiomeType biome) {
return false;
@ -153,6 +153,13 @@ public class BitSetBlocks implements IChunkSet {
return arr;
}
// No need to do anything different
@Nullable
@Override
public char[] loadIfPresent(final int layer) {
return load(layer);
}
@Override
public BiomeType[] getBiomes() {
return null;

Datei anzeigen

@ -127,6 +127,12 @@ public final class NullChunkGet implements IChunkGet {
return FaweCache.IMP.EMPTY_CHAR_4096;
}
@Nullable
@Override
public char[] loadIfPresent(final int layer) {
return null;
}
public boolean hasSection(int layer) {
return false;
}

Datei anzeigen

@ -121,6 +121,12 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
return getOrCreateGet().load(layer);
}
@Nullable
@Override
public char[] loadIfPresent(final int layer) {
return getOrCreateGet().loadIfPresent(layer);
}
@Override
public boolean isFastMode() {
return fastmode;

Datei anzeigen

@ -172,6 +172,12 @@ public final class NullChunk implements IQueueChunk {
return null;
}
@Nullable
@Override
public char[] loadIfPresent(final int layer) {
return null;
}
@Nullable
public CompoundTag getEntity(@Nonnull UUID uuid) {
return null;