Class StructurePackMeta

java.lang.Object
com.ldtteam.structurize.storage.StructurePackMeta

public class StructurePackMeta extends Object
Wrapper that contains all the info of the structure pack.
  • Constructor Details

    • StructurePackMeta

      public StructurePackMeta(com.google.gson.JsonObject json, Path rootPath, String owner)
      Initialize the pack from json.
      Parameters:
      json - the json to use.
  • Method Details

    • getName

      public String getName()
    • setImmutable

      public void setImmutable(boolean immutable)
      Set the immutability param.
      Parameters:
      immutable - true if immutable, else false.
    • isImmutable

      public boolean isImmutable()
      Check if the structure pack is immutable.
      Returns:
      true if so.
    • getPackFormat

      public int getPackFormat()
      Get the pack format.
      Returns:
      the format version.
    • getVersion

      public int getVersion()
      Get the pack version.
      Returns:
      the pack version.
    • getModList

      public List<String> getModList()
      Get the list of mods that were used in this schematic.
      Returns:
      the list of mod ids.
    • getPath

      public Path getPath()
      Get the structure pack root path.
    • getIconPath

      public String getIconPath()
      Get the icon path string.
      Returns:
      the name of the icon.
    • getDesc

      public String getDesc()
      Getter for the pack description.
      Returns:
      the desc string.
    • getAuthors

      public List<String> getAuthors()
      Get the list of authors.
      Returns:
      list of names.
    • getOwner

      public String getOwner()
      Get the owning mod of place of this pack.
      Returns:
      the pack.
    • getSubPath

      public String getSubPath(Path subPath)
      Get the sub path from this pack.
      Parameters:
      subPath - the path we're in.
      Returns:
      the relative sub path.
    • getNormalizedSubPath

      public String getNormalizedSubPath(String subPath)
      Get the normalized sub path from this pack.
      Parameters:
      subPath - the path we're in.
      Returns:
      the relative sub path.