generate chunk data without nms or obc?

Discussion in 'Plugin Development' started by Techy4198, Sep 11, 2014.

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

    Techy4198

    I want to generate data for a default end dimension, just a Bukkit Chunk object, not actually saving the chunk to a world. I currently have this:
    Code:
    Chunk chunk=((CraftWorld)world).getHandle().worldProvider.byDimension(1)
    .getChunkProvider().getOrCreateChunk(chunkx,chunkz).bukkitChunk;
    However, due to this and a few surrounding lines, I have to import the following classes:
    Code:
    net.minecraft.server.v1_7_R1.WorldProvider
    net.minecraft.server.v1_7_R1.WorldType
    org.bukkit.craftbukkit.v1_7_R1.CraftWorld
    Is there a way to do the same exact thing without NMS and OBC classes? I know it must be possible with reflection but I can't figure out how.
    Also please don't try and completely change the function of this, my plugin works perfectly at the moment, no errors, but I want to get rid of version-dependent imports.
     
Thread Status:
Not open for further replies.

Share This Page