Fix and enhance some things#376
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added
Packet::sendTo,Packet::sendToClients,Packet::sendToServer,Packet/LXL_Packetglobal aliases @zimuya4153BinaryStreamAPIs:getReadPointer,setReadPointer,setData,writeBytes,readBytes,writeUuid@zimuya4153mc.getMotd,mc.getOnlinePlayerNum,mc.getMaxNumPlayers,mc.getDimensionId,mc.getDimensionName@zimuya4153en.setCustomName,mc.summonMob,mc.loadMob,it.addCount,it.removeCount,it.setCount,system.randomUuid@zimuya4153pl.isSwimming,pl.isCrawling@zimuya4153be.setCustomName,be.getCustomName,en.getCustomName,it.getDisplayName@zimuya4153mc.getAllPlayerUuids([isOnlineMode])for enumerating saved player UUIDsDBSession::backup(path)for backing up SQL sessionsVaillanI18nAPI for modifying Minecraft vanilla language data@zimuya4153 @xianyubb
toSNBT([space[,format]])to all NBT object types @zimuya4153Changed
BinaryStream:getData([release])now returnsByteBuffer, does not clear by default, andoptionally releases data after reading;
createPacket(pktid[,raw])nowsupports raw packets; scalar
read*APIs were added; several numericwrite*APIs now acceptStringfor BigInt-friendly input@zimuya4153
File.readFrom(path[,isBinary])now supports binary reads;File.writeTo(path, text)now acceptsByteBuffer;it.setLore([])now clears custom lore instead of failing @zimuya4153mc.getPlayerNbt(uuid)now returnsNullwhen no saved data exists and canread online players directly;
mc.setPlayerNbt(uuid, nbt[, forceCreate, isOnlineMode])now supports optional offline record creation; player NBTAPIs now validate UUID input more strictly @zimuya4153
NbtCompound::toSNBT([space[,format]])now supports explicitly selectingSnbtFormat; one-argument usage still defaults toSnbtFormat::ForceQuote@zimuya4153
Fixed
NbtCompound::setTag@zimuya4153