Private
constructorReadonly
durationAmount of time before the entity grows up, -1 for always a baby.
This property can throw when used.
Readonly
entityThe entity that owns this component. The entity will be undefined if it has been removed.
Readonly
growEvent that runs when this entity grows up.
This property can throw when used.
Readonly
transformThe feed item used will transform into this item upon successful interaction.
This property can throw when used.
Readonly
typeIdentifier of the component.
Static
Readonly
componentList of items that can be fed to the entity. Includes 'item' for the item name and 'growth' to define how much time it grows up by.
This function can throw errors.
Adds a timer for the entity to grow up. It can be accelerated by giving the entity the items it likes as defined by feedItems.
Example
pigAgeableInfo.js