added getter for custom gui registries
This commit is contained in:
@@ -39,6 +39,10 @@ public class CustomGui {
|
|||||||
return gui;
|
return gui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Map<String, CustomGui> registries() {
|
||||||
|
return new HashMap<>(registry);
|
||||||
|
}
|
||||||
|
|
||||||
public static void handleRegistriesClick(InventoryClickEvent event) {
|
public static void handleRegistriesClick(InventoryClickEvent event) {
|
||||||
String title = event.getView().getTitle();
|
String title = event.getView().getTitle();
|
||||||
if (registry.containsKey(title)) {
|
if (registry.containsKey(title)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user