All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pixel.ext.ecs.lifecycle.Attachable Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
package org.pixel.ext.ecs.lifecycle;

public interface Attachable {

    /**
     * Called when a new parent is attached.
     *
     * @param parent         The new parent.
     * @param previousParent The previous parent or null if there was none.
     */
    void attached(T parent, T previousParent);

    /**
     * Called when a parent is detached.
     *
     * @param previousParent The previous parent.
     */
    void detached(T previousParent);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy