Add complimentary deprecated method for clarity's sake

This commit is contained in:
BuildTools 2019-01-17 17:08:01 -05:00
parent 36b9258b75
commit 4603a1b37d

View File

@ -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,6 +66,7 @@ public abstract class CustomObjective implements Listener {
}
/**
* Add a blank piece of datum to the data map
*
* @param name
*/
public void addDatum(String name) {
@ -72,10 +74,20 @@ public abstract class CustomObjective implements Listener {
}
/**
* 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);