From 1f6137d24153b62c42da129ce5d6373bbf78ee34 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Mon, 14 Dec 2020 00:10:26 +0800 Subject: The big refactor Signed-off-by: shedaniel --- .../src/main/java/me/shedaniel/rei/api/TextRepresentable.java | 7 ------- 1 file changed, 7 deletions(-) (limited to 'RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/TextRepresentable.java') 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 b346ab822..f245d629e 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 @@ -23,8 +23,6 @@ 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 me.shedaniel.rei.utils.ImmutableLiteralText; import net.fabricmc.api.EnvType; @@ -36,11 +34,6 @@ import org.jetbrains.annotations.NotNull; public interface TextRepresentable { @NotNull default Component asFormattedText() { - if (this instanceof EntryStack) { - Tooltip tooltip = ((EntryStack) this).getTooltip(PointHelper.ofMouse()); - if (tooltip != null && !tooltip.getText().isEmpty()) - return tooltip.getText().get(0); - } return ImmutableLiteralText.EMPTY; } -- cgit