net.minecraft.client.gui.GuiYesNoCallback Java Examples

The following examples show how to use net.minecraft.client.gui.GuiYesNoCallback. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GuiCustomConfirmOpenLink.java    From Custom-Main-Menu with MIT License 5 votes vote down vote up
public GuiCustomConfirmOpenLink(GuiYesNoCallback p_i1084_1_, String p_i1084_2_, int p_i1084_3_, boolean p_i1084_4_)
{
    super(p_i1084_1_, I18n.format(p_i1084_4_ ? "chat.link.confirmTrusted" : "chat.link.confirm", new Object[0]), p_i1084_2_, p_i1084_3_);
    this.confirmButtonText = I18n.format(p_i1084_4_ ? "chat.link.open" : "gui.yes", new Object[0]);
    this.cancelButtonText = I18n.format(p_i1084_4_ ? "gui.cancel" : "gui.no", new Object[0]);
    this.copyLinkButtonText = I18n.format("chat.copy", new Object[0]);
    this.openLinkWarning = I18n.format("chat.link.warning", new Object[0]);
    this.linkText = p_i1084_2_;
}