Interfaces fix
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user