Package dev.linwood.itemmods.action
Class PacksAction
- java.lang.Object
-
- dev.linwood.itemmods.action.PacksAction
-
- All Implemented Interfaces:
CommandAction
,TranslationCommandAction
public class PacksAction extends Object implements TranslationCommandAction
-
-
Constructor Summary
Constructors Constructor Description PacksAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createPack(org.bukkit.command.CommandSender sender)
void
createPack(org.bukkit.command.CommandSender sender, @Nullable Runnable action)
void
createPack(org.bukkit.command.CommandSender sender, String name)
String
getTranslation(String key, Object... placeholders)
dev.linwood.api.translations.Translation
getTranslationNamespace()
void
openPack(org.bukkit.command.CommandSender sender, String name)
void
showChoose(org.bukkit.command.CommandSender sender, @NotNull Consumer<ItemModsPack> action)
void
showChoose(org.bukkit.command.CommandSender sender, @NotNull Consumer<ItemModsPack> action, @Nullable Consumer<org.bukkit.event.inventory.InventoryClickEvent> backAction)
boolean
showGui(org.bukkit.command.CommandSender sender)
-
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
hasTranslation
-
-
-
-
Method Detail
-
getTranslationNamespace
public dev.linwood.api.translations.Translation getTranslationNamespace()
- Specified by:
getTranslationNamespace
in interfaceTranslationCommandAction
-
showGui
public boolean showGui(org.bukkit.command.CommandSender sender)
- Specified by:
showGui
in interfaceCommandAction
-
getTranslation
public String getTranslation(String key, Object... placeholders)
- Specified by:
getTranslation
in interfaceCommandAction
- Specified by:
getTranslation
in interfaceTranslationCommandAction
-
openPack
public void openPack(org.bukkit.command.CommandSender sender, String name)
-
createPack
public void createPack(org.bukkit.command.CommandSender sender)
-
createPack
public void createPack(org.bukkit.command.CommandSender sender, @Nullable @Nullable Runnable action)
-
createPack
public void createPack(org.bukkit.command.CommandSender sender, String name) throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
-
showChoose
public void showChoose(org.bukkit.command.CommandSender sender, @NotNull @NotNull Consumer<ItemModsPack> action)
-
showChoose
public void showChoose(org.bukkit.command.CommandSender sender, @NotNull @NotNull Consumer<ItemModsPack> action, @Nullable @Nullable Consumer<org.bukkit.event.inventory.InventoryClickEvent> backAction)
-
-