Table of Contents

Interface IEntitySpawner

Namespace
Obsidian.API.Entities
Assembly
Obsidian.API.dll

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

IEntitySpawner

AtPosition(VectorF)

Position to spawn the entity at.

IEntitySpawner AtPosition(VectorF position)

Parameters

position VectorF

Entity position

Returns

IEntitySpawner

IsBurning()

Makes the entity spawn burning.

IEntitySpawner IsBurning()

Returns

IEntitySpawner

IsGlowing()

Makes the entity spawn glowing.

IEntitySpawner IsGlowing()

Returns

IEntitySpawner

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 int

The amount of arrows absorbed

Returns

IEntitySpawner

WithAbsorbedStingers(int)

Sets the amount of absorbed stingers this entity has.

IEntitySpawner WithAbsorbedStingers(int stingers)

Parameters

stingers int

Amount of absorbed stingers

Returns

IEntitySpawner

WithAmbientPotionEffect(bool)

Sets whether this entity has an ambient potion effect.

IEntitySpawner WithAmbientPotionEffect(bool ambient)

Parameters

ambient bool

Whether this entity has the ambient potion effect

Returns

IEntitySpawner

WithCustomName(string, bool)

Spawns the entity with a custom name plate.

IEntitySpawner WithCustomName(string name, bool visible = true)

Parameters

name string

The name this entity has.

visible bool

Whether the name is visible.

Returns

IEntitySpawner

WithEntityType(EntityType)

Sets the entity type to spawn.

IEntitySpawner WithEntityType(EntityType type)

Parameters

type EntityType

The entity type to spawn

Returns

IEntitySpawner