Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Add ItemStack array serialization methods

Open kennytv opened this issue 1 year ago • 2 comments

Serializing multiple items to bytes isn't trivial, so often beginners fall into the trap of using output IO streams and Bukkit serialization instead, so these provide helpful extra methods to deal with item arrays.

Also kept the serialization methods exposed in API as a sort of textbook example/nudge in the right direction of what should be used instead of object streams

kennytv avatar Apr 04 '24 15:04 kennytv

While the api output still provides null items, I would not enforce air, otherwise you either produce inconsistent output from input, or break easy use from api input

kennytv avatar May 28 '24 10:05 kennytv

So whats the consensus now?

Kinqdos avatar Jun 07 '24 17:06 Kinqdos