2021-07-23 15:48:51 +00:00
|
|
|
package com.fastasyncworldedit.core.queue;
|
2019-04-25 10:32:27 +00:00
|
|
|
|
2021-07-23 15:48:51 +00:00
|
|
|
import com.fastasyncworldedit.core.extent.processor.heightmap.HeightMapType;
|
2019-04-30 16:19:10 +00:00
|
|
|
import com.sk89q.jnbt.CompoundTag;
|
2019-05-12 13:32:04 +00:00
|
|
|
import com.sk89q.worldedit.extent.InputExtent;
|
2020-09-18 10:52:49 +00:00
|
|
|
import com.sk89q.worldedit.math.BlockVector3;
|
2019-04-27 01:15:08 +00:00
|
|
|
import com.sk89q.worldedit.world.biome.BiomeType;
|
|
|
|
import com.sk89q.worldedit.world.block.BaseBlock;
|
|
|
|
import com.sk89q.worldedit.world.block.BlockState;
|
|
|
|
|
2021-07-24 15:34:05 +00:00
|
|
|
import javax.annotation.Nullable;
|
2019-10-23 04:23:52 +00:00
|
|
|
import java.util.UUID;
|
2019-08-18 01:09:09 +00:00
|
|
|
import java.util.concurrent.Future;
|
|
|
|
|
2019-04-28 17:36:23 +00:00
|
|
|
/**
|
2019-08-06 15:28:12 +00:00
|
|
|
* An interface for getting blocks.
|
2019-04-28 17:36:23 +00:00
|
|
|
*/
|
2019-11-20 03:40:52 +00:00
|
|
|
public interface IChunkGet extends IBlocks, Trimable, InputExtent, ITileInput {
|
2019-08-06 15:28:12 +00:00
|
|
|
|
2019-05-12 13:32:04 +00:00
|
|
|
@Override
|
2019-04-27 01:15:08 +00:00
|
|
|
BaseBlock getFullBlock(int x, int y, int z);
|
|
|
|
|
2019-05-12 13:32:04 +00:00
|
|
|
@Override
|
2019-12-19 16:19:46 +00:00
|
|
|
BiomeType getBiomeType(int x, int y, int z);
|
2019-04-27 01:15:08 +00:00
|
|
|
|
2020-09-18 10:52:49 +00:00
|
|
|
@Override
|
|
|
|
default BiomeType getBiome(BlockVector3 position) {
|
|
|
|
return getBiomeType(position.getX(), position.getY(), position.getZ());
|
|
|
|
}
|
|
|
|
|
2019-05-12 13:32:04 +00:00
|
|
|
@Override
|
2019-04-27 01:15:08 +00:00
|
|
|
BlockState getBlock(int x, int y, int z);
|
2019-04-28 15:44:59 +00:00
|
|
|
|
2020-05-27 10:45:08 +00:00
|
|
|
@Override
|
|
|
|
int getSkyLight(int x, int y, int z);
|
|
|
|
|
|
|
|
@Override
|
2021-07-23 15:48:51 +00:00
|
|
|
int getEmittedLight(int x, int y, int z);
|
2020-05-27 10:45:08 +00:00
|
|
|
|
2020-09-14 13:19:23 +00:00
|
|
|
@Override
|
|
|
|
int[] getHeightMap(HeightMapType type);
|
|
|
|
|
2019-05-01 15:45:18 +00:00
|
|
|
default void optimize() {
|
|
|
|
|
|
|
|
}
|
2019-08-18 01:09:09 +00:00
|
|
|
|
|
|
|
<T extends Future<T>> T call(IChunkSet set, Runnable finalize);
|
|
|
|
|
2019-10-23 04:23:52 +00:00
|
|
|
CompoundTag getEntity(UUID uuid);
|
2020-09-28 10:13:02 +00:00
|
|
|
|
|
|
|
void setCreateCopy(boolean createCopy);
|
|
|
|
|
|
|
|
boolean isCreateCopy();
|
|
|
|
|
|
|
|
@Nullable
|
|
|
|
default IChunkGet getCopy() {
|
|
|
|
return null;
|
|
|
|
}
|
2021-01-11 19:29:16 +00:00
|
|
|
|
|
|
|
void setLightingToGet(char[][] lighting);
|
|
|
|
|
|
|
|
void setSkyLightingToGet(char[][] lighting);
|
|
|
|
|
|
|
|
void setHeightmapToGet(HeightMapType type, int[] data);
|
2021-07-24 15:34:05 +00:00
|
|
|
|
2019-04-25 10:32:27 +00:00
|
|
|
}
|