Java 类net.minecraft.client.gui.GuiListExtended.IGuiListEntry 实例源码

项目:Toms-Mod    文件:GuiResearchTable.java   
@Override
protected void actionPerformed(GuiButton button) throws IOException {
    if (button.id == 200) {
        if (list.selected != -1) {
            IGuiListEntry e = list.getListEntry(list.selected);
            Research res = null;
            if (e instanceof ResearchEntry) {
                res = ((ResearchEntry) e).button.research;
            }
            sendButtonUpdate(5, te, ResearchHandler.getId(res));
        }
        this.mc.displayGuiScreen(this.parent);
    } else if (button.id == 201) {
        this.mc.displayGuiScreen(this.parent);
    }
}
项目:GimmeTime    文件:GuiScreenAlarmConfig.java   
@Override
protected void actionPerformed(GuiButton button) {
    IGuiListEntry entry = alarmList.getListEntry(alarmList.getSelected());
    if (button.enabled) {
        switch (button.id) {
            case 0:
                if (entry == null)
                    break;
            case 1:
                mc.displayGuiScreen(new GuiScreenEditAlarm(this, ((button.id == 0 && entry instanceof GuiAlarmEntry) ? (((GuiAlarmEntry) entry).getAlarm()) : null), button.id == 1));
                break;
            case 2:
                if (entry instanceof GuiAlarmEntry)
                    mc.displayGuiScreen(new GuiYesNo(
                            this,
                            StatCollector.translateToLocal("gui.alarmConfig.delete.question"),
                            StatCollector.translateToLocalFormatted(((GuiAlarmEntry) entry).getAlarm().getTitle()),
                            alarmList.getSelected()));
                break;
            default:
                mc.displayGuiScreen(parent);
        }
    }
}
项目:ServerObserver    文件:GuiHandler.java   
private ServerData getServerData(final GuiMultiplayer mpgui, final int index) {
    if (index<0)
        return null;
    final IGuiListEntry guilistextended$iguilistentry = this.compat.getListEntry(mpgui, index);
    if (guilistextended$iguilistentry instanceof ServerListEntryNormal)
        return this.compat.getServerData((ServerListEntryNormal) guilistextended$iguilistentry);
    return null;
}
项目:ServerObserver    文件:Compat.java   
@Override
public IGuiListEntry getListEntry(final GuiMultiplayer mpgui, final int index) {
    return mpgui.serverListSelector.getListEntry(index);
}
项目:ServerObserver    文件:Compat.java   
@Override
public IGuiListEntry getListEntry(final GuiMultiplayer mpgui, final int index) {
    return mpgui.serverListSelector.getListEntry(index);
}
项目:ServerObserver    文件:Compat.java   
@Override
public IGuiListEntry getListEntry(final GuiMultiplayer mpgui, final int index) {
    return mpgui.serverListSelector.getListEntry(index);
}
项目:ServerObserver    文件:Compat.java   
@Override
public IGuiListEntry getListEntry(final GuiMultiplayer mpgui, final int index) {
    return mpgui.serverListSelector.getListEntry(index);
}
项目:ServerObserver    文件:Compat.java   
@Override
public IGuiListEntry getListEntry(final GuiMultiplayer mpgui, final int index) {
    return mpgui.serverListSelector.getListEntry(index);
}
项目:ServerObserver    文件:Compat.java   
@Override
public IGuiListEntry getListEntry(final GuiMultiplayer mpgui, final int index) {
    return mpgui.field_146803_h.getListEntry(index);
}
项目:Toms-Mod    文件:GuiResearchTable.java   
@Override
public IGuiListEntry getListEntry(int index) {
    return this.researchList.get(index);
}
项目:Dimensional-Pockets    文件:GuiListExtendedAbstract.java   
@Override
public IGuiListEntry getListEntry(int slot) {
    return entries.get(slot);
}
项目:OmnisCore    文件:GuiListExtendedAbstract.java   
@Override
public IGuiListEntry getListEntry(int slot) {
    return entries.get(slot);
}
项目:ServerObserver    文件:ICompat.java   
IGuiListEntry getListEntry(GuiMultiplayer mpgui, int index);