Class EventAbstractionListener
java.lang.Object
com.sk89q.worldguard.bukkit.listener.EventAbstractionListener
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.sk89q.worldguard.protection.association.RegionAssociable
createRegionAssociable
(Cause cause) protected static BukkitConfigurationManager
Get the global configuration.protected static WorldGuardPlugin
Get the plugin.protected static BukkitWorldConfiguration
getWorldConfig
(com.sk89q.worldguard.LocalPlayer player) Get the world configuration given a player.protected static BukkitWorldConfiguration
getWorldConfig
(String world) Get the world configuration given a world.protected static BukkitWorldConfiguration
getWorldConfig
(org.bukkit.World world) protected static boolean
isRegionSupportEnabled
(org.bukkit.World world) Return whether region support is enabled.void
onBedEnter
(org.bukkit.event.player.PlayerBedEnterEvent event) void
onBlockBreak
(org.bukkit.event.block.BlockBreakEvent event) void
onBlockBurn
(org.bukkit.event.block.BlockBurnEvent event) void
onBlockDamage
(org.bukkit.event.block.BlockDamageEvent event) void
onBlockDispense
(org.bukkit.event.block.BlockDispenseEvent event) void
onBlockExp
(org.bukkit.event.block.BlockExpEvent event) void
onBlockExplode
(org.bukkit.event.block.BlockExplodeEvent event) void
onBlockFertilize
(org.bukkit.event.block.BlockFertilizeEvent event) void
onBlockFromTo
(org.bukkit.event.block.BlockFromToEvent event) void
onBlockIgnite
(org.bukkit.event.block.BlockIgniteEvent event) void
onBlockMultiPlace
(org.bukkit.event.block.BlockMultiPlaceEvent event) void
onBlockPistonExtend
(org.bukkit.event.block.BlockPistonExtendEvent event) void
onBlockPistonRetract
(org.bukkit.event.block.BlockPistonRetractEvent event) void
onBlockPlace
(org.bukkit.event.block.BlockPlaceEvent event) void
onCauldronLevelChange
(org.bukkit.event.block.CauldronLevelChangeEvent event) void
onCreatureSpawn
(org.bukkit.event.entity.CreatureSpawnEvent event) void
onEntityBlockForm
(org.bukkit.event.block.EntityBlockFormEvent event) void
onEntityChangeBlock
(org.bukkit.event.entity.EntityChangeBlockEvent event) void
onEntityCombust
(org.bukkit.event.entity.EntityCombustEvent event) void
onEntityDamage
(org.bukkit.event.entity.EntityDamageEvent event) void
onEntityDeath
(org.bukkit.event.entity.EntityDeathEvent event) void
onEntityExplode
(org.bukkit.event.entity.EntityExplodeEvent event) void
onEntityInteract
(org.bukkit.event.entity.EntityInteractEvent event) void
onEntityPickupItem
(org.bukkit.event.entity.EntityPickupItemEvent event) void
onEntityTame
(org.bukkit.event.entity.EntityTameEvent event) void
onEntityUnleash
(org.bukkit.event.entity.EntityUnleashEvent event) void
onExpBottle
(org.bukkit.event.entity.ExpBottleEvent event) void
onHangingBreak
(org.bukkit.event.hanging.HangingBreakEvent event) void
onHangingPlace
(org.bukkit.event.hanging.HangingPlaceEvent event) void
onInventoryMoveItem
(org.bukkit.event.inventory.InventoryMoveItemEvent event) void
onInventoryOpen
(org.bukkit.event.inventory.InventoryOpenEvent event) void
onLingeringApply
(org.bukkit.event.entity.AreaEffectCloudApplyEvent event) void
onLingeringSplash
(org.bukkit.event.entity.LingeringPotionSplashEvent event) void
onPlayerBucketEmpty
(org.bukkit.event.player.PlayerBucketEmptyEvent event) void
onPlayerBucketFill
(org.bukkit.event.player.PlayerBucketFillEvent event) void
onPlayerDropItem
(org.bukkit.event.player.PlayerDropItemEvent event) void
onPlayerFish
(org.bukkit.event.player.PlayerFishEvent event) void
onPlayerInteract
(org.bukkit.event.player.PlayerInteractEvent event) void
onPlayerInteractAtEntity
(org.bukkit.event.player.PlayerInteractAtEntityEvent event) void
onPlayerInteractEntity
(org.bukkit.event.player.PlayerInteractEntityEvent event) void
onPlayerItemConsume
(org.bukkit.event.player.PlayerItemConsumeEvent event) void
onPlayerPickupItem
(org.bukkit.event.player.PlayerPickupItemEvent event) void
onPlayerShearEntity
(org.bukkit.event.player.PlayerShearEntityEvent event) void
onPotionSplash
(org.bukkit.event.entity.PotionSplashEvent event) void
onSignChange
(org.bukkit.event.block.SignChangeEvent event) void
onStructureGrowEvent
(org.bukkit.event.world.StructureGrowEvent event) void
onTakeLecternBook
(org.bukkit.event.player.PlayerTakeLecternBookEvent event) void
onVehicleDamage
(org.bukkit.event.vehicle.VehicleDamageEvent event) void
onVehicleDestroy
(org.bukkit.event.vehicle.VehicleDestroyEvent event) void
Register events.
-
Constructor Details
-
EventAbstractionListener
Construct the listener.- Parameters:
plugin
- an instance of WorldGuardPlugin
-
-
Method Details
-
registerEvents
public void registerEvents()Register events. -
onBlockBreak
public void onBlockBreak(org.bukkit.event.block.BlockBreakEvent event) -
onBlockMultiPlace
public void onBlockMultiPlace(org.bukkit.event.block.BlockMultiPlaceEvent event) -
onBlockPlace
public void onBlockPlace(org.bukkit.event.block.BlockPlaceEvent event) -
onBlockBurn
public void onBlockBurn(org.bukkit.event.block.BlockBurnEvent event) -
onStructureGrowEvent
public void onStructureGrowEvent(org.bukkit.event.world.StructureGrowEvent event) -
onEntityChangeBlock
public void onEntityChangeBlock(org.bukkit.event.entity.EntityChangeBlockEvent event) -
onEntityExplode
public void onEntityExplode(org.bukkit.event.entity.EntityExplodeEvent event) -
onBlockPistonRetract
public void onBlockPistonRetract(org.bukkit.event.block.BlockPistonRetractEvent event) -
onBlockPistonExtend
public void onBlockPistonExtend(org.bukkit.event.block.BlockPistonExtendEvent event) -
onBlockDamage
public void onBlockDamage(org.bukkit.event.block.BlockDamageEvent event) -
onPlayerInteract
public void onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event) -
onEntityBlockForm
public void onEntityBlockForm(org.bukkit.event.block.EntityBlockFormEvent event) -
onEntityInteract
public void onEntityInteract(org.bukkit.event.entity.EntityInteractEvent event) -
onBlockFertilize
public void onBlockFertilize(org.bukkit.event.block.BlockFertilizeEvent event) -
onBlockIgnite
public void onBlockIgnite(org.bukkit.event.block.BlockIgniteEvent event) -
onSignChange
public void onSignChange(org.bukkit.event.block.SignChangeEvent event) -
onBedEnter
public void onBedEnter(org.bukkit.event.player.PlayerBedEnterEvent event) -
onPlayerBucketEmpty
public void onPlayerBucketEmpty(org.bukkit.event.player.PlayerBucketEmptyEvent event) -
onPlayerBucketFill
public void onPlayerBucketFill(org.bukkit.event.player.PlayerBucketFillEvent event) -
onBlockFromTo
public void onBlockFromTo(org.bukkit.event.block.BlockFromToEvent event) -
onCreatureSpawn
public void onCreatureSpawn(org.bukkit.event.entity.CreatureSpawnEvent event) -
onHangingPlace
public void onHangingPlace(org.bukkit.event.hanging.HangingPlaceEvent event) -
onHangingBreak
public void onHangingBreak(org.bukkit.event.hanging.HangingBreakEvent event) -
onVehicleDestroy
public void onVehicleDestroy(org.bukkit.event.vehicle.VehicleDestroyEvent event) -
onBlockExp
public void onBlockExp(org.bukkit.event.block.BlockExpEvent event) -
onPlayerFish
public void onPlayerFish(org.bukkit.event.player.PlayerFishEvent event) -
onExpBottle
public void onExpBottle(org.bukkit.event.entity.ExpBottleEvent event) -
onEntityDeath
public void onEntityDeath(org.bukkit.event.entity.EntityDeathEvent event) -
onPlayerInteractEntity
public void onPlayerInteractEntity(org.bukkit.event.player.PlayerInteractEntityEvent event) -
onEntityDamage
public void onEntityDamage(org.bukkit.event.entity.EntityDamageEvent event) -
onEntityCombust
public void onEntityCombust(org.bukkit.event.entity.EntityCombustEvent event) -
onEntityUnleash
public void onEntityUnleash(org.bukkit.event.entity.EntityUnleashEvent event) -
onEntityTame
public void onEntityTame(org.bukkit.event.entity.EntityTameEvent event) -
onPlayerShearEntity
public void onPlayerShearEntity(org.bukkit.event.player.PlayerShearEntityEvent event) -
onPlayerPickupItem
public void onPlayerPickupItem(org.bukkit.event.player.PlayerPickupItemEvent event) -
onEntityPickupItem
public void onEntityPickupItem(org.bukkit.event.entity.EntityPickupItemEvent event) -
onPlayerDropItem
public void onPlayerDropItem(org.bukkit.event.player.PlayerDropItemEvent event) -
onVehicleDamage
public void onVehicleDamage(org.bukkit.event.vehicle.VehicleDamageEvent event) -
onPlayerItemConsume
public void onPlayerItemConsume(org.bukkit.event.player.PlayerItemConsumeEvent event) -
onInventoryOpen
public void onInventoryOpen(org.bukkit.event.inventory.InventoryOpenEvent event) -
onInventoryMoveItem
public void onInventoryMoveItem(org.bukkit.event.inventory.InventoryMoveItemEvent event) -
onPotionSplash
public void onPotionSplash(org.bukkit.event.entity.PotionSplashEvent event) -
onBlockDispense
public void onBlockDispense(org.bukkit.event.block.BlockDispenseEvent event) -
onLingeringSplash
public void onLingeringSplash(org.bukkit.event.entity.LingeringPotionSplashEvent event) -
onLingeringApply
public void onLingeringApply(org.bukkit.event.entity.AreaEffectCloudApplyEvent event) -
onPlayerInteractAtEntity
public void onPlayerInteractAtEntity(org.bukkit.event.player.PlayerInteractAtEntityEvent event) -
onBlockExplode
public void onBlockExplode(org.bukkit.event.block.BlockExplodeEvent event) -
onTakeLecternBook
public void onTakeLecternBook(org.bukkit.event.player.PlayerTakeLecternBookEvent event) -
onCauldronLevelChange
public void onCauldronLevelChange(org.bukkit.event.block.CauldronLevelChangeEvent event) -
getPlugin
Get the plugin.- Returns:
- the plugin
-
getConfig
Get the global configuration.- Returns:
- the configuration
-
getWorldConfig
Get the world configuration given a world.- Parameters:
world
- The world to get the configuration for.- Returns:
- The configuration for
world
-
getWorldConfig
-
getWorldConfig
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)
-