Package dev.linwood.itemmods.action.pack
Class TemplateAction
- java.lang.Object
-
- dev.linwood.itemmods.action.pack.TemplateAction
-
- All Implemented Interfaces:
CommandAction
,TranslationCommandAction
public class TemplateAction extends Object implements TranslationCommandAction
-
-
Constructor Summary
Constructors Constructor Description TemplateAction(PackObject packObject, Class<? extends CustomPackAsset> assetClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description dev.linwood.api.translations.Translation
getTranslationNamespace()
static boolean
showChoose(org.bukkit.command.CommandSender sender, String namespace, @NotNull Consumer<CustomTemplate> action)
static boolean
showChoose(org.bukkit.command.CommandSender sender, String namespace, @NotNull Consumer<CustomTemplate> action, @Nullable Consumer<org.bukkit.event.inventory.InventoryClickEvent> backAction)
boolean
showGui(org.bukkit.command.CommandSender sender)
boolean
showGui(org.bukkit.command.CommandSender sender, @Nullable Consumer<org.bukkit.event.inventory.InventoryClickEvent> backAction)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.linwood.itemmods.action.CommandAction
handleCommand, tabComplete
-
Methods inherited from interface dev.linwood.itemmods.action.TranslationCommandAction
getTranslation, hasTranslation
-
-
-
-
Constructor Detail
-
TemplateAction
public TemplateAction(PackObject packObject, Class<? extends CustomPackAsset> assetClass)
-
-
Method Detail
-
showChoose
public static boolean showChoose(org.bukkit.command.CommandSender sender, String namespace, @NotNull @NotNull Consumer<CustomTemplate> action)
-
showChoose
public static boolean showChoose(org.bukkit.command.CommandSender sender, String namespace, @NotNull @NotNull Consumer<CustomTemplate> action, @Nullable @Nullable Consumer<org.bukkit.event.inventory.InventoryClickEvent> backAction)
-
showGui
public boolean showGui(org.bukkit.command.CommandSender sender)
- Specified by:
showGui
in interfaceCommandAction
-
getTranslationNamespace
public dev.linwood.api.translations.Translation getTranslationNamespace()
- Specified by:
getTranslationNamespace
in interfaceTranslationCommandAction
-
showGui
public boolean showGui(org.bukkit.command.CommandSender sender, @Nullable @Nullable Consumer<org.bukkit.event.inventory.InventoryClickEvent> backAction)
-
-