Editing a chunk snapshot for use with SendChunkChange

Discussion in 'Plugin Development' started by Trc202, Sep 13, 2011.

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

    Trc202

    I am wanting to send blocks to the player. I have tried send block change and did not find it to be what I needed. From what I can tell the method sendChunkChange takes a ChunkSnapshot and sends it to the player. My problem is that I am unable to edit the snapshot to replace any blocks.
    zonedabone's issue where he introduced sendChunkChange.
    @zonedabone
    Hoping you might be able to help with this. Would be especially grateful if you provided your source from Nox.


    Thanks for your time,

    Trc202
     
  2. Offline

    zonedabone

    to make nox I used a slightly modded version of chunksnapshot. Basically I added methods to modify the id. I then used spout to hook chunk packets, took their data edited it an let it send away. If you'd like to see my full source i'll upload it, though the class is a bit messy, it works.
     
  3. Offline

    Trc202

    I would love to see it (if you don't mind).
     
  4. Offline

    zonedabone

    Ok. Here's the source. Of course you need spout =P
     

    Attached Files:

    • NOX.zip
      File size:
      11.2 KB
      Views:
      14
Thread Status:
Not open for further replies.

Share This Page