Class BlueprintMapping

java.lang.Object
com.minecolonies.api.compatibility.newstruct.BlueprintMapping

public class BlueprintMapping extends Object
The class that is responsible for the mapping of the old structurename/style to new style/structurename.
  • Constructor Details

    • BlueprintMapping

      public BlueprintMapping()
  • Method Details

    • getStyleMapping

      public static String getStyleMapping(String key)
      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

      public static String getPathMapping(String style, String hut)
      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.