Package net.mcreator.workspace.elements
Class VariableType
java.lang.Object
net.mcreator.workspace.elements.VariableType
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeGlobal
(GeneratorConfiguration generatorConfiguration) boolean
canBeLocal
(GeneratorConfiguration generatorConfiguration) Returns the color of the blocks associated with this variable type.getColor()
getDefaultValue
(Workspace Workspace) getJavaType
(Workspace workspace) getName()
Map
<?, ?> getScopeDefinition
(Workspace workspace, String scope) getSupportedScopesWithoutLocal
(GeneratorConfiguration generatorConfiguration) boolean
boolean
void
toString()
-
Constructor Details
-
VariableType
public VariableType()
-
-
Method Details
-
setName
-
getName
-
getColor
-
getBlocklyColor
Returns the color of the blocks associated with this variable type. If the field is a valid hex color code, it's returned as-is. If it's a valid integer, it's treated as a hue to get the color with the correct saturation and value.- Returns:
- The color of the associated blocks, or black if it's badly formatted.
-
isIgnoredByCoverage
public boolean isIgnoredByCoverage() -
isNullable
public boolean isNullable() -
getBlocklyVariableType
-
getJavaType
-
getDefaultValue
-
getScopeDefinition
-
canBeGlobal
-
canBeLocal
-
getSupportedScopesWithoutLocal
public VariableType.Scope[] getSupportedScopesWithoutLocal(GeneratorConfiguration generatorConfiguration) -
toString
-