Re-implement GuiTextField without depending on the Minecraft Text Field

This commit is contained in:
johni0702
2015-11-27 15:22:06 +01:00
parent 859e9bb937
commit 6ee3ef229a
6 changed files with 648 additions and 139 deletions

View File

@@ -165,9 +165,9 @@ public class GuiReplayViewer extends GuiScreen {
popup.getYesButton().onClick();
}
}
}).onTextChanged(new Runnable() {
}).onTextChanged(new Consumer<String>() {
@Override
public void run() {
public void consume(String obj) {
popup.getYesButton().setEnabled(!nameField.getText().isEmpty());
}
});