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

ru.cwcode.tkach.refreshmenu.inventory.ingredient.action.Action Maven / Gradle / Ivy

package ru.cwcode.tkach.refreshmenu.inventory.ingredient.action;

import ru.cwcode.tkach.config.relocate.com.fasterxml.jackson.annotation.JsonSubTypes;
import ru.cwcode.tkach.config.relocate.com.fasterxml.jackson.annotation.JsonTypeInfo;
import org.bukkit.event.inventory.ClickType;
import ru.cwcode.tkach.refreshmenu.MenuContext;

@JsonTypeInfo(
   use = JsonTypeInfo.Id.NAME,
   include = JsonTypeInfo.As.PROPERTY,
   property = "type")
@JsonSubTypes({
   @JsonSubTypes.Type(value = ConsoleCommandAction.class, name = "consoleCommand"),
   @JsonSubTypes.Type(value = PlayerCommandAction.class, name = "playerCommand"),
   @JsonSubTypes.Type(value = SendMessageAction.class, name = "sendMessage"),
   @JsonSubTypes.Type(value = SetViewAction.class, name = "setView"),
   @JsonSubTypes.Type(value = CloseInventoryAction.class, name = "closeInventory"),
})
public interface Action {
  void accept(MenuContext context, ClickType clickType);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy