Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-07 00:22:51 +02:00
Implement new method
Dieser Commit ist enthalten in:
Ursprung
3ea3bd2a78
Commit
9014baf6e5
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren