Java 类net.minecraft.server.PersistentCollection 实例源码

项目:DiffUtils    文件:CraftServer_1710.java   
@Override
@Deprecated
public CraftMapView getMap(short id) {
    PersistentCollection collection = console.worlds.get(0).worldMaps;
    WorldMap worldmap = (WorldMap) collection.get(WorldMap.class, "map_" + id);
    if (worldmap == null) {
        return null;
    }
    return worldmap.mapView;
}
项目:CraftBukkit    文件:CraftServer.java   
@Override
@Deprecated
public CraftMapView getMap(short id) {
    PersistentCollection collection = console.worlds.get(0).worldMaps;
    WorldMap worldmap = (WorldMap) collection.get(WorldMap.class, "map_" + id);
    if (worldmap == null) {
        return null;
    }
    return worldmap.mapView;
}
项目:Tweakkit-Server    文件:CraftServer.java   
@Override
@Deprecated
public CraftMapView getMap(short id) {
    PersistentCollection collection = console.worlds.get(0).worldMaps;
    WorldMap worldmap = (WorldMap) collection.get(WorldMap.class, "map_" + id);
    if (worldmap == null) {
        return null;
    }
    return worldmap.mapView;
}