本文整理匯總了Java中org.rev317.min.api.events.GameActionEvent類的典型用法代碼示例。如果您正苦於以下問題:Java GameActionEvent類的具體用法?Java GameActionEvent怎麽用?Java GameActionEvent使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
GameActionEvent類屬於org.rev317.min.api.events包,在下文中一共展示了GameActionEvent類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: intercept
import org.rev317.min.api.events.GameActionEvent; //導入依賴的package包/類
public static void intercept(int index) {
int outputIndex = 0;
Client client = Loader.getClient();
int action1 = client.getMenuAction1()[index];
int action2 = client.getMenuAction2()[index];
int action3 = client.getMenuAction3()[index];
int action4 = 0;
int actionId = client.getMenuActionId()[index];
if (DActions.debugActions()) {
if (Game.hasAction4()) {
action4 = client.getMenuAction4()[index];
System.out.println(String.format(outputs[0][outputIndex], index, action1, action2, action3, action4, actionId));
} else {
System.out.println(String.format(outputs[1][outputIndex], index, action1, action2, action3, actionId));
}
}
final GameActionEvent actionEvent = new GameActionEvent(actionId, action1, action2, action3, action4, index);
ScriptEngine.getInstance().dispatch(actionEvent);
}
示例2: dispatch
import org.rev317.min.api.events.GameActionEvent; //導入依賴的package包/類
public void dispatch(GameActionEvent event) {
for (final GameActionListener a : actionListeners) {
a.onGameAction(event);
}
}
示例3: onGameAction
import org.rev317.min.api.events.GameActionEvent; //導入依賴的package包/類
void onGameAction(GameActionEvent event);