mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-19 01:35:10 +01:00
Compare commits
1 Commits
a8d778eb7c
...
1bdac346b1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bdac346b1 |
@@ -1,7 +1,6 @@
|
|||||||
package eu.midnightdust.midnightcontrols.client.mixin;
|
package eu.midnightdust.midnightcontrols.client.mixin;
|
||||||
|
|
||||||
import net.minecraft.client.gui.screen.ingame.BookEditScreen;
|
import net.minecraft.client.gui.screen.ingame.BookEditScreen;
|
||||||
import net.minecraft.client.util.SelectionManager;
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.gen.Accessor;
|
import org.spongepowered.asm.mixin.gen.Accessor;
|
||||||
import org.spongepowered.asm.mixin.gen.Invoker;
|
import org.spongepowered.asm.mixin.gen.Invoker;
|
||||||
@@ -17,9 +16,6 @@ public interface BookEditScreenAccessor {
|
|||||||
@Accessor("title")
|
@Accessor("title")
|
||||||
void midnightcontrols$setTitle(String title);
|
void midnightcontrols$setTitle(String title);
|
||||||
|
|
||||||
@Accessor("currentPageSelectionManager")
|
|
||||||
SelectionManager midnightcontrols$getCurrentPageSelectionManager();
|
|
||||||
|
|
||||||
@Invoker("getCurrentPageContent")
|
@Invoker("getCurrentPageContent")
|
||||||
String midnightcontrols$getCurrentPageContent();
|
String midnightcontrols$getCurrentPageContent();
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,6 @@ public class MouseClickListener implements ScreenMouseEvents.AllowMouseClick {
|
|||||||
virtualKeyboardScreen = new VirtualKeyboardScreen(accessor.midnightcontrols$getCurrentPageContent(), (text) -> {
|
virtualKeyboardScreen = new VirtualKeyboardScreen(accessor.midnightcontrols$getCurrentPageContent(), (text) -> {
|
||||||
client.setScreen(bookEditScreen);
|
client.setScreen(bookEditScreen);
|
||||||
accessor.midnightcontrols$setPageContent(text);
|
accessor.midnightcontrols$setPageContent(text);
|
||||||
accessor.midnightcontrols$getCurrentPageSelectionManager().putCursorAtEnd();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user