What is World for?

Discussion in 'Plugin Development' started by matejdro, Jan 24, 2011.

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

    matejdro

    Can anyone tell me what is the point and usage of the World class?
     
  2. Offline

    Afforess

    You need to world to get information on anything pertaining to the world at large. For instance, blocks, entities, chunk, etc, are all part of a larger "world". World holds accessors to most lower objects.
     
  3. Offline

    matejdro

    Yes, but what is the point of the defining World then? Why is not this automatically added from the server to the block event since it's always the same?
     
  4. Offline

    Afforess

    Well, the server instance has support for multiple worlds, I guess in the event that someone figures out how to run more than 1 map on 1 server. Flexibility really.

    You're right though. I just save the world value in my plugin, and call it using MinecartMania.getWorld()
     
  5. Offline

    matejdro

    OK, thanks for your answers. I guess it will be used when notch figures out how to run nether on SMP, but for now it looks pointless to me. That's why asked.
     
  6. Offline

    paletas

    They can also implement Nether and report to it as a different World.
     
Thread Status:
Not open for further replies.

Share This Page