From 437d1bc9a0d3f981452d6456000c5309e0ce428d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=91?= Date: Sun, 20 Oct 2024 23:22:30 +0800 Subject: [PATCH] =?UTF-8?q?[6.2.0]=20=E4=BF=AE=E5=A4=8D=20NMSItemRaw=20?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/taboolib/module/nms/test/TestNMSItemRaw.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/bukkit-nms/bukkit-nms-stable/src/main/kotlin/taboolib/module/nms/test/TestNMSItemRaw.kt b/module/bukkit-nms/bukkit-nms-stable/src/main/kotlin/taboolib/module/nms/test/TestNMSItemRaw.kt index 13c42a176..9e98570e1 100644 --- a/module/bukkit-nms/bukkit-nms-stable/src/main/kotlin/taboolib/module/nms/test/TestNMSItemRaw.kt +++ b/module/bukkit-nms/bukkit-nms-stable/src/main/kotlin/taboolib/module/nms/test/TestNMSItemRaw.kt @@ -4,8 +4,8 @@ import org.bukkit.Material import org.bukkit.inventory.ItemStack import taboolib.common.Test import taboolib.module.chat.Components -import taboolib.module.nms.setDisplayName -import taboolib.module.nms.setLore +import taboolib.module.nms.setDisplayNameComponent +import taboolib.module.nms.setLoreComponents /** * TabooLib @@ -19,10 +19,10 @@ object TestNMSItemRaw : Test() { override fun check(): List { return listOf( sandbox("NMSItemRaw:setDisplayName()") { - ItemStack(Material.STONE).itemMeta!!.setDisplayName(Components.text("啥比")) + ItemStack(Material.STONE).itemMeta!!.setDisplayNameComponent(Components.text("啥比")) }, sandbox("NMSItemRaw:setLore()") { - ItemStack(Material.STONE).itemMeta!!.setLore(listOf(Components.text("啥比"))) + ItemStack(Material.STONE).itemMeta!!.setLoreComponents(listOf(Components.text("啥比"))) } ) }