retrooper / packetevents

Precision meets performance—a powerful tool for mastering Minecraft packet manipulation with speed and finesse.
GNU General Public License v3.0
541 stars 152 forks source link

Give access to ItemStack#getEnchantmentsTagName #420

Closed jtJava closed 2 years ago

jtJava commented 2 years ago

Is your feature request related to a problem? Please describe. In my plugin I have crasher checks that look at the NBT of creative items. One of them looks at enchants, which is different per version. It would be nice if I could use the getEnchantmentsTagName method.

Describe the solution you'd like private -> public

Describe alternatives you've considered to solve your solution without us adding this as a feature? Right now I am doing the following: image

MWHunter commented 2 years ago

Fixed by https://github.com/retrooper/packetevents/commit/055f473964fe443bf2c4117d2ac3c0a9adc47105