package net.minecraft.server; import java.util.function.Function; import java.util.function.Supplier; public class ChatComponentKeybind extends ChatBaseComponent { public static Function<String, Supplier<String>> b = (s) -> { return () -> { return s; }; }; private final String c; private Supplier<String> d; public ChatComponentKeybind(String s) { this.c = s; } @Override public String getText() { if (this.d == null) { this.d = (Supplier) ChatComponentKeybind.b.apply(this.c); } return (String) this.d.get(); } @Override public ChatComponentKeybind g() { return new ChatComponentKeybind(this.c); } @Override public boolean equals(Object object) { if (this == object) { return true; } else if (!(object instanceof ChatComponentKeybind)) { return false; } else { ChatComponentKeybind chatcomponentkeybind = (ChatComponentKeybind) object; return this.c.equals(chatcomponentkeybind.c) && super.equals(object); } } @Override public String toString() { return "KeybindComponent{keybind='" + this.c + '\'' + ", siblings=" + this.siblings + ", style=" + this.getChatModifier() + '}'; } public String j() { return this.c; } }