From 84e4cf20f1312f7f8cb66df3ed237a6a94e42cb1 Mon Sep 17 00:00:00 2001 From: Tsubasa6848 <116721335+Tsubasa6848@users.noreply.github.com> Date: Wed, 15 May 2024 18:43:05 +0800 Subject: [PATCH] fix: add missing api --- lib/GMLIB_API-JS.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lib/GMLIB_API-JS.js b/lib/GMLIB_API-JS.js index e961a05..a5407a1 100644 --- a/lib/GMLIB_API-JS.js +++ b/lib/GMLIB_API-JS.js @@ -382,6 +382,18 @@ class Minecraft { static resourcePackTranslate(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 { @@ -835,6 +847,10 @@ class I18nAPI { } }; +class UserCache { + +}; + LLSE_Player.prototype.toEntity = function () { return GMLIB_API.PlayerToEntity(this); } @@ -870,5 +886,6 @@ module.exports = { JsonLanguage, JsonI18n, Version, - I18nAPI + I18nAPI, + UserCache }; \ No newline at end of file