mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-26 14:00:14 +00:00
annotate initialize method @NotNull
This commit is contained in:
1 parent
fcffefe91d
commit
710c00b0d8
31 files changed
+95
-31
No files matched your search
+3
-1
@@ -61,13 +61,15 @@ import com.dfsek.terra.api.registry.Registry;
|
||||
import com.dfsek.terra.api.util.function.monad.Monad;
|
||||
import com.dfsek.terra.api.util.reflection.TypeKey;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class NoiseAddon implements MonadAddonInitializer {
|
||||
public static final TypeKey<Supplier<ObjectTemplate<NoiseSampler>>> NOISE_SAMPLER_TOKEN = new TypeKey<>() {
|
||||
};
|
||||
|
||||
@Override
|
||||
public Monad<?, Init<?>> initialize() {
|
||||
public @NotNull Monad<?, Init<?>> initialize() {
|
||||
return Do.with(
|
||||
Get.eventManager().map(eventManager -> eventManager.getHandler(FunctionalEventHandler.class)),
|
||||
Get.addon(),
|
||||
|
||||
Reference in new issue
Block a user