-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a super-interface for ModifierModule for just a module with…
… hooks Will be useful in simplifying ModifierHookMap usages without requiring it be serializable. May have other usages in the future. Adding to 1.18 instead of 1.19 as it will make documenting this stuff easier
- Loading branch information
1 parent
3e685d1
commit 50def7e
Showing
3 changed files
with
20 additions
and
13 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/main/java/slimeknights/tconstruct/library/modifiers/modules/ModifierHookProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package slimeknights.tconstruct.library.modifiers.modules; | ||
|
||
import slimeknights.tconstruct.library.modifiers.ModifierHook; | ||
|
||
import java.util.List; | ||
|
||
/** Interface to simplify building of modifier hook maps */ | ||
public interface ModifierHookProvider { | ||
/** Gets the default list of hooks this module implements. */ | ||
List<ModifierHook<?>> getDefaultHooks(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters