public class EntityRegistry extends Object
| Constructor and Description |
|---|
EntityRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static CustomEntityDescriptor |
getCustomEntityDescriptor(String id) |
static Class<? extends GlowEntity> |
getEntity(Class<? extends org.bukkit.entity.Entity> clazz)
Gets the implementation class for the given entity interface class.
|
static Class<? extends GlowEntity> |
getEntity(org.bukkit.entity.EntityType type) |
static List<CustomEntityDescriptor> |
getRegisteredCustomEntities() |
static boolean |
isCustomEntityRegistered(String id) |
static void |
registerCustomEntity(CustomEntityDescriptor<? extends GlowEntity> descriptor)
Registers a custom entity type.
|
public static Class<? extends GlowEntity> getEntity(org.bukkit.entity.EntityType type)
public static Class<? extends GlowEntity> getEntity(Class<? extends org.bukkit.entity.Entity> clazz)
clazz - the entity interface classpublic static void registerCustomEntity(CustomEntityDescriptor<? extends GlowEntity> descriptor)
descriptor - the entity type to register; all fields except
CustomEntityDescriptor.getStorage() must be non-nullpublic static CustomEntityDescriptor getCustomEntityDescriptor(String id)
public static boolean isCustomEntityRegistered(String id)
public static List<CustomEntityDescriptor> getRegisteredCustomEntities()
Copyright © 2021. All rights reserved.