Package net.mcreator.workspace.resources
Class TexturedModel
java.lang.Object
net.mcreator.workspace.resources.Model
net.mcreator.workspace.resources.TexturedModel
-
Nested Class Summary
Nested classes/interfaces inherited from class net.mcreator.workspace.resources.Model
Model.BuiltInModel, Model.Type
-
Field Summary
Fields inherited from class net.mcreator.workspace.resources.Model
file, readableName, type
-
Constructor Summary
ModifierConstructorDescriptionprotected
TexturedModel
(File file, TexturedModel.TextureMapping textureMapping) protected
TexturedModel
(Workspace workspace, File file, String textureMappingName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static String
getJSONForTextureMapping
(Map<String, TexturedModel.TextureMapping> textureMappingMap) getModelTextureMapVariations
(Workspace workspace, Model m) static Map
<String, TexturedModel.TextureMapping> getTextureMappingsForModel
(Workspace workspace, Model model) int
hashCode()
toString()
Methods inherited from class net.mcreator.workspace.resources.Model
getFile, getFiles, getJavaModels, getJavaModels, getModelByParams, getModels, getModelsWithTextureMaps, getType
-
Constructor Details
-
TexturedModel
protected TexturedModel(File file, TexturedModel.TextureMapping textureMapping) throws ModelException - Throws:
ModelException
-
TexturedModel
protected TexturedModel(Workspace workspace, File file, String textureMappingName) throws ModelException - Throws:
ModelException
-
-
Method Details
-
getTextureMapping
-
getModelTextureMapVariations
-
getTextureMappingsForModel
public static Map<String,TexturedModel.TextureMapping> getTextureMappingsForModel(Workspace workspace, Model model) -
getJSONForTextureMapping
public static String getJSONForTextureMapping(Map<String, TexturedModel.TextureMapping> textureMappingMap) -
toString
-
getReadableName
- Overrides:
getReadableName
in classModel
-
equals
-
hashCode
public int hashCode()
-