mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
Cast register animation to builtin
This commit is contained in:
1 parent
9d7ad714a1
commit
0883d7fb94
1 file changed
+6
@@ -5,6 +5,7 @@ import kamkeel.npcs.controllers.data.ability.AbilityController;
|
||||
import noppes.npcs.LogWriter;
|
||||
import noppes.npcs.controllers.AnimationController;
|
||||
import noppes.npcs.controllers.data.Animation;
|
||||
import noppes.npcs.controllers.data.BuiltInAnimation;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
@@ -47,6 +48,11 @@ public class Register<T> {
|
||||
this.modClass = modClass;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Animation register(String factoryName, Supplier<Animation> factory) {
|
||||
return (BuiltInAnimation) super.register(factoryName, factory);
|
||||
}
|
||||
|
||||
public void register() {
|
||||
try {
|
||||
for (Map.Entry<String, Supplier<Animation>> entry : entries.entrySet()) {
|
||||
|
||||
Reference in new issue
Block a user