Validates this element and returns a Result of type Unit, with an optional exception extending ResourcePackValidationException. This API will probably be improved in the future.
A Result.
The resource pack.