World types
This commit is contained in:
6
core/src/main/java/mc/core/world/IWorldType.java
Normal file
6
core/src/main/java/mc/core/world/IWorldType.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package mc.core.world;
|
||||
|
||||
public interface IWorldType {
|
||||
String name();
|
||||
String description();
|
||||
}
|
||||
@@ -10,6 +10,7 @@ import java.util.UUID;
|
||||
|
||||
public interface World {
|
||||
UUID getWorldId();
|
||||
IWorldType getWorldType();
|
||||
|
||||
Location getSpawn();
|
||||
void setSpawn(Location location);
|
||||
|
||||
18
core/src/main/java/mc/core/world/WorldType.java
Normal file
18
core/src/main/java/mc/core/world/WorldType.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user