Commit
ce64c84ca8c959a290a80a7d59b69809dad8206a
by md_5
SPIGOT-6205: Rewrite enum to/from NMS type methods
The methods would otherwise cache wrong enum types for specific enums. This would result in a `ClassCastException` at the caller location, which obviously is no fun. This broke API with `Switch#getFace` and `FaceAttachable#getAttachedFace`.