Exemplo n.º 1
0
  @Override
  public void onGuiClosed() {
    super.onGuiClosed();

    for (GuiComponent guiComponent : getGuiComponents()) {
      guiComponent.onClose();
    }
  }
Exemplo n.º 2
0
  /** Called when the screen is unloaded. Used to disable keyboard repeat events */
  public void onGuiClosed() {
    super.onGuiClosed();

    if (this.mc.thePlayer != null && this.mc.thePlayer.inventory != null) {
      this.mc.thePlayer.inventoryContainer.removeCraftingFromCrafters(this.field_147059_E);
    }

    Keyboard.enableRepeatEvents(false);
  }
  public void onGuiClosed() {

    super.onGuiClosed();

    if (this.mc.thePlayer != null) {
      for (ItemStack itemStack : this.mc.thePlayer.inventory.mainInventory) {
        if (itemStack != null) {
          if (NBTHelper.hasTag(itemStack, Strings.NBT_ITEM_TRANS_GUI_OPEN)) {
            NBTHelper.removeTag(itemStack, Strings.NBT_ITEM_TRANS_GUI_OPEN);
          }
        }
      }
    }
  }
Exemplo n.º 4
0
  @Override
  public void onGuiClosed() {
    super.onGuiClosed();

    if (mc.thePlayer != null) {
      for (ItemStack itemStack : mc.thePlayer.inventory.mainInventory) {
        if (itemStack != null) {
          if (NBTHelper.hasTag(itemStack, Ref.NBT.QRD_GUI_OPEN)) {
            NBTHelper.removeTag(itemStack, Ref.NBT.QRD_GUI_OPEN);
          }
        }
      }
    }
  }
Exemplo n.º 5
0
  /** Called when the screen is unloaded. Used to disable keyboard repeat events */
  @Override
  public void onGuiClosed() {
    boolean madeTrade = false;

    // Check if a trade was made
    ContainerRecordTrading auxContainer = (ContainerRecordTrading) this.inventorySlots;
    if (auxContainer != null) {
      madeTrade = auxContainer.madeAnyTrade();
    }

    super.onGuiClosed();

    // Spawns particles if a trade was made.
    // TODO: better particle effects
    if (this.mc.thePlayer != null) {
      Entity auxVillager = (Entity) this.theIMerchant;
      if (auxVillager != null && madeTrade) {
        CustomRecordHelper.spawnTradeParticles(this.mc.thePlayer.worldObj, auxVillager, this.rand);
      }
    }
  }
Exemplo n.º 6
0
  @Override
  public void onGuiClosed() {
    super.onGuiClosed();

    Keyboard.enableRepeatEvents(false);
  }
 public void onGuiClosed ()
 {
     super.onGuiClosed();
 }
Exemplo n.º 8
0
 @Override
 public void onGuiClosed() {
   super.onGuiClosed();
 }
Exemplo n.º 9
0
 @Override
 public void onGuiClosed() {
   updateHeat(0);
   super.onGuiClosed();
 }
Exemplo n.º 10
0
 @Override
 public void onGuiClosed() {
   super.onGuiClosed();
   this.subGui = true; // in case the gui is reopened later ( i'm looking at you NEI )
 }
Exemplo n.º 11
0
 @Overridepublic
 void onGuiClosed() {
   super.onGuiClosed();
   inventorySlots.onContainerClosed(player);
 }
Exemplo n.º 12
0
 /** Called when the screen is unloaded. Used to disable keyboard repeat events */
 public void onGuiClosed() {
   super.onGuiClosed();
   Keyboard.enableRepeatEvents(false);
   this.container.removeCrafter(this);
 }
Exemplo n.º 13
0
 @Override
 public void onGuiClosed() {
   super.onGuiClosed();
   inv.learnFlag = 0;
   inv.unlearnFlag = 0;
 }