接口 Instantiator
-
- 所有超级接口:
Serializable
public interface Instantiator extends Serializable
Contract for implementors responsible for instantiating entity/component instances.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Objectinstantiate()Perform the requested instantiation.Objectinstantiate(Serializable id)Perform the requested entity instantiation.booleanisInstance(Object object)Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.
-
-
-
方法详细资料
-
instantiate
Object instantiate(Serializable id)
Perform the requested entity instantiation. This form is never called for component instantiation, only entity instantiation.- 参数:
id- The id of the entity to be instantiated.- 返回:
- An appropriately instantiated entity.
-
instantiate
Object instantiate()
Perform the requested instantiation.- 返回:
- The instantiated data structure.
-
isInstance
boolean isInstance(Object object)
Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.- 参数:
object- The object to be checked.- 返回:
- True is the object does represent an instance of the underlying entity/component.
-
-