java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemCustomModelData

public class ItemCustomModelData extends Object
Custom model data was completely rewritten with 1.21.4.

Before 1.21.4, this used to be a single integer.
With 1.21.4, this is now a holder of many elements.

If possible, use ComponentTypes.ITEM_MODEL instead for specifying which model an item should have.

When working with legacy versions, the first element in the floats will represent the legacy single integer, just like Mojang is handling this.