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

com.almasb.fxgl.entity.component.Required Maven / Gradle / Ivy

There is a newer version: 21.1
Show newest version
/*
 * 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.*;

/**
 * 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)
@Repeatable(RequiredComponents.class)
public @interface Required {
    Class value();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy