aadnk / ProtocolLib

Provides read and write access to the Minecraft protocol with Bukkit.
GNU General Public License v2.0
287 stars 92 forks source link

Request: Add getItemListModifier() for window items #114

Closed ghost closed 7 years ago

ghost commented 7 years ago

The window items packet now contains a List b instead of an array ItemStack[]. Adding a getItemListModifier() and write method would prevent the common user from needing to refer to reflection to modify the packet.

dmulloy2 commented 7 years ago

I agree that it should be added, but not with the rationale. If you're meddling with packets, you should be referring to the MC source.

dmulloy2 commented 7 years ago

Added in https://github.com/dmulloy2/ProtocolLib/commit/7a9b9afe2e439a4f50b66781adab474896072674