导出获取方块硬度接口和或破坏方块速度接口

This commit is contained in:
子沐呀
2024-05-28 01:21:21 +08:00
Unverified
parent 94c5ec25e4
commit 05c5c6822c
2 changed files with 20 additions and 1 deletions
+11 -1
View File
@@ -115,7 +115,9 @@ const GMLIB_API = {
getItemTranslateKey: ll.import("GMLIB_API", "getItemTranslateKey"),
getEntityTranslateKey: ll.import("GMLIB_API", "getEntityTranslateKey"),
readNbtFromFile: ll.import("GMLIB_API", "readNbtFromFile"),
saveNbtToFile: ll.import("GMLIB_API", "saveNbtToFile")
saveNbtToFile: ll.import("GMLIB_API", "saveNbtToFile"),
getBlockDestroySpeed : ll.import("GMLIB_API","getBlockDestroySpeed"),
getDestroyBlockSpeed : ll.import("GMLIB_API","getDestroyBlockSpeed")
}
const FloatingTextList = [];
@@ -440,6 +442,14 @@ class Minecraft {
static readNbtFromFile(path, isBinary = true) {
return GMLIB_API.readNbtFromFile(path, isBinary);
}
static getBlockDestroySpeed(block) {
return GMLIB_API.getBlockDestroySpeed(block);
}
static getDestroyBlockSpeed(item,block) {
return GMLIB_API.getDestroyBlockSpeed(item,block);
}
}
class Recipes {