Class BlueprintMapping
java.lang.Object
com.minecolonies.api.compatibility.newstruct.BlueprintMapping
The class that is responsible for the mapping of the old structurename/style to new style/structurename.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPathMapping(String style, String hut) Get the path mapping for a hut for a given style.static StringgetStyleMapping(String key) Get the style mapping for a style.
-
Constructor Details
-
BlueprintMapping
public BlueprintMapping()
-
-
Method Details
-
getStyleMapping
Get the style mapping for a style.- Parameters:
key- the old style name.- Returns:
- the new stylename if mapping exists, else the same key again.
-
getPathMapping
Get the path mapping for a hut for a given style. Or the default mapping if no special handling is setup.- Parameters:
style- the style to query it for.hut- the hut to query it for.- Returns:
- the mapping.
-