mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 23:55:10 +00:00
Effect Map Register + Effect Command WIP
This commit is contained in:
1 parent
3240970252
commit
58cf52fd1f
3 files changed
+143
-3
No files matched your search
@@ -49,8 +49,9 @@ public class CustomEffectController implements ICustomEffectHandler {
|
||||
return Instance;
|
||||
}
|
||||
|
||||
public void registerEffectMap(int index, HashMap<Integer, CustomEffect> effectHashMap){
|
||||
indexMapper.put(index, effectHashMap);
|
||||
public <T extends CustomEffect> void registerEffectMap(int index, HashMap<Integer, T> effectHashMap) {
|
||||
HashMap<Integer, CustomEffect> map = new HashMap<>(effectHashMap);
|
||||
indexMapper.put(index, map);
|
||||
}
|
||||
|
||||
public void load() {
|
||||
|
||||
Reference in new issue
Block a user