fireOnHint(event);
}
}
private void fireOnHint(MessageEvent event) {
HintMessage msg = HintMessage.create(event.getDataAsString());
if (msg.isHint()) {
onHint(msg.getHint());
} else if (ClientConfig.isDebugMode()) {
if (msg.isLog()) {
Logging.getLogger().logText(msg.getLog());
} else {
Logging.getLogger().logTextError(
"Unknown message type from hintlet engine: " + msg.getType());
assert false;
}
}
}
});