コード例 #1
0
 public void onBlockBreak(BlockBreakEvent event) {
   if (event.isCancelled()) return;
   mechanicsHandler.callBlockEvent(event);
 }
コード例 #2
0
 public void onBlockRedstoneChange(BlockRedstoneEvent event) {
   if (event.getNewCurrent() == event.getOldCurrent()
       || event.getNewCurrent() > 0 && event.getOldCurrent() > 0) return;
   mechanicsHandler.callRedstoneEvent(event);
 }