[NMS/Packets] Can someone explain this to me in somewhat more detail?

Discussion in 'Plugin Development' started by Cirno, Mar 6, 2014.

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

    Cirno

    According to wiki.vg, the Maps packet has the capability of:
    If the first byte of the array is 1, the rest of the bytes are in groups of three: (data, x, y). The lower half of the data is the type (always 0 under vanilla) and the upper half is the direction.

    From what I'm interpreting from this is that (psuedocode):
    Code:
    if firstByte == 1 then
        for every group of 3 in data:
            color = group[0]
            x = group[1]
            y = group[2]
            set pixel at x, y to color
       endfor
    endif
     
  2. Offline

    RawCode

    wiki.vg

    what about reading bukkit API and to ignore random 3rd party sites?
     
  3. Offline

    Gater12

    RawCode
    Had you stole a look from the site?
     
  4. Offline

    xTrollxDudex

  5. Offline

    Cirno

    >posts question regarding nms info from wiki.vg

    >gets told to use wiki.vg

    ok.

    xTrollxDudex

    Thanks :p
     
    ZeusAllMighty11 likes this.
Thread Status:
Not open for further replies.

Share This Page