Class SubCreator.ServerTemplate
java.lang.Object
net.ME1312.SubServers.Bungee.Host.SubCreator.ServerTemplate
- Enclosing class:
- SubCreator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get whether this Template can be used to update it's serversGet the Build Options for this TemplateGet the Configuration Options for this TemplateGet the Directory for this TemplateGet the Display Name of this TemplategetIcon()
Get the Item Icon for this TemplategetName()
Get the Name of this TemplategetType()
Get the Type of this Templateboolean
Get whether this Template was generated by a SubCreator instanceboolean
Get the Enabled Status of this Templateboolean
Get if this Template is for Internal use onlyboolean
Get whether this Template requires the Version argumentvoid
setDisplayName
(String value) Sets the Display Name for this Templatevoid
setEnabled
(boolean value) Set the Enabled Status of this Templatevoid
Set the Item Icon for this Template
-
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 Nameenabled
- Template Enabled Statusicon
- Template Item Icon Namedirectory
- Template Directorybuild
- Build Optionsoptions
- Configuration Options
-
-
Method Details
-
getName
Get the Name of this Template- Returns:
- Template Name
-
getDisplayName
Get the Display Name of this Template- Returns:
- Display Name
-
setDisplayName
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
Get the Item Icon for this Template- Returns:
- Item Icon Name/ID
-
setIcon
Set the Item Icon for this Template- Parameters:
value
- Value
-
getDirectory
Get the Directory for this Template- Returns:
- Directory
-
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
Get the Build Options for this Template- Returns:
- Build Options
-
getConfigOptions
Get the Configuration Options for this Template- Returns:
- Configuration Options
-
forSubData
-