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

com.almasb.fxgl.entity.component.ComponentHelper 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 com.almasb.fxgl.entity.Entity;

/**
 * @author Almas Baimagambetov ([email protected])
 */
public final class ComponentHelper {

    /**
     * Equivalent to component.setEntity(entity).
     * This allows us to hide setEntity on Component.
     */
    public static void setEntity(Component component, Entity entity) {
        component.setEntity(entity);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy