Minor comment adjustment to addCustomEntity in HerobrineAI
This commit is contained in:
parent
edb42ae3f2
commit
6eefa9cc52
@ -362,8 +362,8 @@ public class HerobrineAI extends JavaPlugin implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://www.spigotmc.org/threads/handling-custom-entity-registry-on-spigot-1-13.353426/#post-3447111
|
|
||||||
private static <T extends Entity> void addCustomEntity(String customName, EntityTypes.b<T> _func, EnumCreatureType enumCreatureType) {
|
private static <T extends Entity> void addCustomEntity(String customName, EntityTypes.b<T> _func, EnumCreatureType enumCreatureType) {
|
||||||
|
// Registers a custom entity. Adapted from https://www.spigotmc.org/threads/handling-custom-entity-registry-on-spigot-1-13.353426/#post-3447111
|
||||||
EntityTypes.a<?> entity = EntityTypes.a.a(_func, enumCreatureType);
|
EntityTypes.a<?> entity = EntityTypes.a.a(_func, enumCreatureType);
|
||||||
entity.b();
|
entity.b();
|
||||||
IRegistry.a(IRegistry.ENTITY_TYPE, customName, entity.a(customName));
|
IRegistry.a(IRegistry.ENTITY_TYPE, customName, entity.a(customName));
|
||||||
|
Loading…
Reference in New Issue
Block a user