Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package cn.nukkit.level;
import cn.nukkit.api.DeprecationDetails;
import cn.nukkit.api.PowerNukkitOnly;
import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.blockstate.BlockState;
import cn.nukkit.level.format.generic.BaseFullChunk;
import cn.nukkit.math.ChunkVector2;
import org.jetbrains.annotations.NotNull;
/**
* @author MagicDroidX (Nukkit Project)
*/
public interface ChunkManager {
@PowerNukkitOnly
int getBlockIdAt(int x, int y, int z, int layer);
int getBlockIdAt(int x, int y, int z);
@PowerNukkitOnly
@Deprecated
@DeprecationDetails(reason = "The meta is limited to 32 bits", since = "1.3.0.0-PN")
void setBlockFullIdAt(int x, int y, int z, int layer, int fullId);
@Deprecated
@DeprecationDetails(reason = "The meta is limited to 32 bits", since = "1.3.0.0-PN")
void setBlockFullIdAt(int x, int y, int z, int fullId);
@PowerNukkitOnly
void setBlockIdAt(int x, int y, int z, int layer, int id);
void setBlockIdAt(int x, int y, int z, int id);
@Deprecated
@DeprecationDetails(reason = "The meta is limited to 32 bits", since = "1.4.0.0-PN")
@PowerNukkitOnly
boolean setBlockAtLayer(int x, int y, int z, int layer, int id, int data);
@PowerNukkitOnly
default boolean setBlockAtLayer(int x, int y, int z, int layer, int id) {
return setBlockAtLayer(x, y, z, layer, id, 0);
}
default void setBlockAt(int x, int y, int z, int id) {
setBlockStateAt(x, y, z, BlockState.of(id));
}
@PowerNukkitOnly
@Since("1.4.0.0-PN")
boolean setBlockStateAt(int x, int y, int z, int layer, BlockState state);
@PowerNukkitOnly
@Since("1.4.0.0-PN")
default boolean setBlockStateAt(int x, int y, int z, BlockState state) {
return setBlockStateAt(x, y, z, 0, state);
}
@PowerNukkitOnly
@Since("1.4.0.0-PN")
BlockState getBlockStateAt(int x, int y, int z, int layer);
@PowerNukkitOnly
@Since("1.4.0.0-PN")
default BlockState getBlockStateAt(int x, int y, int z) {
return getBlockStateAt(x, y, z, 0);
}
@Deprecated
@DeprecationDetails(reason = "The meta is limited to 32 bits", since = "1.4.0.0-PN")
void setBlockAt(int x, int y, int z, int id, int data);
@Deprecated
@DeprecationDetails(reason = "The meta is limited to 32 bits", since = "1.4.0.0-PN")
@PowerNukkitOnly
int getBlockDataAt(int x, int y, int z, int layer);
@Deprecated
@DeprecationDetails(reason = "The meta is limited to 32 bits", since = "1.4.0.0-PN")
int getBlockDataAt(int x, int y, int z);
@Deprecated
@DeprecationDetails(reason = "The meta is limited to 32 bits", since = "1.4.0.0-PN")
@PowerNukkitOnly
void setBlockDataAt(int x, int y, int z, int layer, int data);
@Deprecated
@DeprecationDetails(reason = "The meta is limited to 32 bits", since = "1.4.0.0-PN")
void setBlockDataAt(int x, int y, int z, int data);
BaseFullChunk getChunk(int chunkX, int chunkZ);
@PowerNukkitOnly
@Since("1.4.0.0-PN")
default BaseFullChunk getChunk(@NotNull ChunkVector2 pos) {
return getChunk(pos.getX(), pos.getZ());
}
void setChunk(int chunkX, int chunkZ);
void setChunk(int chunkX, int chunkZ, BaseFullChunk chunk);
long getSeed();
@PowerNukkitXOnly
@Since("1.19.80-r3")
boolean isOverWorld();
@PowerNukkitXOnly
@Since("1.19.80-r3")
boolean isNether();
@PowerNukkitXOnly
@Since("1.19.80-r3")
boolean isTheEnd();
}