Skip to content

Commit 5b6fd36

Browse files
committed
remove unused postBuild
1 parent 57d104c commit 5b6fd36

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/main/java/gregtech/api/metatileentity/multiblock/ui/MultiblockUIBuilder.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import gregtech.api.util.function.FloatSupplier;
2121
import gregtech.common.ConfigHolder;
2222
import gregtech.common.items.ToolItems;
23-
import gregtech.common.mui.widget.ScrollableTextWidget;
2423

2524
import net.minecraft.item.ItemStack;
2625
import net.minecraft.network.PacketBuffer;
@@ -814,12 +813,6 @@ private void onRebuild() {
814813
}
815814
}
816815

817-
private void postRebuild() {
818-
if (this.postRebuild != null) {
819-
this.postRebuild.run();
820-
}
821-
}
822-
823816
/*
824817
* this is run on the server side to write values to the internal syncer
825818
* those values are then synced to the client and read back in the same order
@@ -848,17 +841,7 @@ public void onRebuild(Runnable onRebuild) {
848841
this.onRebuild = onRebuild;
849842
}
850843

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-
860844
private void addHoverableKey(IKey key, IDrawable... hover) {
861-
if (isServer()) return;
862845
addKey(KeyUtil.setHover(key, hover));
863846
}
864847

@@ -1044,7 +1027,6 @@ public void readOnClient(int id, PacketBuffer buf) {
10441027
getSyncer().readBuffer(buf);
10451028
onRebuild();
10461029
runAction();
1047-
postRebuild();
10481030
}
10491031
}
10501032

0 commit comments

Comments
 (0)