mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-26 05:50:08 +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
@@ -36,6 +36,8 @@ import com.dfsek.terra.api.registry.Registry;
|
||||
import com.dfsek.terra.api.structure.Structure;
|
||||
import com.dfsek.terra.api.util.StringUtil;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class SpongeSchematicAddon implements MonadAddonInitializer {
|
||||
private static InputStream detectDecompression(InputStream is) throws IOException {
|
||||
@@ -50,7 +52,7 @@ public class SpongeSchematicAddon implements MonadAddonInitializer {
|
||||
}
|
||||
|
||||
@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