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

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

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