mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
28 lines
570 B
Java
28 lines
570 B
Java
package com.gamingmesh.jobs.container;
|
|
|
|
import java.util.HashMap;
|
|
|
|
public class ExploreRegion {
|
|
|
|
int x;
|
|
int z;
|
|
HashMap<String, ExploreChunk> chunks = new HashMap<String, ExploreChunk>();
|
|
|
|
public ExploreRegion(int x, int z) {
|
|
this.x = x;
|
|
this.z = z;
|
|
}
|
|
|
|
public void addChunk(ExploreChunk chunk) {
|
|
chunks.put(chunk.getX() + ":" + chunk.getZ(), chunk);
|
|
}
|
|
|
|
public HashMap<String, ExploreChunk> getChunks() {
|
|
return chunks;
|
|
}
|
|
|
|
public ExploreChunk getChunk(String cord) {
|
|
return chunks.get(cord);
|
|
}
|
|
}
|