mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-23 08:38:51 +00:00
refactor createBlockState to use new error API
This commit is contained in:
@@ -9,4 +9,8 @@ public interface Invalid {
|
||||
default <T> Either<Invalid, T> left() {
|
||||
return Either.left(this);
|
||||
}
|
||||
|
||||
default IllegalArgumentException toIllegal() {
|
||||
return new IllegalArgumentException(message());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user