this.blockEventCache[blockEventCacheIndex] = new ServerBlockEventList();
}
for (BlockEventData blockEventData : blockEventCache) {
if (this.onBlockEventReceived(blockEventData)) {
this.mcServer.getConfigurationManager().sendToAllNear((double) blockEventData.getX(), (double) blockEventData.getY(), (double) blockEventData.getZ(), 64.0D, this.provider.dimensionId, new Packet54PlayNoteBlock(blockEventData.getX(), blockEventData.getY(), blockEventData.getZ(), blockEventData.getBlockID(), blockEventData.getEventID(), blockEventData.getEventParameter()));
}
}
blockEventCache.clear();
}