diff --git a/src/org/jakub1221/herobrineai/HerobrineAI.java b/src/org/jakub1221/herobrineai/HerobrineAI.java index deab9bd..3eb6641 100644 --- a/src/org/jakub1221/herobrineai/HerobrineAI.java +++ b/src/org/jakub1221/herobrineai/HerobrineAI.java @@ -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 void addCustomEntity(String customName, EntityTypes.b _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); entity.b(); IRegistry.a(IRegistry.ENTITY_TYPE, customName, entity.a(customName));