Talk:Slot Data

Revision as of 06:55, 7 June 2012 by Sadimusi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Clarity on "array of slot" for Set Window Items (0x68)

Would you consider elaborating further on the presentation of the slot structure and specifically the array of slot structure? Providing a python example similar to the one in the "entity metadata format" page would be very helpful. I've struggled to get read support for this packet implemented.

The Set Window Items packet sends multiple slots after eachother, prefixed with the number of slots. Here's a pseudo-python example:
def send_set_window_items(window, items):
    for item in items:
--Sadimusi 23:55, 6 June 2012 (MST)