File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/gregtech/common/mui/widget Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1313import com .cleanroommc .modularui .widgets .TextWidget ;
1414import org .jetbrains .annotations .NotNull ;
1515
16- import java .util .function .Function ;
16+ import java .util .function .Predicate ;
1717
1818public class InteractableText <T extends VirtualEntry > extends TextWidget <InteractableText <T >> implements Interactable {
1919
2020 private final T entry ;
2121 private final EntryColorSH syncHandler ;
2222
23- public InteractableText (T entry , Function <String , Boolean > setter ) {
23+ public InteractableText (T entry , Predicate <String > setter ) {
2424 super (IKey .str (entry .getColorStr ())
2525 .alignment (Alignment .CenterLeft )
2626 .color (Color .WHITE .darker (1 )));
@@ -46,14 +46,14 @@ public boolean isValidSyncHandler(SyncHandler syncHandler) {
4646
4747 private static class EntryColorSH extends SyncHandler {
4848
49- private final Function <String , Boolean > setter ;
49+ private final Predicate <String > setter ;
5050
51- private EntryColorSH (Function <String , Boolean > setter ) {
51+ private EntryColorSH (Predicate <String > setter ) {
5252 this .setter = setter ;
5353 }
5454
5555 public boolean setColor (String c ) {
56- return this .setter .apply (c );
56+ return this .setter .test (c );
5757 }
5858
5959 @ Override
You can’t perform that action at this time.
0 commit comments