-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust supplier interface injection to be from a defaulted interface …
…variant instead of base supplier
- Loading branch information
1 parent
5a04533
commit 81ca0a9
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
src/main/java/io/wispforest/owo/mixin/registry/RegistryEntryMixin.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
9 changes: 9 additions & 0 deletions
9
src/main/java/io/wispforest/owo/util/pond/OwoInjectedSupplier.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.wispforest.owo.util.pond; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public interface OwoInjectedSupplier<T> extends Supplier<T> { | ||
default T get() { | ||
throw new IllegalStateException("Injected Supplier interface has yet to be override!"); | ||
} | ||
} |
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