public class EntitySpawner extends Object
| Constructor and Description |
|---|
EntitySpawner(NukkitServer server) |
| Modifier and Type | Method and Description |
|---|---|
<T extends BaseEntity> |
registerEntity(Class<T> clazz,
EntityFactory<T> factory) |
<T extends Entity> |
spawnEntity(Class<? extends Entity> clazz,
com.flowpowered.math.vector.Vector3f position,
NukkitLevel level) |
<T extends Entity> |
unregisterEntity(Class<T> clazz) |
public EntitySpawner(NukkitServer server)
public <T extends BaseEntity> void registerEntity(@Nonnull Class<T> clazz, @Nonnull EntityFactory<T> factory) throws Exception
ExceptionCopyright © 2017–2020 NukkitX. All rights reserved.