Archived
0

Location.getChunk();

This commit is contained in:
Forwolk
2018-08-04 21:05:16 +03:00
parent 895f59189d
commit a1ee3a240e
2 changed files with 8 additions and 2 deletions

View File

@@ -6,7 +6,9 @@ package mc.core;
import lombok.Data;
import mc.core.exception.ResourceUnloadedException;
import mc.core.world.Chunk;
import mc.core.world.World;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import java.io.Serializable;
import java.lang.ref.Reference;
@@ -111,4 +113,8 @@ public class Location implements Serializable{
this.world = new WeakReference<>(world);
}
public Chunk getChunk() {
throw new NotImplementedException();
}
}

View File

@@ -21,8 +21,8 @@ import java.io.Serializable;
*
*/
public interface Region extends Serializable{
ChunkSection getChunkAt(int x, int y, int z);
void setChunk(int x, int y, int z, ChunkSection chunkSection);
Chunk getChunk (int x, int z);
void setChunk(int x, int z, Chunk chunk);
int getX();
int getZ();