Skip to content

Commit

Permalink
More event regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 28, 2015
1 parent ad635e1 commit 967d473
Show file tree
Hide file tree
Showing 24 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public class BrewsScriptEvent extends BukkitScriptEvent implements Listener {
// @Events
// brewing stand brews (in <area>)
//
// @Regex ^on brewing stand brews( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Cancellable true
//
// @Triggers when a brewing stand brews a potion.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public class BucketEmptyScriptEvent extends BukkitScriptEvent implements Listene
// player empties bucket (in <area>)
// player empties <bucket> (in <area>)
//
// @Regex ^on player empties [^\s]+( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Triggers when a player empties a bucket.
//
// @Cancellable true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public class BucketFillScriptEvent extends BukkitScriptEvent implements Listener
// player fills bucket (in <area>)
// player fills <bucket> (in <area>)
//
// @Regex ^on player fills [^\s]+( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Triggers when a player fills a bucket.
//
// @Cancellable true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@

public class ChunkLoadScriptEvent extends ScriptEvent implements Listener {

// TODO: Replace in <world> with in <area>
// <--[event]
// @Events
// chunk loads for the first time (in <world>)
//
// @Regex ^on chunk loads for the first time( in [^\s]+)?$
//
// @Warning This event will fire *extremely* rapidly and often!
//
// @Triggers when a new chunk is loaded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@

public class ChunkUnloadScriptEvent extends ScriptEvent implements Listener {

// TODO: replace in <world> with in <area>
// <--[event]
// @Events
// chunk unloads (in <world>)
//
// @Regex ^on player unloads( in [^\s]+)?$
//
// @Warning This event will fire *extremely* rapidly and often!
//
// @Cancellable true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class FurnaceBurnsItemScriptEvent extends BukkitScriptEvent implements Li
// furnace burns item (in <area>)
// furnace burns <item> (in <area>)
//
// @Regex ^on furnace burns [^\s]+( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Cancellable true
//
// @Triggers when a furnace burns an item used as fuel.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public class FurnaceSmeltsItemScriptEvent extends BukkitScriptEvent implements L
//
// @Cancellable true
//
// @Regex ^on furnace smelts [^\s]+( into [^\s]+)?( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Triggers when a furnace smelts an item.
//
// @Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@

public class InvPicksUpItemScriptEvent extends BukkitScriptEvent implements Listener {

// TODO: Add in <area>
// <--[event]
// @Events
// inventory picks up item
// inventory picks up <item>
// <inventory type> picks up item
// <inventory type> picks up <item>
//
// @Regex ^on [^\s]+ picks up [^\s]+$
//
// @Cancellable true
//
// @Triggers when a hopper or hopper minecart picks up an item.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@

public class ItemMoveScriptEvent extends BukkitScriptEvent implements Listener {

// TODO: in <area>
// <--[event]
// @Events
// item moves from inventory (to <inventory type>)
// item moves from <inventory type> (to <inventory type>)
// <item> moves from inventory (to <inventory type>)
// <item> moves from <inventory type> (to <inventory type>)
//
// @Regex ^on [^\s]+ moves from [^\s]+( to [^\s]+)?$
//
// @Cancellable true
//
// @Triggers when an entity or block moves an item from one inventory to another. (Hopper-style movement, not player-induced movement).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class LeafDecaysScriptEvent extends BukkitScriptEvent implements Listener
// leaves decay (in <area>)
// <block> decay (in <area>)
//
// @Regex ^on [^\s]+ decay( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Cancellable true
//
// @Triggers when leaves decay.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class LightningStrikesScriptEvent extends BukkitScriptEvent implements Li
// @Events
// lightning strikes (in <area>)
//
// @Regex ^on lightning strikes( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Cancellable true
//
// @Triggers when lightning strikes in a world.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class LiquidSpreadScriptEvent extends BukkitScriptEvent implements Listen
// liquid spreads (in <area>)
// <liquid block> spreads (in <area>)
//
// @Regex ^on [^\s]+ spreads( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Cancellable true
//
// @Triggers when a liquid block spreads or dragon egg moves.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class PistonExtendsScriptEvent extends BukkitScriptEvent implements Liste
// piston extends (in <area>)
// <block> extends (in <area>)
//
// @Regex ^on [^\s]+ extends( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Cancellable true
//
// @Triggers when a piston extends.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class PistonRetractsScriptEvent extends BukkitScriptEvent implements List
// piston retracts (in <area>)
// <block> retracts (in <area>)
//
// @Regex ^on [^\s]+ retracts( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Cancellable true
//
// @Triggers when a piston retracts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class PortalCreateScriptEvent extends BukkitScriptEvent implements Listen
// @Events
// portal created (because <reason>) (in <area>)
//
// @Regex ^on portal created( because [^\s]+)?( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Cancellable true
//
// @Triggers when a portal is created.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class PotionSplashScriptEvent extends BukkitScriptEvent implements Listen
// potion splash (in <area>)
// <item> splashes (in <area>)
//
// @Regex ^on [^\s]+ splashes( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Cancellable true
//
// @Triggers when a splash potion breaks open
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public class RedstoneScriptEvent extends BukkitScriptEvent implements Listener {
// @Events
// redstone recalculated (in <area>)
//
// @Regex ^on redstone recalculated( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Warning This event fires very very rapidly!
//
// @Triggers when a redstone wire is recalculated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class SpawnChangeScriptEvent extends ScriptEvent implements Listener {
// @Events
// spawn changes
//
// @Regex ^on spawn changes$
//
// @Triggers when the world's spawn point changes.
//
// @Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class StructureGrowsScriptEvent extends BukkitScriptEvent implements List
// plant grows (naturally/from bonemeal) (in <area>)
// <plant> grows (naturally/from bonemeal) (in <area>)
//
// @Regex ^on [^\s]+ grows( naturally|from bonemeal)?( in ((notable (cuboid|ellipsoid))|([^\s]+)))?$
//
// @Cancellable true
//
// @Triggers when a structure (a tree or a mushroom) grows in a world.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class WeatherChangesScriptEvent extends ScriptEvent implements Listener {
// @Events
// weather changes/rains/clears (in <world>)
//
// @Regex ^on weather (changes|rains|clears)( in [^\s]+)?$
//
// @Cancellable true
//
// @Triggers when weather changes in a world.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class WorldInitsScriptEvent extends ScriptEvent implements Listener {
// world initializes
// <world> initializes
//
// @Regex ^on [^\s]+ initializes$
//
// @Triggers when a world is initialized.
//
// @Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class WorldLoadsScriptEvent extends ScriptEvent implements Listener {
// world loads
// <world> loads
//
// @Regex ^on [^\s]+ loads$
//
// @Triggers when a world is loaded.
//
// @Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class WorldSavesScriptEvent extends ScriptEvent implements Listener {
// world saves
// <world> saves
//
// @Regex ^on [^\s]+ saves$
//
// @Triggers when a world is saved.
//
// @Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class WorldUnloadsScriptEvent extends ScriptEvent implements Listener {
// world unloads
// <world> unloads
//
// @Regex ^on [^\s]+ unloads$
//
// @Cancellable true
//
// @Triggers when a world is unloaded.
Expand Down

0 comments on commit 967d473

Please sign in to comment.