How to force Map generation?

Discussion in 'Plugin Development' started by ccrama, Jul 25, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    ccrama

    Hello Bukkit,

    How would I go about forcing map generation in a chunk of my choice? Is it even possible with the current API?

    Thanks,
    ccrama
     
  2. Offline

    stormneo7

    I've heard that if you did
    Code:
    World w = Bukkit.getWorld("world");
    w.getBlockAt(x, y, z);
    It will generate the chunk at that location. I'm not 100% sure so don't quote me.
     
  3. Offline

    ccrama

    stormneo7 Well I'm not trying to generate a chunk. By "map" I meant map item.
     
  4. Offline

    artish1

    ccrama

    I was looking through the Javadocs and i've noticed these 2 classes: MapRenderer(This you might want to use to render all of the Map you want, and MapView (That actual map i believe)

    EDIT: I've also found MapCanvas, MapCanvas has methods for custom editing though.
    Example: drawImage(), drawText(), etc.
     
Thread Status:
Not open for further replies.

Share This Page