-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
1,736 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
src/main/java/net/sandrohc/schematic4j/nbt/ExceptionBiFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
/* Vendored version of Quertz NBT 6.1 - https://github.com/Querz/NBT */ | ||
package net.sandrohc.schematic4j.nbt; | ||
|
||
/** | ||
* A bi-function that may throw an exception. | ||
* | ||
* @param <T> First value type | ||
* @param <U> Second value type | ||
* @param <R> Return type | ||
* @param <E> Exception type | ||
*/ | ||
@FunctionalInterface | ||
public interface ExceptionBiFunction <T, U, R, E extends Exception> { | ||
public interface ExceptionBiFunction<T, U, R, E extends Exception> { | ||
|
||
/** | ||
* @param t The first value | ||
* @param u The second value | ||
* @return The return value | ||
* @throws E The exception | ||
*/ | ||
R accept(T t, U u) throws E; | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/net/sandrohc/schematic4j/nbt/ExceptionTriConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
/* Vendored version of Quertz NBT 6.1 - https://github.com/Querz/NBT */ | ||
package net.sandrohc.schematic4j.nbt; | ||
|
||
/** | ||
* A tri-consumer that may throw an exception. | ||
* | ||
* @param <T> First value type | ||
* @param <U> Second value type | ||
* @param <V> Third value type | ||
* @param <E> Exception type | ||
*/ | ||
@FunctionalInterface | ||
public interface ExceptionTriConsumer<T, U, V, E extends Exception> { | ||
|
||
/** | ||
* @param t The first value | ||
* @param u The second value | ||
* @param v The third value | ||
* @throws E The exception | ||
*/ | ||
void accept(T t, U u, V v) throws E; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.