Skip to content

Fix and enhance some things#376

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

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

Conversation

@zimuya4153

@zimuya4153 zimuya4153 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Added

  • Added packet APIs:
    Packet::sendTo, Packet::sendToClients, Packet::sendToServer,
    Packet / LXL_Packet global aliases @zimuya4153
  • Added BinaryStream APIs:
    getReadPointer, setReadPointer, setData, writeBytes, readBytes,
    writeUuid @zimuya4153
  • Added server APIs:
    mc.getMotd, mc.getOnlinePlayerNum, mc.getMaxNumPlayers,
    mc.getDimensionId, mc.getDimensionName @zimuya4153
  • Added gameplay helpers:
    en.setCustomName, mc.summonMob, mc.loadMob, it.addCount,
    it.removeCount, it.setCount, system.randomUuid @zimuya4153
  • Added name access APIs:
    be.setCustomName, be.getCustomName, en.getCustomName,
    it.getDisplayName @zimuya4153
  • Added VaillanI18n API for modifying Minecraft vanilla language data
    @zimuya4153 @xianyubb

Changed

  • Improved BinaryStream:
    getData([release]) now returns ByteBuffer, does not clear by default, and
    optionally releases data after reading; createPacket(pktid[,raw]) now
    supports raw packets; scalar read* APIs were added; several numeric
    write* APIs now accept String for BigInt-friendly input
    @zimuya4153
  • Improved file and item behavior:
    File.readFrom(path[,isBinary]) now supports binary reads;
    File.writeTo(path, text) now accepts ByteBuffer;
    it.setLore([]) now clears custom lore instead of failing @zimuya4153

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.

2 participants