Class WorldGuardBlockListener

java.lang.Object
com.sk89q.worldguard.bukkit.listener.WorldGuardBlockListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class WorldGuardBlockListener extends Object
The listener for block events.
  • Constructor Details

    • WorldGuardBlockListener

      public WorldGuardBlockListener(WorldGuardPlugin plugin)
      Construct the object.
      Parameters:
      plugin - The plugin instance
  • Method Details

    • onBlockBreak

      public void onBlockBreak(org.bukkit.event.block.BlockBreakEvent event)
    • onBlockFromTo

      public void onBlockFromTo(org.bukkit.event.block.BlockFromToEvent event)
    • onBlockIgnite

      public void onBlockIgnite(org.bukkit.event.block.BlockIgniteEvent event)
    • onBlockBurn

      public void onBlockBurn(org.bukkit.event.block.BlockBurnEvent event)
    • onBlockPhysics

      public void onBlockPhysics(org.bukkit.event.block.BlockPhysicsEvent event)
    • onBlockPlace

      public void onBlockPlace(org.bukkit.event.block.BlockPlaceEvent event)
    • onBlockRedstoneChange

      public void onBlockRedstoneChange(org.bukkit.event.block.BlockRedstoneEvent event)
    • onLeavesDecay

      public void onLeavesDecay(org.bukkit.event.block.LeavesDecayEvent event)
    • onBlockForm

      public void onBlockForm(org.bukkit.event.block.BlockFormEvent event)
    • onBlockSpread

      public void onBlockSpread(org.bukkit.event.block.BlockSpreadEvent event)
    • onBlockGrow

      public void onBlockGrow(org.bukkit.event.block.BlockGrowEvent event)
    • onBlockFade

      public void onBlockFade(org.bukkit.event.block.BlockFadeEvent event)
    • onBlockExplode

      public void onBlockExplode(org.bukkit.event.block.BlockExplodeEvent event)
    • registerEvents

      public void registerEvents()
      Register events.
    • getPlugin

      protected static WorldGuardPlugin getPlugin()
      Get the plugin.
      Returns:
      the plugin
    • getConfig

      protected static BukkitConfigurationManager getConfig()
      Get the global configuration.
      Returns:
      the configuration
    • getWorldConfig

      protected static BukkitWorldConfiguration getWorldConfig(String world)
      Get the world configuration given a world.
      Parameters:
      world - The world to get the configuration for.
      Returns:
      The configuration for world
    • getWorldConfig

      protected static BukkitWorldConfiguration getWorldConfig(org.bukkit.World world)
    • getWorldConfig

      protected static BukkitWorldConfiguration getWorldConfig(com.sk89q.worldguard.LocalPlayer player)
      Get the world configuration given a player.
      Parameters:
      player - The player to get the wold from
      Returns:
      The WorldConfiguration for the player's world
    • isRegionSupportEnabled

      protected static boolean isRegionSupportEnabled(org.bukkit.World world)
      Return whether region support is enabled.
      Parameters:
      world - the world
      Returns:
      true if region support is enabled
    • createRegionAssociable

      protected com.sk89q.worldguard.protection.association.RegionAssociable createRegionAssociable(Cause cause)