EntityStackBuilder

Builder for creating entity stacks (passenger chains) using a DSL approach.

This class provides a type-safe way to build chains of entities where each subsequent entity becomes a passenger of the previous one. Entities are added using the unary plus operator (+) within the DSL block.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(): List<Entity>

Builds and returns the list of entities in the stack.

Link copied to clipboard
operator fun Entity.unaryPlus()

Adds an entity to the stack using the unary plus operator.