9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

feat: swap action (#657)

This commit is contained in:
MC_XiaoHei
2025-08-05 20:33:07 +08:00
committed by GitHub
parent 12f665c066
commit c29ff9a824
4 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package org.leavesmc.leaves.entity.bot.action;
import org.bukkit.Bukkit;
/**
* Represents an action for a bot to swap items between the main hand and off-hand.
*/
public interface SwapAction extends BotAction<SwapAction> {
static SwapAction create() {
return Bukkit.getBotManager().newAction(SwapAction.class);
}
}