public final class CannonWandUseEvent extends ToolUseEvent<CannonTool>
tool
Constructor and Description |
---|
CannonWandUseEvent(org.bukkit.entity.Player player,
CannonTool tool,
java.util.List<org.bukkit.Location> blocks)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<org.bukkit.Location> |
getBlocks()
Get all the affected blocks by the wand.
|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
getTool
public CannonWandUseEvent(org.bukkit.entity.Player player, CannonTool tool, java.util.List<org.bukkit.Location> blocks)
player
- The player who used the wand.tool
- The wand that was used.blocks
- All the affected blocks by the wand.public java.util.List<org.bukkit.Location> getBlocks()
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public static org.bukkit.event.HandlerList getHandlerList()