mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Complete some TODOs
This commit is contained in:
1 parent
548955134e
commit
4d547f80c7
27 files changed
+155
-67
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package net.draycia.carbon.api;
|
||||
|
||||
import net.kyori.registry.DefaultedRegistryGetter;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
/**
|
||||
* An extension of the DefaultedRegistryGetter that declares a defaultValue method
|
||||
* @param <K>
|
||||
* @param <V>
|
||||
*/
|
||||
public interface DefaultedKeyValueRegistry<K,V> extends DefaultedRegistryGetter<K, V> {
|
||||
|
||||
/**
|
||||
* Gets the default value.
|
||||
*
|
||||
* @return the default value
|
||||
*/
|
||||
@NonNull V defaultValue();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user