From 81a092f8c18b1ca59eea1fce107077d836a088f2 Mon Sep 17 00:00:00 2001 From: sndmax Date: Tue, 11 Jul 2023 16:54:00 +0300 Subject: [PATCH] Propagate ba47d3a817d6e044b22a6d29d507c90e21e86a87 commit commit to 1.19.1 --- src/main/java/eu/pb4/sgui/api/GuiHelpers.java | 8 +- .../elements/AnimatedGuiElementBuilder.java | 13 +-- .../sgui/api/elements/GuiElementBuilder.java | 14 +-- .../java/eu/pb4/sgui/api/gui/BookGui.java | 2 +- .../eu/pb4/sgui/api/gui/GuiInterface.java | 19 ++- .../java/eu/pb4/sgui/api/gui/SignGui.java | 2 +- .../api/gui/layered/BackendSimpleGui.java | 5 - .../eu/pb4/sgui/impl/PlayerExtensions.java | 2 +- .../eu/pb4/sgui/mixin/ScreenHandlerMixin.java | 2 +- .../mixin/ServerPlayNetworkHandlerMixin.java | 109 ++++++++++-------- .../sgui/mixin/ServerPlayerEntityMixin.java | 18 +-- .../java/eu/pb4/sgui/testmod/SGuiTest.java | 13 ++- 12 files changed, 118 insertions(+), 89 deletions(-) diff --git a/src/main/java/eu/pb4/sgui/api/GuiHelpers.java b/src/main/java/eu/pb4/sgui/api/GuiHelpers.java index 72240b4..d9dd3e7 100644 --- a/src/main/java/eu/pb4/sgui/api/GuiHelpers.java +++ b/src/main/java/eu/pb4/sgui/api/GuiHelpers.java @@ -8,17 +8,23 @@ import net.minecraft.network.packet.s2c.play.ScreenHandlerSlotUpdateS2CPacket; import net.minecraft.screen.ScreenHandlerType; import net.minecraft.server.network.ServerPlayerEntity; +import net.minecraft.text.Style; +import net.minecraft.text.TextColor; +import net.minecraft.util.Formatting; import javax.annotation.Nullable; +import java.util.function.UnaryOperator; public final class GuiHelpers { + public static final UnaryOperator