What's a PacketDataSerializer?

Discussion in 'Spigot Plugin Development' started by Islandscout, Jun 4, 2018.

  1. Legit question: does it do what it says it does? If so, how do I use it? I can't find any useful documentation about it. If anyone can guide me to some docs, I will be very happy. ;)

    I'm trying to access values from an instance of PacketPlayOutEntityVelocity without reflection.
    #1 Islandscout, Jun 4, 2018
    Last edited: Jun 4, 2018
  2. konsolas


    It's a wrapper around Netty's ByteBuf with some methods used by NMS to convert packets to and from binary arrays. Many of the methods are obfuscated and there isn't any documentation - you'll have to figure out the purpose of each method by reading its code.
    • Like Like x 1
  3. Well this is going to be fun. Thanks anyway.
  4. JanTuck


  5. Oh. Well I mainly wanted to know how to use it since I want to get some values from a PacketPlayOutEntityVelocity packet.
  6. Best way to learn NMS is to cross reference it to MCP. They named things waaaay better and deobfuscated most of the code. Easiest way to do this is clone Forge into your IDE as a project and have a look around. ^_^
    • Like Like x 1
    • Agree Agree x 1
    • Informative Informative x 1
  7. Awesome. I'm gonna remember this.