Class SubCreatorImpl.ServerTemplate

java.lang.Object
net.ME1312.SubServers.Client.Common.Network.API.SubCreator.ServerTemplate
net.ME1312.SubServers.Host.Executable.SubCreatorImpl.ServerTemplate
Enclosing class:
SubCreatorImpl

public static class SubCreatorImpl.ServerTemplate extends SubCreator.ServerTemplate
  • Constructor Details

    • ServerTemplate

      public ServerTemplate(String name, boolean enabled, String icon, File directory, ObjectMap<String> build, ObjectMap<String> options)
      Create a SubCreator Template
      Parameters:
      name - Template Name
      enabled - Template Enabled Status
      icon - Template Item Icon Name
      directory - Template Directory
      build - Build Options
      options - Configuration Options
  • Method Details

    • getName

      public String getName()
      Get the Name of this Template
      Overrides:
      getName in class SubCreator.ServerTemplate
      Returns:
      Template Name
    • getDisplayName

      public String getDisplayName()
      Get the Display Name of this Template
      Overrides:
      getDisplayName in class SubCreator.ServerTemplate
      Returns:
      Display Name
    • setDisplayName

      public void setDisplayName(String value)
      Sets the Display Name for this Template
      Parameters:
      value - Value (or null to reset)
    • isEnabled

      public boolean isEnabled()
      Get the Enabled Status of this Template
      Overrides:
      isEnabled in class SubCreator.ServerTemplate
      Returns:
      Enabled Status
    • setEnabled

      public void setEnabled(boolean value)
      Set the Enabled Status of this Template
      Parameters:
      value - Value
    • isInternal

      public boolean isInternal()
      Get if this Template is for Internal use only
      Returns:
      Internal Status
    • getIcon

      public String getIcon()
      Get the Item Icon for this Template
      Overrides:
      getIcon in class SubCreator.ServerTemplate
      Returns:
      Item Icon Name/ID
    • setIcon

      public void setIcon(String value)
      Set the Item Icon for this Template
      Parameters:
      value - Value
    • getDirectory

      public File getDirectory()
      Get the Directory for this Template
      Returns:
      Directory
    • getType

      public SubCreator.ServerType getType()
      Get the Type of this Template
      Overrides:
      getType in class SubCreator.ServerTemplate
      Returns:
      Template Type
    • requiresVersion

      public boolean requiresVersion()
      Get whether this Template requires the Version argument
      Overrides:
      requiresVersion in class SubCreator.ServerTemplate
      Returns:
      Version Requirement
    • canUpdate

      public boolean canUpdate()
      Get whether this Template can be used to update it's servers
      Overrides:
      canUpdate in class SubCreator.ServerTemplate
      Returns:
      Updatable Status
    • isDynamic

      public boolean isDynamic()
      Get whether this Template was generated by a SubCreator instance
      Returns:
      Custom Status
    • getBuildOptions

      public ObjectMap<String> getBuildOptions()
      Get the Build Options for this Template
      Returns:
      Build Options
    • getConfigOptions

      public ObjectMap<String> getConfigOptions()
      Get the Configuration Options for this Template
      Returns:
      Configuration Options