Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Legacy protocol ID exists because that format is used in EntityEquipmentPacket
It is being referred to as the legacy ID here because newer components are using
the equipment slot stream codec (the more modern mechanism for network serialization)
The legacy ID is expected to be removed eventually.