Archived
0

Interfaces fix

This commit is contained in:
Forwolk
2018-07-26 08:56:00 +03:00
parent e22b32b9fb
commit 0da566acb0
7 changed files with 60 additions and 4 deletions

View File

@@ -10,19 +10,25 @@ import mc.core.Location;
import mc.core.world.Chunk;
import mc.core.world.World;
import java.util.UUID;
public class FlatWorld implements World {
@Getter@Setter
private UUID worldId;
@Getter
@Setter
private Location spawn = new Location(0, 6, 0);
private Chunk chunk = new SimpleChunk();
@Override
public Chunk getChunk(int x, int z) {
public Chunk getChunk(int x, int y, int z) {
return chunk;
}
@Override
public void setChunk(int x, int z, Chunk chunk) {
public void setChunk(int x, int y, int z, Chunk chunk) {
throw new UnsupportedOperationException();
}
}