The best file format?

Discussion in 'Plugin Development' started by darknesschaos, Feb 12, 2011.

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

    darknesschaos

    What would be the best file format for this data?
    Code:
    # Put a # in front of items you wish to blacklist
    # BLOCKS
    1:Stone:64
    2:Grass:64
    3:Dirt:64
    4:Cobblestone:64
    5:Wooden Plank:64
    6:Sapling:64
    #7:Bedrock:64
    
    It goes on all the way to records.
    the first number is the item id, the second will be my naming scheme, and third is the maximum stack size for that item.

    Also, what would be the best way to read/write this file?
     
  2. Offline

    fullwall

    You probably don't need the more advanced features of YAML, so I'd probably suggest just using a flatfile. You could either use the Properties() methods to read, or just iterate through with a reader.
     
  3. Offline

    Plague

    I presume you will not write into it from the plugin itself, so this format is good for reading by a Scanner
     
Thread Status:
Not open for further replies.

Share This Page