修复问题
This commit is contained in:
+18
-18
@@ -258,7 +258,7 @@ const GMLIB_API = {
|
||||
playerPullInEntity: ll.import("GMLIB_API", "playerPullInEntity"),
|
||||
/** 根据命令空间获取翻译键名 @type {function(string):string} */
|
||||
getBlockTranslateKeyFromName: ll.import("GMLIB_API", "getBlockTranslateKeyFromName"),
|
||||
/** 获取存档种子号 @type {function():string} */
|
||||
/** 获取存档种子 @type {function():string} */
|
||||
getLevelSeed: ll.import("GMLib_ServerAPI", "getLevelSeed"),
|
||||
/** 获取方块亮度 @type {function(string,number):number} */
|
||||
getBlockLightEmission: ll.import("GMLIB_API", "getBlockLightEmission"),
|
||||
@@ -276,7 +276,7 @@ const GMLIB_API = {
|
||||
getEnchantLevel: ll.import("GMLIB_API", "getEnchantLevel"),
|
||||
/** 获取附魔名字 @type {function(string,number):number} */
|
||||
getEnchantNameAndLevel: ll.import("GMLIB_API", "getEnchantNameAndLevel"),
|
||||
/** 通过ID获取附魔命名空间 @type {function(number):string} */
|
||||
/** 通过ID获取附魔命名空间ID @type {function(number):string} */
|
||||
getEnchantTypeNameFromId: ll.import("GMLIB_API", "getEnchantTypeNameFromId"),
|
||||
/** 获取最大玩家数 @type {function():number} */
|
||||
getMaxPlayers: ll.import("GMLib_ServerAPI", "getMaxPlayers"),
|
||||
@@ -765,7 +765,7 @@ class Minecraft {
|
||||
/**
|
||||
* 强制生成实体
|
||||
* @param {FloatPos} pos 要生成的坐标
|
||||
* @param {string} name 实体命名空间
|
||||
* @param {string} name 实体命名空间ID
|
||||
* @returns {boolean} 是否成功生成实体
|
||||
*/
|
||||
static spawnEntity(pos, name) {
|
||||
@@ -775,7 +775,7 @@ class Minecraft {
|
||||
/**
|
||||
* 射弹投射物
|
||||
* @param {Entity} entity 实体对象
|
||||
* @param {string} proj 投射物命名空间
|
||||
* @param {string} proj 投射物命名空间ID
|
||||
* @param {number} [speed=2] 速度
|
||||
* @param {number} [offset=3] 偏移量
|
||||
* @returns {boolean} 是否成功投射投射物
|
||||
@@ -861,7 +861,7 @@ class Minecraft {
|
||||
|
||||
/**
|
||||
* 获取方块runtimeId
|
||||
* @param {string} block 方块命名空间
|
||||
* @param {string} block 方块命名空间ID
|
||||
* @param {number} [legacyData=0] 方块的特殊值
|
||||
* @returns {number} 方块的runtimeId
|
||||
*/
|
||||
@@ -925,8 +925,8 @@ class Minecraft {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据命名空间获取翻译键名
|
||||
* @param {string} name 方块的命名空间
|
||||
* 根据命名空间ID获取翻译键名
|
||||
* @param {string} name 方块的命名空间ID
|
||||
* @returns {string} 方块的翻译键名
|
||||
*/
|
||||
static getBlockTranslateKeyFromName(name) {
|
||||
@@ -934,7 +934,7 @@ class Minecraft {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取存档种子号
|
||||
* 获取存档种子
|
||||
*/
|
||||
static getLevelSeed() {
|
||||
return GMLIB_API.getLevelSeed();
|
||||
@@ -942,7 +942,7 @@ class Minecraft {
|
||||
|
||||
/**
|
||||
* 获取方块亮度
|
||||
* @param {string} block 方块的命名空间
|
||||
* @param {string} block 方块的命名空间ID
|
||||
* @param {number} [legacyData=0] 方块的特殊值
|
||||
* @returns {number} 方块的亮度(-1为不存在)
|
||||
*/
|
||||
@@ -975,7 +975,7 @@ class Minecraft {
|
||||
|
||||
/**
|
||||
* 获取附魔名字和等级
|
||||
* @param {string} typeName 附魔的命名空间
|
||||
* @param {string} typeName 附魔的命名空间ID
|
||||
* @param {number} level 附魔等级
|
||||
* @returns {string} 文本
|
||||
*/
|
||||
@@ -984,9 +984,9 @@ class Minecraft {
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过附魔ID获取附魔命名空间
|
||||
* 通过附魔ID获取附魔命名空间ID
|
||||
* @param {number} id 附魔ID
|
||||
* @returns {string?} 附魔的命名空间
|
||||
* @returns {string?} 附魔的命名空间ID
|
||||
*/
|
||||
static getEnchantTypeNameFromId(id) {
|
||||
const result = GMLIB_API.getEnchantTypeNameFromId(id);
|
||||
@@ -1085,7 +1085,7 @@ class Recipes {
|
||||
* @param {string} recipeId 合成表唯一标识
|
||||
* @param {string} input 输入材料
|
||||
* @param {string} output 合成结果
|
||||
* @param {Array.<"furnace"|"blast_furnace"|"smoker"|"campfire"|"soul_campfire">} [tags=["furnace"]] 材料的标签数组
|
||||
* @param {Array.<string>} [tags=["furnace"]] 材料的标签数组
|
||||
* @returns {boolean} 是否注册成功
|
||||
*/
|
||||
static registerFurnaceRecipe(recipeId, input, output, tags = ["furnace"]) {
|
||||
@@ -1099,7 +1099,7 @@ class Recipes {
|
||||
* @param {Array.<string>} ingredients 材料数组
|
||||
* @param {string} result 合成结果
|
||||
* @param {string} [count=1] 合成结果的数量
|
||||
* @param {"AlwaysUnlocked"|"PlayerHasManyItems"|"PlayerInWater"|"None"} [unlock=AlwaysUnlocked] 解锁条件(也可以填物品命名空间)
|
||||
* @param {string} [unlock=AlwaysUnlocked] 解锁条件(也可以填物品命名空间ID)
|
||||
* @returns {boolean} 是否注册成功
|
||||
*/
|
||||
static registerShapedRecipe(recipeId, shape, ingredients, result, count = 1, unlock = "AlwaysUnlocked") {
|
||||
@@ -1112,7 +1112,7 @@ class Recipes {
|
||||
* @param {Array.<string>} ingredients 合成材料
|
||||
* @param {string} result 合成结果
|
||||
* @param {number} [count=1] 合成数量
|
||||
* @param {"AlwaysUnlocked"|"PlayerHasManyItems"|"PlayerInWater"|"None"} [unlock=AlwaysUnlocked] 解锁条件(也可以填物品命名空间)
|
||||
* @param {string} [unlock=AlwaysUnlocked] 解锁条件(也可以填物品命名空间ID)
|
||||
* @returns {boolean} 是否注册成功
|
||||
*/
|
||||
static registerShapelessRecipe(recipeId, ingredients, result, count = 1, unlock = "AlwaysUnlocked") {
|
||||
@@ -1975,7 +1975,7 @@ LLSE_Player.prototype.clearSpawnPoint =
|
||||
LLSE_Entity.prototype.shootProjectile =
|
||||
/**
|
||||
* 射弹投射物
|
||||
* @param {string} proj 投射物命名空间
|
||||
* @param {string} proj 投射物命名空间ID
|
||||
* @param {number} [speed=2] 速度
|
||||
* @param {number} [offset=3] 偏移量
|
||||
* @returns {boolean} 是射弹投射物
|
||||
@@ -2170,7 +2170,7 @@ LLSE_Item.prototype.getLegalEnchants =
|
||||
LLSE_Item.prototype.applyEnchant =
|
||||
/**
|
||||
* 添加附魔
|
||||
* @param {string} typeName 附魔的命名空间
|
||||
* @param {string} typeName 附魔的命名空间ID
|
||||
* @param {number} level 等级
|
||||
* @param {boolean} allowNonVanilla 允许非原版附魔
|
||||
* @returns {boolean} 是否附魔成功
|
||||
@@ -2190,7 +2190,7 @@ LLSE_Item.prototype.removeEnchants =
|
||||
LLSE_Item.prototype.hasEnchant =
|
||||
/**
|
||||
* 判断是否拥有附魔
|
||||
* @param {number} typeName 附魔的命名空间
|
||||
* @param {number} typeName 附魔的命名空间ID
|
||||
* @returns {boolean} 是否拥有附魔
|
||||
*/
|
||||
function (typeName) {
|
||||
|
||||
Reference in New Issue
Block a user