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

@@ -8,7 +8,9 @@ import lombok.Getter;
import lombok.Setter;
import mc.core.Location;
import mc.core.world.Chunk;
import mc.core.world.IWorldType;
import mc.core.world.World;
import mc.core.world.WorldType;
import java.util.UUID;
@@ -22,6 +24,11 @@ public class FlatWorld implements World {
private Location spawn = new Location(0, 6, 0);
private Chunk chunk = new SimpleChunk();
@Override
public IWorldType getWorldType() {
return WorldType.GENERAl;
}
@Override
public Chunk getChunk(int x, int y, int z) {
return chunk;