mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 12:43:16 +00:00
Ability Wheel Accepts - Chained Abilities
Lang File Cleanup / Merging Chained Ability Icon System
This commit is contained in:
1 parent
4510b3bbd1
commit
ca5461c94f
6 files changed
+179
-50
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package kamkeel.npcs.controllers.data.ability;
|
||||
|
||||
import noppes.npcs.client.gui.builder.FieldDef;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* External field definition provider for chained abilities.
|
||||
* Called during GUI initialization to allow mods to inject custom tabs/fields
|
||||
* into the chained ability configuration GUI.
|
||||
* <p>
|
||||
* Note: Although this interface references FieldDef (client-only), it is safe to
|
||||
* register on both sides because the generic type is erased at bytecode level.
|
||||
* The addFieldDefinitions method is only ever called from client-side GUI code.
|
||||
*/
|
||||
public interface IChainedAbilityFieldProvider {
|
||||
/**
|
||||
* Add field definitions to the chained ability's GUI.
|
||||
* Fields added here should use .tab() to assign them to a custom tab.
|
||||
*
|
||||
* @param chain The chained ability being configured
|
||||
* @param defs The mutable list of field definitions to add to
|
||||
*/
|
||||
void addFieldDefinitions(ChainedAbility chain, List<FieldDef> defs);
|
||||
}
|
||||
Reference in new issue
Block a user