aboutsummaryrefslogtreecommitdiff
path: root/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-08-27 19:47:47 +0800
committershedaniel <daniel@shedaniel.me>2020-08-27 19:47:47 +0800
commit5bf10e476366e9aff291d55c050a324734bae911 (patch)
treeb056d52c273c55d6e4e6d86da3abd971e6cdbf1e /RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java
parent6104964f60bac00a4ac1359bd244d361e50786bd (diff)
downloadRoughlyEnoughItems-5bf10e476366e9aff291d55c050a324734bae911.tar.gz
RoughlyEnoughItems-5bf10e476366e9aff291d55c050a324734bae911.tar.bz2
RoughlyEnoughItems-5bf10e476366e9aff291d55c050a324734bae911.zip
Some Nullable and NotNull annotations
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java')
-rw-r--r--RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java
index bb0cb8a2b..154d5b191 100644
--- a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java
+++ b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ScreenHelper.java
@@ -57,6 +57,7 @@ import net.minecraft.world.InteractionResult;
import net.minecraft.world.item.ItemStack;
import org.apache.logging.log4j.util.TriConsumer;
import org.jetbrains.annotations.ApiStatus;
+import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.LinkedHashSet;
@@ -95,15 +96,17 @@ public class ScreenHelper implements ClientModInitializer, REIHelper {
}
@Override
+ @Nullable
public TextFieldWidget getSearchTextField() {
return searchField;
}
@Override
- public List<ItemStack> getInventoryStacks() {
+ public @NotNull List<ItemStack> getInventoryStacks() {
return inventoryStacks;
}
+ @Nullable
public static OverlaySearchField getSearchField() {
return (OverlaySearchField) getInstance().getSearchTextField();
}
@@ -215,7 +218,7 @@ public class ScreenHelper implements ClientModInitializer, REIHelper {
}
@Override
- public ResourceLocation getDefaultDisplayTexture() {
+ public @NotNull ResourceLocation getDefaultDisplayTexture() {
return isDarkThemeEnabled() ? DISPLAY_TEXTURE_DARK : DISPLAY_TEXTURE;
}