fix: add missing api

This commit is contained in:
Tsubasa6848
2024-05-15 18:43:05 +08:00
Unverified
parent 5068892612
commit 84e4cf20f1
+18 -1
View File
@@ -382,6 +382,18 @@ class Minecraft {
static resourcePackTranslate(key, params = []) { static resourcePackTranslate(key, params = []) {
return I18nAPI.get(key, params); return I18nAPI.get(key, params);
} }
static getPlayerFromUuid(uuid) {
GMLIB_API.getPlayerFromUuid(uuid);
}
static getPlayerFromUniqueId(uniqueId) {
GMLIB_API.getPlayerFromUniqueId(uniqueId);
}
static getEntityFromUniqueId(uniqueId) {
GMLIB_API.getFromUniqueId(uniqueId);
}
} }
class Recipes { class Recipes {
@@ -835,6 +847,10 @@ class I18nAPI {
} }
}; };
class UserCache {
};
LLSE_Player.prototype.toEntity = function () { LLSE_Player.prototype.toEntity = function () {
return GMLIB_API.PlayerToEntity(this); return GMLIB_API.PlayerToEntity(this);
} }
@@ -870,5 +886,6 @@ module.exports = {
JsonLanguage, JsonLanguage,
JsonI18n, JsonI18n,
Version, Version,
I18nAPI I18nAPI,
UserCache
}; };