EntityBuilder

class EntityBuilder<T : EntityType, C : Context>(type: T)

A builder for creating Entity objects.

Constructors

EntityBuilder
Link copied to clipboard
common
fun <T : EntityType> EntityBuilder(type: T)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

attributes
Link copied to clipboard
common
fun attributes(vararg attributes: Attribute): EntityBuilder<T, C>
Sets the supplied attributes to this builder.
behaviors
Link copied to clipboard
common
fun behaviors(vararg behaviors: Behavior<C>): EntityBuilder<T, C>
Sets the supplied behaviors to this builder.
build
Link copied to clipboard
common
fun build(): Entity<T, C>
Builds a new Entity from the contents of this builder.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
facets
Link copied to clipboard
common
fun facets(vararg facets: FacetWithContext<C>): EntityBuilder<T, C>
Sets the supplied facets to this builder.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Sources

(source)
Link copied to clipboard