package gregtech.api.util; public class ValidationResult { private final ValidationType type; private final T result; private ValidationResult(ValidationType type, T result) { this.type = type; this.result = result; } public ValidationType getType() { return this.type; } public T getResult() { return this.result; } public static ValidationResult of(ValidationType result, T value) { return new ValidationResult<>(result, value); } }