mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-09-19 13:58:22 +00:00
8c0195970b
* Consistenty use javax annotations. - Unfortunately jetbrains annotations seem to be exposed transitively via core somewhere, but with the correct IDE settings, annotations can be defaulted to javax - Cleaning up of import order in #1195 - Must be merged before #1195 * Add and apply .editorconfig from P2 - Does not rearrange entries * Address some comments * add back some javadoc comments * Address final comments Co-authored-by: NotMyFault <mc.cache@web.de>
67 lines
1.6 KiB
Java
67 lines
1.6 KiB
Java
package com.fastasyncworldedit.core.queue;
|
|
|
|
import com.fastasyncworldedit.core.extent.processor.heightmap.HeightMapType;
|
|
import com.sk89q.jnbt.CompoundTag;
|
|
import com.sk89q.worldedit.extent.InputExtent;
|
|
import com.sk89q.worldedit.math.BlockVector3;
|
|
import com.sk89q.worldedit.world.biome.BiomeType;
|
|
import com.sk89q.worldedit.world.block.BaseBlock;
|
|
import com.sk89q.worldedit.world.block.BlockState;
|
|
|
|
import javax.annotation.Nullable;
|
|
import java.util.UUID;
|
|
import java.util.concurrent.Future;
|
|
|
|
/**
|
|
* An interface for getting blocks.
|
|
*/
|
|
public interface IChunkGet extends IBlocks, Trimable, InputExtent, ITileInput {
|
|
|
|
@Override
|
|
BaseBlock getFullBlock(int x, int y, int z);
|
|
|
|
@Override
|
|
BiomeType getBiomeType(int x, int y, int z);
|
|
|
|
@Override
|
|
default BiomeType getBiome(BlockVector3 position) {
|
|
return getBiomeType(position.getX(), position.getY(), position.getZ());
|
|
}
|
|
|
|
@Override
|
|
BlockState getBlock(int x, int y, int z);
|
|
|
|
@Override
|
|
int getSkyLight(int x, int y, int z);
|
|
|
|
@Override
|
|
int getEmittedLight(int x, int y, int z);
|
|
|
|
@Override
|
|
int[] getHeightMap(HeightMapType type);
|
|
|
|
default void optimize() {
|
|
|
|
}
|
|
|
|
<T extends Future<T>> T call(IChunkSet set, Runnable finalize);
|
|
|
|
CompoundTag getEntity(UUID uuid);
|
|
|
|
void setCreateCopy(boolean createCopy);
|
|
|
|
boolean isCreateCopy();
|
|
|
|
@Nullable
|
|
default IChunkGet getCopy() {
|
|
return null;
|
|
}
|
|
|
|
void setLightingToGet(char[][] lighting);
|
|
|
|
void setSkyLightingToGet(char[][] lighting);
|
|
|
|
void setHeightmapToGet(HeightMapType type, int[] data);
|
|
|
|
}
|