From 4603a1b37d97f4fe0c127af0afcd00a9f203a224 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 17 Jan 2019 17:08:01 -0500 Subject: [PATCH] Add complimentary deprecated method for clarity's sake --- .../me/blackvein/quests/CustomObjective.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/blackvein/quests/CustomObjective.java b/src/main/java/me/blackvein/quests/CustomObjective.java index e7ccd7b5d..e8a3580ac 100644 --- a/src/main/java/me/blackvein/quests/CustomObjective.java +++ b/src/main/java/me/blackvein/quests/CustomObjective.java @@ -53,6 +53,7 @@ public abstract class CustomObjective implements Listener { /** * Add a detailed piece of datum to the data map + * * @param name * @param o */ @@ -65,17 +66,28 @@ public abstract class CustomObjective implements Listener { } /** * Add a blank piece of datum to the data map + * * @param name */ public void addDatum(String name) { data.put(name, null); } - + /** - * Add null data for name + * Add a detailed piece of datum to the data map * * @param name - * @deprecated use addDatum() + * @deprecated use addDatum(name, o) + */ + public void addData(String name, Object o) { + addDatum(name, o); + } + + /** + * Add a blank piece of datum to the data map + * + * @param name + * @deprecated use addDatum(name) */ public void addData(String name) { addDatum(name);