Beispiel #1
0
        protected virtual bool OnChestModifySlot(ChestModifySlotEventArgs e)
        {
            Contract.Requires <ArgumentNullException>(e != null);

            try {
                if (this.ChestModifySlot != null)
                {
                    this.ChestModifySlot(this, e);
                }
            } catch (Exception ex) {
                this.ReportEventHandlerException("ChestModifySlot", ex);
            }

            return(e.Handled);
        }
Beispiel #2
0
        protected virtual bool OnChestModifySlot(ChestModifySlotEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException();
            }

            try {
                if (this.ChestModifySlot != null)
                {
                    this.ChestModifySlot(this, e);
                }
            } catch (Exception ex) {
                this.ReportEventHandlerException("ChestModifySlot", ex);
            }

            this.WriteHadnlerDebugInfo("ChestModifySlot", e);
            return(e.Handled);
        }
        protected virtual bool OnChestModifySlot(ChestModifySlotEventArgs e)
        {
            Contract.Requires<ArgumentNullException>(e != null);

              try {
            if (this.ChestModifySlot != null)
              this.ChestModifySlot(this, e);
              } catch (Exception ex) {
            this.ReportEventHandlerException("ChestModifySlot", ex);
              }

              return e.Handled;
        }
        private void Net_ChestModifySlot(object sender, ChestModifySlotEventArgs e)
        {
            if (this.isDisposed || !this.hooksEnabled || e.Handled)
            return;

              e.Handled = this.UserInteractionHandler.HandleChestModifySlot(e.Player, e.ChestIndex, e.SlotIndex, e.NewItem);
        }