Package net.mcreator.element.parts
Class TextureHolder
java.lang.Object
net.mcreator.element.parts.TextureHolder
- All Implemented Interfaces:
IWorkspaceDependent
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface net.mcreator.element.parts.IWorkspaceDependent
LOG -
Constructor Summary
ConstructorsConstructorDescriptionTextureHolder(Workspace workspace, String texture) A way to "convert" a texture string to a TextureHolder object.TextureHolder(Workspace workspace, Texture textureObj) -
Method Summary
Modifier and TypeMethodDescriptiongetImage(TextureType textureType) getImageIcon(TextureType textureType) booleanisEmpty()name()voidsetWorkspace(Workspace workspace) toFile(TextureType textureType) toString()freemarker.template.TemplateModeltoTemplateModel(freemarker.ext.beans.BeansWrapper wrapper) toTexture(TextureType textureType)
-
Constructor Details
-
TextureHolder
-
TextureHolder
A way to "convert" a texture string to a TextureHolder object.- Parameters:
workspace- Workspace the texture belongs totexture- Texture name
-
-
Method Details
-
toTexture
-
toFile
- Throws:
IOException
-
toTemplateModel
public freemarker.template.TemplateModel toTemplateModel(freemarker.ext.beans.BeansWrapper wrapper) -
getImageIcon
-
getImage
-
isEmpty
public boolean isEmpty() -
namespace
-
name
-
getRawTextureName
-
format
-
toString
-
setWorkspace
- Specified by:
setWorkspacein interfaceIWorkspaceDependent
-
getWorkspace
- Specified by:
getWorkspacein interfaceIWorkspaceDependent
-