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
-
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- Overrides:
getName
in classSubCreator.ServerTemplate
- Returns:
- Template Name
-
getDisplayName
Get the Display Name of this Template- Overrides:
getDisplayName
in classSubCreator.ServerTemplate
- 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- Overrides:
isEnabled
in classSubCreator.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
Get the Item Icon for this Template- Overrides:
getIcon
in classSubCreator.ServerTemplate
- 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- Overrides:
getType
in classSubCreator.ServerTemplate
- Returns:
- Template Type
-
requiresVersion
public boolean requiresVersion()Get whether this Template requires the Version argument- Overrides:
requiresVersion
in classSubCreator.ServerTemplate
- Returns:
- Version Requirement
-
canUpdate
public boolean canUpdate()Get whether this Template can be used to update it's servers- Overrides:
canUpdate
in classSubCreator.ServerTemplate
- Returns:
- Updatable Status
-
isDynamic
public boolean isDynamic()Get whether this Template was generated by a SubCreator instance- Returns:
- Custom Status
-
getBuildOptions
Get the Build Options for this Template- Returns:
- Build Options
-
getConfigOptions
Get the Configuration Options for this Template- Returns:
- Configuration Options
-