diff --git a/lib/GMLIB_API-JS.js b/lib/GMLIB_API-JS.js index 3ba482a..45b4ed2 100644 --- a/lib/GMLIB_API-JS.js +++ b/lib/GMLIB_API-JS.js @@ -391,6 +391,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 { @@ -844,7 +856,7 @@ class I18nAPI { } }; -class data { +class UserCache { constructor() { throw new Error("Static class cannot be instantiated"); } @@ -872,7 +884,7 @@ class data { static getUuidByName(name){ return GMLIB_API.getUuidByName(name); } -} +}; LLSE_Player.prototype.toEntity = function () { return GMLIB_API.PlayerToEntity(this); @@ -910,5 +922,5 @@ module.exports = { JsonI18n, Version, I18nAPI, - data + UserCache }; \ No newline at end of file