mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 04:26:42 +00:00
Cleaned up documentation, added lacking Java annotations.
This commit is contained in:
@ -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) {
|
||||
}
|
||||
}
|
||||
|
@ -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(),
|
||||
|
Reference in New Issue
Block a user