问题 spigot api 如何获取手持物品附魔书的附魔属性?

huamoxi_

【Lv:1】

注册
2024/08/20
消息
7
金粒
405.00金粒
// 获取到手上物品的itemStack
ItemStack itemInMainHand = player.getInventory().getItemInMainHand();

// 获取附魔书 stored 的附魔
???


spigot api 的版本是 1.20.1
 

在线会员

  • HYyy
  • aLexzz
  • Red_Maple_233
  • Kun_God
  • 冰美式太好喝
  • 南天
  • s1onehen
后退
顶部 底部