mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 03:25:20 +01:00
Add complimentary deprecated method for clarity's sake
This commit is contained in:
parent
36b9258b75
commit
4603a1b37d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user