Class SubCreator.ServerTemplate

java.lang.Object
net.ME1312.SubServers.Bungee.Host.SubCreator.ServerTemplate
Enclosing class:
SubCreator

public static class SubCreator.ServerTemplate extends Object
  • 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
      Returns:
      Template Name
    • getDisplayName

      public String getDisplayName()
      Get the Display Name of this Template
      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
      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
      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
      Returns:
      Template Type
    • requiresVersion

      public boolean requiresVersion()
      Get whether this Template requires the Version argument
      Returns:
      Version Requirement
    • canUpdate

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

      public boolean isDynamic()
      Get whether this Template was generated by a SubCreator instance
      Returns:
      Dynamic 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
    • forSubData

      public ObjectMap<String> forSubData()