Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
1cce32d
feat: add default pattern values loading in ZButtonLoader
1robie Dec 4, 2025
62ccc4c
fix: reload edit cached item
1robie Dec 9, 2025
171be80
Merge remote-tracking branch 'origin/developement' into developement
1robie Dec 18, 2025
e0a1dee
feat: add saveOwnerInPDC flag to CustomItemData and update item handl…
1robie Jan 7, 2026
c0a60bc
feat: add resin trim material to TrimHelper
1robie Jan 7, 2026
f23c1d6
feat: implement action patterns and enhance action loading logic
1robie Jan 7, 2026
d7406ec
fix: resolve new Avast false positive on VirusTotal
1robie Jan 8, 2026
fbdde0b
feat: add actions_patterns system and legacy message support for toasts
1robie Jan 8, 2026
1735e38
refactor: enhance nullability annotations and improve method signatur…
1robie Jan 8, 2026
676da35
refactor: add nullability annotations to ConfigDialogBuilder and Conf…
1robie Jan 8, 2026
3792472
Merge branch 'develop' into developement
1robie Jan 8, 2026
68490dc
feat: add console usage capability to commands and update related cla…
1robie Jan 9, 2026
6b838a0
fix: update console usage configuration to disable by default
1robie Jan 9, 2026
0fbd48b
refactor: add @Override annotations to hasPermission and openConfig m…
1robie Jan 9, 2026
386854c
Merge remote-tracking branch 'origin/developement' into developement
1robie Jan 9, 2026
5763422
fix: update registerCommand method to include console usage capability
1robie Jan 9, 2026
70236c9
refactor: add @NotNull annotations to method parameters and return ty…
1robie Jan 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion API/src/main/java/fr/maxlego08/menu/api/ButtonManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
import fr.maxlego08.menu.api.loader.ActionLoader;
import fr.maxlego08.menu.api.loader.ButtonLoader;
import fr.maxlego08.menu.api.loader.PermissibleLoader;
import fr.maxlego08.menu.api.pattern.ActionPattern;
import fr.maxlego08.menu.api.requirement.Action;
import fr.maxlego08.menu.api.requirement.Permissible;
import fr.maxlego08.menu.api.requirement.Requirement;
import fr.maxlego08.menu.api.utils.Loader;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.Plugin;
import org.jetbrains.annotations.NotNull;

import java.io.File;
import java.util.Collection;
Expand All @@ -34,7 +36,7 @@ public interface ButtonManager {
*
* @param button The {@link ButtonLoader} instance to register.
*/
void register(ButtonLoader button);
void register(@NotNull ButtonLoader button);

/**
* Unregisters an existing {@link ButtonLoader}, ceasing its button creation responsibilities.
Expand Down Expand Up @@ -142,6 +144,8 @@ public interface ButtonManager {
*/
List<Action> loadActions(List<Map<String, Object>> elements, String path, File file);

List<Action> loadActions(List<Map<String, Object>> elements, String path, File file, @NotNull List<ActionPattern> defaultActions, boolean useSuccess, boolean stopOnEmpty);

/**
* Converts a list of map elements from a configuration file into a list of {@link Action} objects.
*
Expand All @@ -154,6 +158,8 @@ public interface ButtonManager {
*/
List<Action> loadActions(YamlConfiguration configuration, String path, File file);

List<Action> loadActions(YamlConfiguration configuration, String path, File file, @NotNull List<ActionPattern> defaultActions, boolean useSuccess, boolean stopOnEmpty);

List<Requirement> loadRequirements(YamlConfiguration configuration, String path, File file) throws InventoryException;

Requirement loadRequirement(YamlConfiguration configuration, String path, File file) throws InventoryException;
Expand Down
Loading
Loading