diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-01-17 14:31:30 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-01-17 14:31:30 +0800 |
| commit | 7a1cf35934ef14c04f884fe6ae34282e1d6243ba (patch) | |
| tree | e84d0c5bfb9929f065544e96ecc1fb07d3496c29 /src/main/java/me/shedaniel/rei/impl/SearchArgument.java | |
| parent | b4be45e414504afb49910d766bebcd00f55b052b (diff) | |
| download | RoughlyEnoughItems-7a1cf35934ef14c04f884fe6ae34282e1d6243ba.tar.gz RoughlyEnoughItems-7a1cf35934ef14c04f884fe6ae34282e1d6243ba.tar.bz2 RoughlyEnoughItems-7a1cf35934ef14c04f884fe6ae34282e1d6243ba.zip | |
3.3.12
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/SearchArgument.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/impl/SearchArgument.java | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/SearchArgument.java b/src/main/java/me/shedaniel/rei/impl/SearchArgument.java index c833e8527..5bcbfaef5 100644 --- a/src/main/java/me/shedaniel/rei/impl/SearchArgument.java +++ b/src/main/java/me/shedaniel/rei/impl/SearchArgument.java @@ -7,7 +7,6 @@ package me.shedaniel.rei.impl; import com.google.common.collect.Lists; import me.shedaniel.rei.api.EntryStack; -import me.shedaniel.rei.api.annotations.Internal; import me.shedaniel.rei.gui.widget.QueuedTooltip; import me.shedaniel.rei.utils.CollectionUtils; import net.minecraft.client.MinecraftClient; @@ -20,14 +19,14 @@ import net.minecraft.text.Text; import net.minecraft.util.Identifier; import net.minecraft.util.registry.Registry; import org.apache.commons.lang3.StringUtils; +import org.jetbrains.annotations.ApiStatus; import java.util.Collections; import java.util.List; import java.util.Locale; import java.util.function.Function; -@Deprecated -@Internal +@ApiStatus.Internal public class SearchArgument { public static final SearchArgument ALWAYS = new SearchArgument(ArgumentType.ALWAYS, "", true); @@ -48,7 +47,7 @@ public class SearchArgument { this.include = include; } - @Deprecated + @ApiStatus.Internal public static String tryGetEntryStackName(EntryStack stack) { if (stack.getType() == EntryStack.Type.ITEM) return tryGetItemStackName(stack.getItemStack()); @@ -57,7 +56,7 @@ public class SearchArgument { return ""; } - @Deprecated + @ApiStatus.Internal public static String tryGetEntryStackTooltip(EntryStack stack) { QueuedTooltip tooltip = stack.getTooltip(0, 0); if (tooltip != null) @@ -65,7 +64,7 @@ public class SearchArgument { return ""; } - @Deprecated + @ApiStatus.Internal public static String tryGetFluidName(Fluid fluid) { Identifier id = Registry.FLUID.getId(fluid); if (I18n.hasTranslation("block." + id.toString().replaceFirst(":", "."))) @@ -73,7 +72,7 @@ public class SearchArgument { return CollectionUtils.mapAndJoinToString(id.getPath().split("_"), StringUtils::capitalize, " "); } - @Deprecated + @ApiStatus.Internal public static List<String> tryGetItemStackToolTip(ItemStack itemStack, boolean careAboutAdvanced) { if (!searchBlacklisted.contains(itemStack.getItem())) try { @@ -85,7 +84,7 @@ public class SearchArgument { return Collections.singletonList(tryGetItemStackName(itemStack)); } - @Deprecated + @ApiStatus.Internal public static String tryGetItemStackName(ItemStack stack) { if (!searchBlacklisted.contains(stack.getItem())) try { @@ -131,8 +130,7 @@ public class SearchArgument { ALWAYS } - @Deprecated - @Internal + @ApiStatus.Internal public static class SearchArguments { public static final SearchArguments ALWAYS = new SearchArguments(new SearchArgument[]{SearchArgument.ALWAYS}); private SearchArgument[] arguments; |
