Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package org.bukkit.event.block;
2
3import org.bukkit.block.Block;
4import org.bukkit.event.Cancellable;
5
6/**
7 * Called when leaves are decaying naturally.
8 * <p/>
9 * If a Leaves Decay event is cancelled, the leaves will not decay.
10 */
11public class LeavesDecayEvent extends BlockEvent implements Cancellable {
12 private boolean cancel = false;
13
14 public LeavesDecayEvent(final Block block) {
15 super(Type.LEAVES_DECAY, block);
16 }
17
18 public boolean isCancelled() {
19 return cancel;
20 }
21
22 public void setCancelled(boolean cancel) {
23 this.cancel = cancel;
24 }
25}