All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.mattstudios.mfmsg.base.internal.action.ClickAction Maven / Gradle / Ivy

package me.mattstudios.mfmsg.base.internal.action;

import me.mattstudios.mfmsg.base.internal.Format;
import org.jetbrains.annotations.NotNull;

/**
 * Click action part
 */
public final class ClickAction implements Action {

    @NotNull
    private final Format actionType;
    @NotNull
    private final String action;

    /**
     * Main constructor
     *
     * @param actionType The action {@link Format} for identifying the click type
     * @param action     The action to be resolved
     */
    public ClickAction(@NotNull final Format actionType, @NotNull final String action) {
        this.actionType = actionType;
        this.action = action;
    }

    /**
     * Gets the action {@link Format}
     *
     * @return The action type
     */
    @NotNull
    public Format getActionType() {
        return actionType;
    }

    /**
     * Gets the action text
     *
     * @return The action text
     */
    @NotNull
    public String getAction() {
        return action;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy