This update fixes some issues regarding the API change of MMOItems to MythicLibs.
MythicMobs Items should be correctly detected again.
Remember to enable the type information for your items to let WolfyUtilities automatically update the items in other plugins like CC.
Code (YAML):
Options:
AppendType
: true
The NBT API was improved and got new additions.
For example, you can now read and edit the values of the NBTTagList.
Full example how to use the basic API
here on GitHub.
Code (Java):
NBTTagList customList
= nbt.
getTag
(
).
list
(
)
;
customList.
add
(
0, nbt.
getTag
(
).
ofIntArray
(
new
int
[
]
{
4,
543654,
235,
223,
423,
32
}
)
)
;
customList.
add
(
0, nbt.
getTag
(
).
ofIntArray
(
new
int
[
]
{
543,
345,
76,
21,
8,
65,
456,
4
}
)
)
;
customList.
add
(
0, nbt.
getTag
(
).
ofIntArray
(
new
int
[
]
{
897,
567,
98,
899,
878712,
12
}
)
)
;
wolfyCompound.
set
(
"IntArrayList", customList
)
;
//Read values
NBTTagList nbtTagList
=
(NBTTagList
) wolfyComp.
get
(
"IntArrayList"
)
;
for
(
int i
=
0
; i
< nbtTagList.
size
(
)
; i
++
)
{
System.
out.
println
(
"- "
+ nbtTagList.
getTag
(i
)
)
;
}
Changelog
- Fixed issue with CustomItems breaking in 1.14
- Added options to the NBTTagList
- Fixed MMOItems not working with the new MythicLibs
- Fixed the detection of MythicMobs items