package de.eightbitboy.ecorealms.world;

import de.eightbitboy.ecorealms.map.MapEntity;
import de.eightbitboy.ecorealms.map.Position;

public class DummyEntity implements MapEntity {

	private Position position;

	public DummyEntity(Position position) {
		this.position = position;
	}

	@Override
	public Position getPosition() {
		return position;
	}

	@Override
	public int getSizeX() {
		return 1;
	}

	@Override
	public int getSizeY() {
		return 1;
	}

	@Override
	public String toString() {
		return getClass().getName() + position.toString();
	}
}

@@ -34,16 +34,161 @@
 world;%0A%0A
+import com.badlogic.gdx.graphics.Color;%0Aimport com.badlogic.gdx.graphics.g3d.ModelInstance;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A
 import d
@@ -271,16 +271,77 @@
 osition;
+%0Aimport de.eightbitboy.ecorealms.world.factory.CuboidFactory;
 %0A%0Apublic
@@ -379,16 +379,39 @@
 apEntity
+, ModelInstanceProvider
  %7B%0A%0A%09pri
@@ -438,76 +438,268 @@
 on;%0A
-%0A%09public DummyEntity(Position position) %7B%0A%09%09this.position = position
+%09private List%3CModelInstance%3E instances = new ArrayList%3CModelInstance%3E();%0A%0A%09public DummyEntity(Position position) %7B%0A%09%09this.position = position;%0A%0A%09%09ModelInstance ground = CuboidFactory.getCuboid(1, 1, 5, Color.BROWN);%0A%09%09ground.transform.setToTranslation(0, 0, 0)
 ;%0A%09%7D
@@ -965,11 +965,96 @@
 ng();%0A%09%7D
+%0A%0A%09@Override%0A%09public List%3CModelInstance%3E getModelInstances() %7B%0A%09%09return instances;%0A%09%7D
 %0A%7D%0A

Add model to DummyEntity