All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.event.block.BlockBurnEvent Maven / Gradle / Ivy

package org.bukkit.event.block;

import org.bukkit.block.Block;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;

/**
 * Called when a block is destroyed as a result of being burnt by fire.
 * 

* If a Block Burn event is cancelled, the block will not be destroyed as a * result of being burnt by fire. */ public class BlockBurnEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancelled; public BlockBurnEvent(final Block block) { super(block); this.cancelled = false; } public static HandlerList getHandlerList() { return handlers; } public boolean isCancelled() { return cancelled; } public void setCancelled(boolean cancel) { this.cancelled = cancel; } @Override public HandlerList getHandlers() { return handlers; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy