diff options
-rw-r--r-- | pom.xml | 46 | ||||
-rw-r--r-- | src/main/java/org/bukkit/event/block/BlockBrokenEvent.java | 26 | ||||
-rw-r--r-- | src/main/java/org/bukkit/event/block/BlockIgniteEvent.java | 38 | ||||
-rw-r--r-- | src/main/java/org/bukkit/event/block/BlockRightClickedEvent.java | 106 |
4 files changed, 114 insertions, 102 deletions
@@ -1,17 +1,29 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.bukkit</groupId>
- <artifactId>bukkit</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>Bukkit</name>
- <url>http://www.bukkit.org</url>
- <dependencies>
- <dependency>
- <groupId>org.yaml</groupId>
- <artifactId>snakeyaml</artifactId>
- <version>1.7</version>
- <type>jar</type>
- <scope>compile</scope>
- </dependency>
- </dependencies>
-</project>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>org.bukkit</groupId> + <artifactId>bukkit</artifactId> + <version>0.0.1-SNAPSHOT</version> + <name>Bukkit</name> + <url>http://www.bukkit.org</url> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <target>1.5</target> + </configuration> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>org.yaml</groupId> + <artifactId>snakeyaml</artifactId> + <version>1.7</version> + <type>jar</type> + <scope>compile</scope> + </dependency> + </dependencies> +</project> diff --git a/src/main/java/org/bukkit/event/block/BlockBrokenEvent.java b/src/main/java/org/bukkit/event/block/BlockBrokenEvent.java index 1cd4615f..03615d7a 100644 --- a/src/main/java/org/bukkit/event/block/BlockBrokenEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockBrokenEvent.java @@ -1,13 +1,13 @@ -package org.bukkit.event.block;
-
-import org.bukkit.Block;
-
-/**
- * Not implemented yet
- */
-public class BlockBrokenEvent extends BlockEvent {
-
- public BlockBrokenEvent(Type type, Block block ) {
- super(type, block);
- }
-}
+package org.bukkit.event.block; + +import org.bukkit.Block; + +/** + * Not implemented yet + */ +public class BlockBrokenEvent extends BlockEvent { + + public BlockBrokenEvent(Type type, Block block ) { + super(type, block); + } +} diff --git a/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java b/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java index c8b3f884..62745b34 100644 --- a/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java @@ -1,19 +1,19 @@ -package org.bukkit.event.block;
-
-import org.bukkit.event.Event;
-
-/**
- * @author durron597
- *
- */
-public class BlockIgniteEvent extends Event {
-
- /**
- * @param type
- */
- public BlockIgniteEvent(Type type) {
- super(type);
- // TODO Auto-generated constructor stub
- }
-
-}
+package org.bukkit.event.block; + +import org.bukkit.event.Event; + +/** + * @author durron597 + * + */ +public class BlockIgniteEvent extends Event { + + /** + * @param type + */ + public BlockIgniteEvent(Type type) { + super(type); + // TODO Auto-generated constructor stub + } + +} diff --git a/src/main/java/org/bukkit/event/block/BlockRightClickedEvent.java b/src/main/java/org/bukkit/event/block/BlockRightClickedEvent.java index bce2e1ae..ba5b6bb3 100644 --- a/src/main/java/org/bukkit/event/block/BlockRightClickedEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockRightClickedEvent.java @@ -1,53 +1,53 @@ -/**
- *
- */
-package org.bukkit.event.block;
-
-import org.bukkit.Block;
-import org.bukkit.BlockFace;
-import org.bukkit.ItemStack;
-import org.bukkit.Player;
-
-/**
- * @author durron597
- */
-public class BlockRightClickedEvent extends BlockEvent {
- protected Player clicker;
- protected BlockFace direction;
- protected ItemStack clickedWith;
-
- /**
- * @param type The type of event this is
- * @param theBlock The clicked block
- * @param direction The face we clicked from
- * @param clicker The player who clicked a block
- * @param clickedWith Item in player's hand
- */
- public BlockRightClickedEvent(Type type, Block theBlock, BlockFace direction, Player clicker, ItemStack clickedWith) {
- super(type, theBlock);
- this.direction = direction;
- this.clicker = clicker;
- this.clickedWith = clickedWith;
- }
-
- /**
- * @return the clicker
- */
- public Player getClicker() {
- return clicker;
- }
-
- /**
- * @return the direction
- */
- public BlockFace getDirection() {
- return direction;
- }
-
- /**
- * @return the clickedWith
- */
- public ItemStack getClickedWith() {
- return clickedWith;
- }
-}
+/** + * + */ +package org.bukkit.event.block; + +import org.bukkit.Block; +import org.bukkit.BlockFace; +import org.bukkit.ItemStack; +import org.bukkit.Player; + +/** + * @author durron597 + */ +public class BlockRightClickedEvent extends BlockEvent { + protected Player clicker; + protected BlockFace direction; + protected ItemStack clickedWith; + + /** + * @param type The type of event this is + * @param theBlock The clicked block + * @param direction The face we clicked from + * @param clicker The player who clicked a block + * @param clickedWith Item in player's hand + */ + public BlockRightClickedEvent(Type type, Block theBlock, BlockFace direction, Player clicker, ItemStack clickedWith) { + super(type, theBlock); + this.direction = direction; + this.clicker = clicker; + this.clickedWith = clickedWith; + } + + /** + * @return the clicker + */ + public Player getClicker() { + return clicker; + } + + /** + * @return the direction + */ + public BlockFace getDirection() { + return direction; + } + + /** + * @return the clickedWith + */ + public ItemStack getClickedWith() { + return clickedWith; + } +} |