Merge branch 'main' into main

This commit is contained in:
Caixukun1919810
2024-05-15 18:56:44 +08:00
committed by GitHub
Unverified
+15 -3
View File
@@ -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
};