Class CustomAttributeContainer
java.lang.Object
net.buildtheearth.terraminusminus.util.CustomAttributeContainer
- Direct Known Subclasses:
CachedChunkData,CachedChunkData.Builder,GeneratorDatasets
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
custom
-
-
Constructor Details
-
CustomAttributeContainer
-
-
Method Details
-
getCustom
Gets the custom attribute with the given key.- Parameters:
key- the key of the attribute to get- Returns:
- the attribute
- Throws:
IllegalArgumentException- if a property with the given name couldn't be found
-
getCustom
Gets the custom attribute with the given key.- Parameters:
key- the key of the attribute to getfallback- the value to return if the key couldn't be found- Returns:
- the attribute
-