Skip to content

Fix and enhance some things#376

Open
zimuya4153 wants to merge 3 commits into
LiteLDev:developfrom
zimuya4153:develop
Open

Fix and enhance some things#376
zimuya4153 wants to merge 3 commits into
LiteLDev:developfrom
zimuya4153:develop

Conversation

@zimuya4153

@zimuya4153 zimuya4153 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Added

  • Added packet sending APIs: Packet::sendTo, Packet::sendToClients and Packet::sendToServer
  • Added BinaryStream APIs: getReadPointer, setReadPointer, setData, writeBytes, writeUuid and writeNormalizedFloat
  • Added server APIs: mc.getMotd, mc.getOnlinePlayerNum, mc.getMaxNumPlayers, mc.getDimensionId and mc.getDimensionName

Changed

  • BinaryStream::getData([clear]) now supports the optional clear parameter and returns ByteBuffer instead of String
  • BinaryStream::createPacket(pktid[,raw]) now supports creating raw packets
  • Allowed string arguments for several BinaryStream::write* numeric APIs to better support BigInt values

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.

1 participant