Java 1.5!

(Also ninjaencoding)

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot 2011-01-01 19:35:03 +00:00
parent 76ab7321fd
commit a44ace7015
4 changed files with 114 additions and 102 deletions

View File

@ -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"> <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> <modelVersion>4.0.0</modelVersion>
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId> <artifactId>bukkit</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>Bukkit</name> <name>Bukkit</name>
<url>http://www.bukkit.org</url> <url>http://www.bukkit.org</url>
<dependencies> <build>
<dependency> <plugins>
<groupId>org.yaml</groupId> <plugin>
<artifactId>snakeyaml</artifactId> <groupId>org.apache.maven.plugins</groupId>
<version>1.7</version> <artifactId>maven-compiler-plugin</artifactId>
<type>jar</type> <configuration>
<scope>compile</scope> <source>1.5</source>
</dependency> <target>1.5</target>
</dependencies> </configuration>
</project> </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>

View File

@ -1,13 +1,13 @@
package org.bukkit.event.block; package org.bukkit.event.block;
import org.bukkit.Block; import org.bukkit.Block;
/** /**
* Not implemented yet * Not implemented yet
*/ */
public class BlockBrokenEvent extends BlockEvent { public class BlockBrokenEvent extends BlockEvent {
public BlockBrokenEvent(Type type, Block block ) { public BlockBrokenEvent(Type type, Block block ) {
super(type, block); super(type, block);
} }
} }

View File

@ -1,19 +1,19 @@
package org.bukkit.event.block; package org.bukkit.event.block;
import org.bukkit.event.Event; import org.bukkit.event.Event;
/** /**
* @author durron597 * @author durron597
* *
*/ */
public class BlockIgniteEvent extends Event { public class BlockIgniteEvent extends Event {
/** /**
* @param type * @param type
*/ */
public BlockIgniteEvent(Type type) { public BlockIgniteEvent(Type type) {
super(type); super(type);
// TODO Auto-generated constructor stub // TODO Auto-generated constructor stub
} }
} }

View File

@ -1,53 +1,53 @@
/** /**
* *
*/ */
package org.bukkit.event.block; package org.bukkit.event.block;
import org.bukkit.Block; import org.bukkit.Block;
import org.bukkit.BlockFace; import org.bukkit.BlockFace;
import org.bukkit.ItemStack; import org.bukkit.ItemStack;
import org.bukkit.Player; import org.bukkit.Player;
/** /**
* @author durron597 * @author durron597
*/ */
public class BlockRightClickedEvent extends BlockEvent { public class BlockRightClickedEvent extends BlockEvent {
protected Player clicker; protected Player clicker;
protected BlockFace direction; protected BlockFace direction;
protected ItemStack clickedWith; protected ItemStack clickedWith;
/** /**
* @param type The type of event this is * @param type The type of event this is
* @param theBlock The clicked block * @param theBlock The clicked block
* @param direction The face we clicked from * @param direction The face we clicked from
* @param clicker The player who clicked a block * @param clicker The player who clicked a block
* @param clickedWith Item in player's hand * @param clickedWith Item in player's hand
*/ */
public BlockRightClickedEvent(Type type, Block theBlock, BlockFace direction, Player clicker, ItemStack clickedWith) { public BlockRightClickedEvent(Type type, Block theBlock, BlockFace direction, Player clicker, ItemStack clickedWith) {
super(type, theBlock); super(type, theBlock);
this.direction = direction; this.direction = direction;
this.clicker = clicker; this.clicker = clicker;
this.clickedWith = clickedWith; this.clickedWith = clickedWith;
} }
/** /**
* @return the clicker * @return the clicker
*/ */
public Player getClicker() { public Player getClicker() {
return clicker; return clicker;
} }
/** /**
* @return the direction * @return the direction
*/ */
public BlockFace getDirection() { public BlockFace getDirection() {
return direction; return direction;
} }
/** /**
* @return the clickedWith * @return the clickedWith
*/ */
public ItemStack getClickedWith() { public ItemStack getClickedWith() {
return clickedWith; return clickedWith;
} }
} }