Package me.qscbm.inlayx.interaction
Class InteractionFeedback
java.lang.Object
me.qscbm.inlayx.interaction.InteractionFeedback
集中处理镶嵌与提取交互中重复出现的提示和声音.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidplayExtractSound(org.bukkit.entity.Player player, boolean success) 播放提取成功或失败对应的声音.voidplaySocketSound(org.bukkit.entity.Player player, boolean success) 播放镶嵌成功或失败对应的声音.booleansendSocketFailure(org.bukkit.entity.Player player, SocketResult result, @Nullable Gem gem, boolean hadSocketLore) 把失败的镶嵌结果转成玩家提示并播放失败声音.voidsendSocketSuccess(org.bukkit.entity.Player player) 提示玩家镶嵌成功并播放成功声音.
-
Constructor Details
-
InteractionFeedback
-
-
Method Details
-
sendSocketSuccess
public void sendSocketSuccess(org.bukkit.entity.Player player) 提示玩家镶嵌成功并播放成功声音. -
sendSocketFailure
public boolean sendSocketFailure(org.bukkit.entity.Player player, SocketResult result, @Nullable Gem gem, boolean hadSocketLore) 把失败的镶嵌结果转成玩家提示并播放失败声音.- Returns:
- true 表示宝石按配置已碎裂, 调用方需要从对应位置扣除一颗宝石
-
playSocketSound
public void playSocketSound(org.bukkit.entity.Player player, boolean success) 播放镶嵌成功或失败对应的声音. -
playExtractSound
public void playExtractSound(org.bukkit.entity.Player player, boolean success) 播放提取成功或失败对应的声音.
-