Interface IEntitySpawner
Can be used to spawn entities. Can be retrieved from GetNewEntitySpawner().
public interface IEntitySpawner
Methods
AsBaby()
Whether this entity is a baby entity. Only applicable to Ageable entities.
IEntitySpawner AsBaby()
Returns
AtPosition(VectorF)
Position to spawn the entity at.
IEntitySpawner AtPosition(VectorF position)
Parameters
position
VectorFEntity position
Returns
IsBurning()
Makes the entity spawn burning.
IEntitySpawner IsBurning()
Returns
IsGlowing()
Makes the entity spawn glowing.
IEntitySpawner IsGlowing()
Returns
Spawn()
Spawns the entity.
IEntity Spawn()
Returns
- IEntity
The newly spawned entity. Can be cast to the apropriate type.
WithAbsorbedArrows(int)
Sets the amount of arrows this entity has absorbed.
IEntitySpawner WithAbsorbedArrows(int arrows)
Parameters
arrows
intThe amount of arrows absorbed
Returns
WithAbsorbedStingers(int)
Sets the amount of absorbed stingers this entity has.
IEntitySpawner WithAbsorbedStingers(int stingers)
Parameters
stingers
intAmount of absorbed stingers
Returns
WithAmbientPotionEffect(bool)
Sets whether this entity has an ambient potion effect.
IEntitySpawner WithAmbientPotionEffect(bool ambient)
Parameters
ambient
boolWhether this entity has the ambient potion effect
Returns
WithCustomName(string, bool)
Spawns the entity with a custom name plate.
IEntitySpawner WithCustomName(string name, bool visible = true)
Parameters
Returns
WithEntityType(EntityType)
Sets the entity type to spawn.
IEntitySpawner WithEntityType(EntityType type)
Parameters
type
EntityTypeThe entity type to spawn