/*
* Copyright 2013 MovingBlocks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.terasology.world.internal;
import org.terasology.engine.SimpleUri;
/**
* Summary information on a world.
*
*/
public class WorldInfo {
private String title = "";
private String seed = "";
private long time;
private SimpleUri worldGenerator = new SimpleUri();
public WorldInfo() {
}
public WorldInfo(String title, String seed, long time, SimpleUri worldGenerator) {
if (title != null) {
this.title = title;
}
if (seed != null) {
this.seed = seed;
}
if (worldGenerator != null) {
this.worldGenerator = worldGenerator;
}
this.time = time;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
if (title != null) {
this.title = title;
}
}
public String getSeed() {
return seed;
}
public void setSeed(String seed) {
if (seed != null) {
this.seed = seed;
}
}
public long getTime() {
return time;
}
public void setTime(long time) {
this.time = time;
}
public SimpleUri getWorldGenerator() {
return worldGenerator;
}
public void setWorldGenerator(SimpleUri worldGenerator) {
this.worldGenerator = worldGenerator;
}
}