Cleaned up documentation, added lacking Java annotations.

This commit is contained in:
sk89q
2011-02-18 15:49:50 -08:00
parent e5a25496b2
commit e94c1d4874
49 changed files with 269 additions and 140 deletions

View File

@ -66,6 +66,7 @@ public class BukkitPlayerBlockBag extends BlockBag {
*
* @param id
*/
@Override
public void fetchBlock(int id) throws BlockBagException {
if (id == 0) {
throw new IllegalArgumentException("Can't fetch air block");
@ -111,6 +112,7 @@ public class BukkitPlayerBlockBag extends BlockBag {
*
* @param id
*/
@Override
public void storeBlock(int id) throws BlockBagException {
if (id == 0) {
throw new IllegalArgumentException("Can't store air block");
@ -163,6 +165,7 @@ public class BukkitPlayerBlockBag extends BlockBag {
/**
* Flush any changes. This is called at the end.
*/
@Override
public void flushChanges() {
if (items != null) {
player.getInventory().setContents(items);
@ -174,16 +177,17 @@ public class BukkitPlayerBlockBag extends BlockBag {
* Adds a position to be used a source.
*
* @param pos
* @return
*/
@Override
public void addSourcePosition(Vector pos) {
}
/**
* Adds a position to be used a source.
*
* @param pos
* @return
*/
@Override
public void addSingleSourcePosition(Vector pos) {
}
}

View File

@ -46,6 +46,7 @@ public class WorldEditBlockListener extends BlockListener {
*
* @param event Relevant event details
*/
@Override
public void onBlockDamage(BlockDamageEvent event) {
LocalWorld world = new BukkitWorld(event.getBlock().getWorld());
WorldVector pos = new WorldVector(world, event.getBlock().getX(),
@ -62,6 +63,7 @@ public class WorldEditBlockListener extends BlockListener {
*
* @param event Relevant event details
*/
@Override
public void onBlockRightClick(BlockRightClickEvent event) {
LocalWorld world = new BukkitWorld(event.getBlock().getWorld());
WorldVector pos = new WorldVector(world, event.getBlock().getX(),