Custom data getter
This commit is contained in:
parent
a2a3671d20
commit
0f012d0886
2 changed files with 6 additions and 1 deletions
|
@ -8,7 +8,7 @@ yarn_mappings=6
|
|||
loader_version=0.11.3
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 0.1.22
|
||||
mod_version = 0.1.23
|
||||
maven_group = ru.bclib
|
||||
archives_base_name = bclib
|
||||
|
||||
|
|
|
@ -377,6 +377,11 @@ public class BCLBiomeDef {
|
|||
customData.put(name, value);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> T getCustomData(String name, Object defaultValue) {
|
||||
return (T) customData.getOrDefault(name, defaultValue);
|
||||
}
|
||||
|
||||
protected Map<String, Object> getCustomData() {
|
||||
return customData;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue