protected virtual bool OnChestPlace(ChestPlaceEventArgs e) { Contract.Requires <ArgumentNullException>(e != null); try { if (this.ChestPlace != null) { this.ChestPlace(this, e); } } catch (Exception ex) { this.ReportEventHandlerException("ChestPlace", ex); } return(e.Handled); }
protected virtual bool OnChestPlace(ChestPlaceEventArgs e) { if (e == null) { throw new ArgumentNullException(); } try { if (this.ChestPlace != null) { this.ChestPlace(this, e); } } catch (Exception ex) { this.ReportEventHandlerException("ChestPlace", ex); } this.WriteHadnlerDebugInfo("ChestPlace", e); return(e.Handled); }
protected virtual bool OnChestPlace(ChestPlaceEventArgs e) { Contract.Requires<ArgumentNullException>(e != null); try { if (this.ChestPlace != null) this.ChestPlace(this, e); } catch (Exception ex) { this.ReportEventHandlerException("ChestPlace", ex); } return e.Handled; }
private void Net_ChestPlace(object sender, ChestPlaceEventArgs e) { if (this.isDisposed || !this.hooksEnabled || e.Handled) return; e.Handled = this.UserInteractionHandler.HandleChestPlace(e.Player, e.Location, e.ChestStyle); }