Archived
0

World types

This commit is contained in:
Forwolk
2018-07-26 09:00:53 +03:00
parent 0da566acb0
commit 39b85bd64d
4 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
package mc.core.world;
public interface IWorldType {
String name();
String description();
}

View File

@@ -10,6 +10,7 @@ import java.util.UUID;
public interface World {
UUID getWorldId();
IWorldType getWorldType();
Location getSpawn();
void setSpawn(Location location);

View File

@@ -0,0 +1,18 @@
package mc.core.world;
public enum WorldType implements IWorldType {
GENERAl ("Standard world type"),
NETHER ("Nether world type"),
END ("End world type");
private final String description;
WorldType(String description) {
this.description = description;
}
@Override
public String description() {
return description;
}
}