List 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.
isValid
isValid(): boolean
实验性
返回 boolean
Whether the component is valid.
备注
Returns whether the component is valid. A component is
considered valid if its owner is valid, in addition to any
addition to any additional validation required by the
component.
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.