package com.punchline.javalib.entities.templates;

import com.badlogic.gdx.utils.Disposable;
import com.punchline.javalib.entities.Entity;
import com.punchline.javalib.entities.EntityWorld;

/**
 * Base class for entity templates.
 * @author Natman64
 *
 */
public interface EntityTemplate extends Disposable {
	
	/**
	 * Creates an entity.
	 * @param e The entity to be built
	 * @param physicsWorld An EntityWorld.
	 * @param args Arguments.
	 * @return An {@link Entity} of this template.
	 */
	public Entity buildEntity(Entity e, EntityWorld world, Object... args);
	
}

@@ -517,16 +517,22 @@
 dEntity(
+final 
 Entity e

Allow use of Entity for anonymous inner classes within build templates.