From 34b62af39b4c9a64e5c04ab8fdf5a978c1cde310 Mon Sep 17 00:00:00 2001 From: isXander Date: Fri, 12 Apr 2024 14:41:54 +0100 Subject: Custom tab api --- .../java/dev/isxander/yacl3/api/CustomTabProvider.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/main/java/dev/isxander/yacl3/api/CustomTabProvider.java (limited to 'src/main/java/dev/isxander/yacl3/api/CustomTabProvider.java') diff --git a/src/main/java/dev/isxander/yacl3/api/CustomTabProvider.java b/src/main/java/dev/isxander/yacl3/api/CustomTabProvider.java new file mode 100644 index 0000000..c890c70 --- /dev/null +++ b/src/main/java/dev/isxander/yacl3/api/CustomTabProvider.java @@ -0,0 +1,16 @@ +package dev.isxander.yacl3.api; + +import dev.isxander.yacl3.gui.YACLScreen; +import net.minecraft.client.gui.components.tabs.Tab; +import net.minecraft.client.gui.navigation.ScreenRectangle; + +/** + * Allows categories to provide custom tab windows that replaces the + * regular YACL options screen. The tabs at the top will remain visible, + * but you can now provide custom tab content for richer configurations. + *

+ * Part of the GUI API: could change with minecraft updates and is not stable + */ +public interface CustomTabProvider { + Tab createTab(YACLScreen screen, ScreenRectangle tabArea); +} -- cgit