Added @Override annotations.

This commit is contained in:
sk89q 2011-11-29 09:23:24 -08:00 committed by TomyLobo
parent 36e4b99ade
commit 11245014c8
6 changed files with 6 additions and 0 deletions

View File

@ -63,6 +63,7 @@ public abstract class BlockBag {
* @throws BlockBagException
* @deprecated Use {@link #fetchPlacedBlock(int,int)} instead
*/
@Deprecated
public void fetchPlacedBlock(int id) throws BlockBagException {
fetchPlacedBlock(id, 0);
}

View File

@ -88,6 +88,7 @@ public class BukkitWorld extends LocalWorld {
*
* @return
*/
@Override
public String getName() {
return world.getName();
}

View File

@ -60,6 +60,7 @@ public class Parser {
return '\0';
}
@Override
public String toString() {
return "NullToken";
}

View File

@ -471,6 +471,7 @@ public class Polygonal2DRegion implements Region {
*
* @return string
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
List<BlockVector2D> pts = getPoints();

View File

@ -33,6 +33,7 @@ public class DistanceWand extends BrushTool implements DoubleActionTraceTool {
super("worldedit.wand");
}
@Override
public boolean canUse(LocalPlayer player) {
return player.hasPermission("worldedit.wand");
}

View File

@ -39,6 +39,7 @@ public class LongRangeBuildTool extends BrushTool implements DoubleActionTraceTo
this.secondary = secondary;
}
@Override
public boolean canUse(LocalPlayer player) {
return player.hasPermission("worldedit.tool.lrbuild");
}