删除多余include和修正接口位置

This commit is contained in:
子沐呀
2024-05-28 03:12:20 +08:00
Unverified
parent 05c5c6822c
commit f55e642549
2 changed files with 8 additions and 11 deletions
+8 -8
View File
@@ -442,14 +442,6 @@ 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 {
@@ -973,6 +965,14 @@ LLSE_Item.prototype.getTranslateName = function (language) {
return I18nAPI.get(this.getTranslateKey(), [], language);
}
LLSE_Block.prototype.getBlockDestroySpeed = function () {
return GMLIB_API.getBlockDestroySpeed(this);
}
LLSE_Item.prototype.getDestroyBlockSpeed = function (block) {
return GMLIB_API.getDestroyBlockSpeed(this,block);
}
module.exports = {
StaticFloatingText,
DynamicFloatingText,
-3
View File
@@ -1,7 +1,4 @@
#include "Global.h"
#include "RemoteCallAPI.h"
#include "mc/world/actor/Actor.h"
#include "mc/world/item/registry/ItemStack.h"
#include <regex>
bool isInteger(const std::string& str) {