mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-14 14:45:41 +01:00
Better deprecation
This commit is contained in:
parent
cff144479b
commit
ef5f297928
@ -52,7 +52,7 @@ public abstract class CustomObjective implements Listener {
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a piece of datum to the data map
|
||||
* Add a detailed piece of datum to the data map
|
||||
* @param name
|
||||
* @param o
|
||||
*/
|
||||
@ -63,6 +63,13 @@ public abstract class CustomObjective implements Listener {
|
||||
data.put(name, null);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 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
|
||||
@ -71,7 +78,7 @@ public abstract class CustomObjective implements Listener {
|
||||
* @deprecated use addDatum()
|
||||
*/
|
||||
public void addData(String name) {
|
||||
addDatum(name, null);
|
||||
addDatum(name);
|
||||
}
|
||||
|
||||
public Map<String, String> getDescriptions() {
|
||||
|
Loading…
Reference in New Issue
Block a user