diff options
| author | shedaniel <daniel@shedaniel.me> | 2021-04-12 00:36:08 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2021-04-12 00:36:08 +0800 |
| commit | 513347f841a401391f59b4c9fe3cbcb4f554f86d (patch) | |
| tree | 1348b448e43ad83aae2e2de556d520f3f716af9f /api/src/main/java/me/shedaniel | |
| parent | 6d7690b3410e6aa837089987c08598cb9ecbe45a (diff) | |
| download | RoughlyEnoughItems-513347f841a401391f59b4c9fe3cbcb4f554f86d.tar.gz RoughlyEnoughItems-513347f841a401391f59b4c9fe3cbcb4f554f86d.tar.bz2 RoughlyEnoughItems-513347f841a401391f59b4c9fe3cbcb4f554f86d.zip | |
Prepare for true sided REI
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'api/src/main/java/me/shedaniel')
| -rw-r--r-- | api/src/main/java/me/shedaniel/rei/api/common/entry/EntryStack.java | 1 | ||||
| -rw-r--r-- | api/src/main/java/me/shedaniel/rei/api/common/util/TextRepresentable.java | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/api/src/main/java/me/shedaniel/rei/api/common/entry/EntryStack.java b/api/src/main/java/me/shedaniel/rei/api/common/entry/EntryStack.java index 3b0f6b454..99dbf1014 100644 --- a/api/src/main/java/me/shedaniel/rei/api/common/entry/EntryStack.java +++ b/api/src/main/java/me/shedaniel/rei/api/common/entry/EntryStack.java @@ -49,7 +49,6 @@ import java.util.function.BiFunction; import java.util.function.Function; import java.util.function.Supplier; -@Environment(EnvType.CLIENT) public interface EntryStack<T> extends TextRepresentable, Renderer { static EntryStack<Unit> empty() { return Internals.getEntryStackProvider().empty(); diff --git a/api/src/main/java/me/shedaniel/rei/api/common/util/TextRepresentable.java b/api/src/main/java/me/shedaniel/rei/api/common/util/TextRepresentable.java index b4b0c9c0c..0cf9bc535 100644 --- a/api/src/main/java/me/shedaniel/rei/api/common/util/TextRepresentable.java +++ b/api/src/main/java/me/shedaniel/rei/api/common/util/TextRepresentable.java @@ -23,11 +23,11 @@ package me.shedaniel.rei.api.common.util; -import net.fabricmc.api.EnvType; -import net.fabricmc.api.Environment; import net.minecraft.network.chat.Component; -@Environment(EnvType.CLIENT) +/** + * A component that can be represented in {@link Component}. + */ public interface TextRepresentable { default Component asFormattedText() { return ImmutableTextComponent.EMPTY; |
