src/authoring/entities/InteractableEntity.java
@Override
	public void add(Component c) {
		if (c != null) {
			if (this.contains(c)) {
				this.removeByName(c.getKey());
			}
			this.components.add(c);
		}
	}
/**
	 * Adds a given component to the entity. Removes a component with the same key if it already exists.
	 * @param c Component object
	 */
Adds a given component to the entity. Removes a component with the same key if it already exists.
@param c Component object
Adds a given component to the entity . Removes a component with the same key if it already exists . @param c Component object
@Override
	public void add(Component c) {
		if (c != null) {
			if (this.contains(c)) {
				this.removeByName(c.getKey());
			}
			this.components.add(c);
		}
	}
@ Override public void add ( Component c ) { if ( c != null ) { if ( this . contains ( c ) ) { this . removeByName ( c . getKey ( ) ) ; } this . components . add ( c ) ; } }
Adds a given component to the entity.
Adds a given component to the entity .