aboutsummaryrefslogtreecommitdiff
path: root/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/TextRepresentable.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-08-20 22:18:59 +0800
committershedaniel <daniel@shedaniel.me>2020-08-20 22:18:59 +0800
commit38779f9b8e3804a6efa0e47d28226017e2584c13 (patch)
treea65afdd6351938108300b322de5f94ec7253aff1 /RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/TextRepresentable.java
parent2ea877295f2fd55eb208af2e296b83df6d443f84 (diff)
downloadRoughlyEnoughItems-38779f9b8e3804a6efa0e47d28226017e2584c13.tar.gz
RoughlyEnoughItems-38779f9b8e3804a6efa0e47d28226017e2584c13.tar.bz2
RoughlyEnoughItems-38779f9b8e3804a6efa0e47d28226017e2584c13.zip
Some changes to partitioning search and optimisations to asFormattedText in ItemEntryStack.
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/TextRepresentable.java')
-rw-r--r--RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/TextRepresentable.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/TextRepresentable.java b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/TextRepresentable.java
index 782ed3f40..168098f72 100644
--- a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/TextRepresentable.java
+++ b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/TextRepresentable.java
@@ -25,11 +25,11 @@ package me.shedaniel.rei.api;
import me.shedaniel.math.impl.PointHelper;
import me.shedaniel.rei.api.widgets.Tooltip;
+import me.shedaniel.rei.utils.FormattingUtils;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.text.LiteralText;
import net.minecraft.text.Text;
-import net.minecraft.util.Formatting;
import org.jetbrains.annotations.NotNull;
@Environment(EnvType.CLIENT)
@@ -46,6 +46,6 @@ public interface TextRepresentable {
@NotNull
default Text asFormatStrippedText() {
- return new LiteralText(Formatting.strip(asFormattedText().getString()));
+ return new LiteralText(FormattingUtils.stripFormatting(asFormattedText().getString()));
}
}