Package net.minecraft.src

Examples of net.minecraft.src.GuiScreen


import org.spoutcraft.client.gui.settings.GuiAdvancedOptions;
import org.spoutcraft.client.gui.settings.GuiSimpleOptions;

public class ScreenUtil {
  public static void open(ScreenType type) {
    GuiScreen toOpen = null;
    StatFileWriter statfile = SpoutClient.getHandle().statFileWriter;
    switch(type) {
      case CHAT_SCREEN:
        toOpen = new GuiChat();
        break;
View Full Code Here


      if (effective.size() == 0) {
        return;
      } else if (effective.size() == 1) {
        effective.iterator().next().summon(key, !keyPressed, screen);
      } else if (screen == 0 || (getPressedModifiers() != 0 && getPressedModifiers() != AbstractBinding.MOD_SHIFT)) {
        GuiScreen parent = SpoutClient.getHandle().currentScreen;
        SpoutClient.getHandle().displayGuiScreen(new GuiAmbigousInput(effective, parent));
      } else {
        GuiScreen parent = SpoutClient.getHandle().currentScreen;
        if (!(parent instanceof GuiChat)) {
          Spoutcraft.getActivePlayer().showAchievement("Multiple Bindings ...", "are assigned to Key " + Keyboard.getKeyName(key), Block.workbench.blockID);
        }
      }
    }
View Full Code Here

            if (!cfgManager.makeSureConfigurationIsLoaded()) {
                return;
            }

            // Check current GUI
            GuiScreen guiScreen = getCurrentScreen();
            if (guiScreen == null || (isValidChest(guiScreen) || isValidInventory(guiScreen))) {
                // Sorting!
                handleSorting(guiScreen);
            }
        }
View Full Code Here

        // Clone the hotbar to be able to monitor changes on it
        if (itemPickupPending) {
            onItemPickup();
        }
        GuiScreen currentScreen = getCurrentScreen();
        if (currentScreen == null || isGuiInventory(currentScreen)) {
            cloneHotbar();
        }

        // Handle sort key
View Full Code Here

    }

    private void handleConfigSwitch() {

        InvTweaksConfig config = cfgManager.getConfig();
        GuiScreen currentScreen = getCurrentScreen();

        // Switch between configurations (shortcut)
        cfgManager.getShortcutsHandler().updatePressedKeys();
        InvTweaksShortcutMapping switchMapping = cfgManager.getShortcutsHandler()
                .isShortcutDown(InvTweaksShortcutType.MOVE_TO_SPECIFIC_HOTBAR_SLOT);
View Full Code Here

     */
    @SuppressWarnings({"unchecked"})
    public InvTweaksContainerManager(Minecraft mc) {
        super(mc);
       
        GuiScreen currentScreen = getCurrentScreen();
        if (isGuiContainer(currentScreen)) {
          this.guiContainer = asGuiContainer(currentScreen);
            this.container = getContainer(this.guiContainer);
        }
        else {
View Full Code Here

TOP

Related Classes of net.minecraft.src.GuiScreen

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.