|
20 | 20 | import gregtech.api.util.function.FloatSupplier; |
21 | 21 | import gregtech.common.ConfigHolder; |
22 | 22 | import gregtech.common.items.ToolItems; |
23 | | -import gregtech.common.mui.widget.ScrollableTextWidget; |
24 | 23 |
|
25 | 24 | import net.minecraft.item.ItemStack; |
26 | 25 | import net.minecraft.network.PacketBuffer; |
@@ -814,12 +813,6 @@ private void onRebuild() { |
814 | 813 | } |
815 | 814 | } |
816 | 815 |
|
817 | | - private void postRebuild() { |
818 | | - if (this.postRebuild != null) { |
819 | | - this.postRebuild.run(); |
820 | | - } |
821 | | - } |
822 | | - |
823 | 816 | /* |
824 | 817 | * this is run on the server side to write values to the internal syncer |
825 | 818 | * those values are then synced to the client and read back in the same order |
@@ -848,17 +841,7 @@ public void onRebuild(Runnable onRebuild) { |
848 | 841 | this.onRebuild = onRebuild; |
849 | 842 | } |
850 | 843 |
|
851 | | - /** |
852 | | - * The runnable is called after rebuilding, usually used for {@link ScrollableTextWidget#postRebuild()} |
853 | | - * |
854 | | - * @param postRebuild the runnable to run after rebuilding |
855 | | - */ |
856 | | - public void postRebuild(Runnable postRebuild) { |
857 | | - this.postRebuild = postRebuild; |
858 | | - } |
859 | | - |
860 | 844 | private void addHoverableKey(IKey key, IDrawable... hover) { |
861 | | - if (isServer()) return; |
862 | 845 | addKey(KeyUtil.setHover(key, hover)); |
863 | 846 | } |
864 | 847 |
|
@@ -1044,7 +1027,6 @@ public void readOnClient(int id, PacketBuffer buf) { |
1044 | 1027 | getSyncer().readBuffer(buf); |
1045 | 1028 | onRebuild(); |
1046 | 1029 | runAction(); |
1047 | | - postRebuild(); |
1048 | 1030 | } |
1049 | 1031 | } |
1050 | 1032 |
|
|
0 commit comments