public void spawn() { World w = World.getInstance(); WorldPosition position = w.createPosition( template.getMap(), template.getCenter().getX(), template.getCenter().getY(), template.getCenter().getZ(), (byte) 0, 0); this.setPosition(position); w.storeObject(this); w.spawn(this); }