接口 Instantiator

    • 方法详细资料

      • 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.