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

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

package org.bukkit.event.block;

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

/**
 * Called when a block is formed or spreads based on world conditions.
 * 

* Use {@link BlockSpreadEvent} to catch blocks that actually spread and don't * just "randomly" form. *

* Examples: *

    *
  • Snow forming due to a snow storm. *
  • Ice forming in a snowy Biome like Taiga or Tundra. *
*

* If a Block Form event is cancelled, the block will not be formed. * * @see BlockSpreadEvent */ public class BlockFormEvent extends BlockGrowEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); public BlockFormEvent(final Block block, final BlockState newState) { super(block, newState); } public static HandlerList getHandlerList() { return handlers; } @Override public HandlerList getHandlers() { return handlers; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy