Attempt to fix 1.16.3 branch's issues on the repository
Added the original 'wayoftime' folder back, so see if that fixed the multiple folder issue.
This commit is contained in:
parent
6b4145a67c
commit
9fa68e86ae
224 changed files with 24047 additions and 0 deletions
28
src/main/java/wayoftime/bloodmagic/util/BooleanResult.java
Normal file
28
src/main/java/wayoftime/bloodmagic/util/BooleanResult.java
Normal file
|
@ -0,0 +1,28 @@
|
|||
package wayoftime.bloodmagic.util;
|
||||
|
||||
public class BooleanResult<T>
|
||||
{
|
||||
private final boolean result;
|
||||
private final T value;
|
||||
|
||||
private BooleanResult(boolean result, T value)
|
||||
{
|
||||
this.result = result;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public boolean isSuccess()
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
public T getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
public static <T> BooleanResult<T> newResult(boolean success, T value)
|
||||
{
|
||||
return new BooleanResult<>(success, value);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue