org.pixel.ext.ecs.lifecycle.Attachable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pixel-ext-ecs Show documentation
Show all versions of pixel-ext-ecs Show documentation
Modular Java/Kotlin 2D Game Framework.
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