From e0de12b995d0965bee1672dfd91aada0e5f5fefa Mon Sep 17 00:00:00 2001 From: Sn0wStorm Date: Sat, 28 Nov 2020 20:48:00 +0100 Subject: [PATCH] Enable JavaDoc generation in pom --- pom.xml | 24 +++++++++++++++++++ src/com/dre/brewery/BSealer.java | 2 +- .../api/events/brew/BrewModifyEvent.java | 2 +- src/com/dre/brewery/utility/BUtil.java | 2 +- 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 2c4ea6bd..c65149c3 100644 --- a/pom.xml +++ b/pom.xml @@ -42,6 +42,7 @@ UTF-8 + org.apache.maven.plugins maven-shade-plugin @@ -68,6 +69,29 @@ + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.2.0 + + + install + + jar + + + + + + Brewery - Javadocs + Brewery - Javadocs + -Xdoclint:none + true + false + org.bukkit.* + + diff --git a/src/com/dre/brewery/BSealer.java b/src/com/dre/brewery/BSealer.java index b44b49fc..7bba58aa 100644 --- a/src/com/dre/brewery/BSealer.java +++ b/src/com/dre/brewery/BSealer.java @@ -19,7 +19,7 @@ /** * The Sealing Inventory that is being checked for Brews and seals them after a second. - *

Class doesn't load in mc <= 1.12 (Can't find RecipeChoice, BlockData and NamespacedKey) + *

Class doesn't load in mc 1.12 and lower (Can't find RecipeChoice, BlockData and NamespacedKey) */ public class BSealer implements InventoryHolder { public static final NamespacedKey TAG_KEY = new NamespacedKey(P.p, "SealingTable"); diff --git a/src/com/dre/brewery/api/events/brew/BrewModifyEvent.java b/src/com/dre/brewery/api/events/brew/BrewModifyEvent.java index 94b55c08..240c0350 100644 --- a/src/com/dre/brewery/api/events/brew/BrewModifyEvent.java +++ b/src/com/dre/brewery/api/events/brew/BrewModifyEvent.java @@ -102,7 +102,7 @@ public enum Type { STATIC, /** - * Sealing the Brew (unlabel & static & stripped) With Command or Machine + * Sealing the Brew (unlabel & static & stripped) With Command or Machine */ SEAL, diff --git a/src/com/dre/brewery/utility/BUtil.java b/src/com/dre/brewery/utility/BUtil.java index 3a184635..07e57212 100644 --- a/src/com/dre/brewery/utility/BUtil.java +++ b/src/com/dre/brewery/utility/BUtil.java @@ -58,7 +58,7 @@ public static String color(String msg) { * @param currentPos Current Position * @param nextColor Next Color * @param nextPos Position of the Next Color - * @return + * @return Mixed Color */ public static Color weightedMixColor(Color prevColor, int prevPos, int currentPos, Color nextColor, int nextPos) { float diffPrev = currentPos - prevPos;