Closed tal5 closed 4 months ago
ItemHelper#setCustomData
setNbtData
CustomNBT
ItemHelper#get/setCustomData
containsKey
get
null
CompoundTag#getCompound
CompoundTag
CompoundTagBuilder#create(CompoundTag)
CustomNBT#hasCustomNBT
getCustomNBT
Entity
Changes
ItemHelper#setCustomData
now redirects tosetNbtData
on <1.19.CustomNBT
's custom data related methods now useItemHelper#get/setCustomData
.CustomNBT
methods (replacingcontainsKey
&get
withget
and anull
check, the new util methods, etc.).Additions
CompoundTag#getCompound
- util to get aCompoundTag
by key.CompoundTagBuilder#create(CompoundTag)
- creates a builder from aCompoundTag
, or a new builder if it'snull
.Removals
CustomNBT#hasCustomNBT
&getCustomNBT
(Entity
variants) were removed, as they don't seem to be used anymore.