删除多余include和修正接口位置
This commit is contained in:
+8
-8
@@ -442,14 +442,6 @@ class Minecraft {
|
|||||||
static readNbtFromFile(path, isBinary = true) {
|
static readNbtFromFile(path, isBinary = true) {
|
||||||
return GMLIB_API.readNbtFromFile(path, isBinary);
|
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 {
|
class Recipes {
|
||||||
@@ -973,6 +965,14 @@ LLSE_Item.prototype.getTranslateName = function (language) {
|
|||||||
return I18nAPI.get(this.getTranslateKey(), [], 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 = {
|
module.exports = {
|
||||||
StaticFloatingText,
|
StaticFloatingText,
|
||||||
DynamicFloatingText,
|
DynamicFloatingText,
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
#include "RemoteCallAPI.h"
|
|
||||||
#include "mc/world/actor/Actor.h"
|
|
||||||
#include "mc/world/item/registry/ItemStack.h"
|
|
||||||
#include <regex>
|
#include <regex>
|
||||||
|
|
||||||
bool isInteger(const std::string& str) {
|
bool isInteger(const std::string& str) {
|
||||||
|
|||||||
Reference in New Issue
Block a user