
com.almasb.fxgl.entity.component.Required Maven / Gradle / Ivy
/*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB ([email protected]).
* See LICENSE for details.
*/
package com.almasb.fxgl.entity.component;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Adds a new dependency to this component on the provided component.
* When this component is added to an entity and the provided component is missing,
* an exception will be thrown.
*
* @author Almas Baimagambetov ([email protected])
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Required {
Class extends Component> value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy