Skip to content

Conversation

Tofaa2
Copy link
Contributor

@Tofaa2 Tofaa2 commented Jun 28, 2024

This PR aims to replace the PacketWrapper#readSomething and PacketWrapper#writeSomething with a more scalable and convenient API. Seperating types and no longer depending on Object for everything in PacketWrapper that is meant to be ByteBuf (kinda)

@Tofaa2
Copy link
Contributor Author

Tofaa2 commented Jun 28, 2024

PR Is not yet complete, this is just an example of how the API would be introduced to packetevents

@Tofaa2 Tofaa2 marked this pull request as draft August 31, 2024 08:09
@sh2kcs
Copy link

sh2kcs commented Apr 12, 2025

When will this be added?

@retrooper
Copy link
Owner

It's not complete, and it's still marked as a draft?

@Tofaa2
Copy link
Contributor Author

Tofaa2 commented May 24, 2025

Pr back to being actively worked on

return type.read(this);
}


Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@retrooper Do you think these should be kept as methods in here or static BinaryBufferType<?> creation methods. Same with map and collection and primitive arrays with varint size prefix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants