Quests/api/src/main/java/me/pikamug/quests/events/editor/actions/ActionsEditorPostOpenNumeri...

48 lines
1.6 KiB
Java

/*
* Copyright (c) PikaMug and contributors
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
* LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package me.pikamug.quests.events.editor.actions;
import me.pikamug.quests.convo.actions.ActionsEditorNumericPrompt;
import org.bukkit.conversations.ConversationContext;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;
public class ActionsEditorPostOpenNumericPromptEvent extends ActionsEditorEvent {
private static final HandlerList HANDLERS = new HandlerList();
private final ActionsEditorNumericPrompt prompt;
public ActionsEditorPostOpenNumericPromptEvent(final ConversationContext context, final ActionsEditorNumericPrompt prompt) {
super(context, prompt);
this.context = context;
this.prompt = prompt;
}
/**
* Returns the numeric prompt involved in this event
*
* @return Prompt which is involved in this event
*/
@Override
public ActionsEditorNumericPrompt getPrompt() {
return prompt;
}
@Override
public @NotNull HandlerList getHandlers() {
return HANDLERS;
}
public static HandlerList getHandlerList() {
return HANDLERS;
}
}