From b3f2c10f7987af319fbdb903b834cbb737f88f47 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Tue, 10 Dec 2013 07:04:33 +0100 Subject: [PATCH] Fixed some javadocs and deprecated isNaturalTerrainBlock(int). --- .../com/sk89q/worldedit/blocks/BlockType.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/blocks/BlockType.java b/src/main/java/com/sk89q/worldedit/blocks/BlockType.java index 2b1d533ac..ab1f5b843 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/BlockType.java +++ b/src/main/java/com/sk89q/worldedit/blocks/BlockType.java @@ -1029,9 +1029,11 @@ public enum BlockType { /** * Checks if the block type is naturally occuring * - * @param id - * @return + * @param id ID of the block + * @return true if the block type is naturally occuring + * @deprecated Use {@link #isNaturalTerrainBlock(int, int)} */ + @Deprecated public static boolean isNaturalTerrainBlock(int id) { return isNaturalTerrainBlock.contains(id); } @@ -1039,8 +1041,9 @@ public enum BlockType { /** * Checks if the block type is naturally occuring * - * @param block - * @return + * @param id ID of the block + * @param data Data value of the block + * @return true if the block type is naturally occuring */ public static boolean isNaturalTerrainBlock(int id, int data) { return isNaturalTerrainBlock.contains(-16*id-data) || isNaturalTerrainBlock.contains(id); @@ -1049,8 +1052,8 @@ public enum BlockType { /** * Checks if the block type is naturally occuring * - * @param block - * @return + * @param block The block + * @return true if the block type is naturally occuring */ public static boolean isNaturalTerrainBlock(Block block) { return isNaturalTerrainBlock(block.getId(), block.getData()); @@ -1059,7 +1062,7 @@ public enum BlockType { /** * Checks if the block type is naturally occuring * - * @return + * @return true if the block type is naturally occuring */ public boolean isNaturalTerrainBlock() { return isNaturalTerrainBlock.contains(id);