Server-side multiworld support with several improvements overal.
This commit is contained in:
parent
2d62966fb0
commit
bae9c9f4db
20 changed files with 398 additions and 296 deletions
|
|
@ -1,15 +1,28 @@
|
|||
package org.dynmap;
|
||||
|
||||
import org.bukkit.World;
|
||||
|
||||
public abstract class MapTile {
|
||||
private World world;
|
||||
private MapType map;
|
||||
|
||||
public World getWorld() {
|
||||
return world;
|
||||
}
|
||||
|
||||
public MapType getMap() {
|
||||
return map;
|
||||
}
|
||||
|
||||
public abstract String getName();
|
||||
public abstract String getFilename();
|
||||
|
||||
public MapTile(MapType map) {
|
||||
public MapTile(World world, MapType map) {
|
||||
this.world = world;
|
||||
this.map = map;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return getFilename().hashCode() ^ getWorld().hashCode();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue