PaperLib
PaperLib是一个插件库,用于与Paper特定的API(例如异步块加载)接口,并具有优美的后备功能,可保持与Bukkit和Spigot API的兼容性。
API
在PaperLib类中可以找到所有API调用作为静态util方法。
getChunkAtAsync
public class PaperLib {
public static CompletableFuture< Chunk> getChunkAtAsync ( Location loc );
public static CompletableFuture< Chunk> getChunkAtAsync ( Location loc , boolean gen );
public static CompletableFuture< Chunk> getChunkAtAsync ( World world , int x , int z );
public static CompletableFuture< Chunk> getChunkAtAsync ( World worl
1