refactor createBlockState to use new error API

This commit is contained in:
dfsek
2025-12-29 22:33:07 -07:00
parent cb08401536
commit c4a366112e
6 changed files with 28 additions and 7 deletions

View File

@@ -9,4 +9,8 @@ public interface Invalid {
default <T> Either<Invalid, T> left() {
return Either.left(this);
}
default IllegalArgumentException toIllegal() {
return new IllegalArgumentException(message());
}
}