Posted November 19, 20168 yr Is it possible to convert an NBTTagCompound to a byteArray and then retrieve a NBTTagCompound from a byteArray. I have an NBTTagCompound which I'd need to send over the network.
November 19, 20168 yr Is it possible to convert an NBTTagCompound to a byteArray and then retrieve a NBTTagCompound from a byteArray. I have an NBTTagCompound which I'd need to send over the network. Look at SPacketUpdateTileEntity it passes a NBTTagCompound. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
November 19, 20168 yr If you have a PacketBuffer instance, you can use PacketBuffer.writeCompoundTag and PacketBuffer.readCompoundTag, otherwise if you just have a ByteBuf you can use ByteBufUtils.writeTag and ByteBufUtils.readTag. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.