Closed tal5 closed 11 months ago
SNBT part requested on Discord.
NMSHandler#parseSNBT
SNBT
CompoundTag
EntityHelper#getRawNBT
NBT
EntityHelper#modifyRawNBT
EntityTag.all_raw_nbt
MapTag
EntityTag.raw_nbt
ElementTag.snbt_to_map
EntityHelperImpl(1.20)#getRawEntityNBT
EntityHelper
Raw NBT Encoding
SNBT part requested on Discord.
Additions
NMSHandler#parseSNBT
- parses anSNBT
string into aCompoundTag
.EntityHelper#getRawNBT
- gets an entity's rawNBT
data.EntityHelper#modifyRawNBT
- modifies an entity's rawNBT
data based on the inputCompoundTag
.EntityTag.all_raw_nbt
tag - gets an entity's entire rawNBT
data as aMapTag
.EntityTag.raw_nbt
mechanism - modifies an entity's rawNBT
data.ElementTag.snbt_to_map
tag - parses a rawSNBT
string into anNBT
MapTag
.EntityHelperImpl(1.20)#getRawEntityNBT
- util method to get an entity's entireCompoundTag
, used by both newEntityHelper
methods.Changes
Raw NBT Encoding
language meta a bit more generic, as it's no longer just for items.