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