Package net.mcreator.element.parts
Class TextureHolder
java.lang.Object
net.mcreator.element.parts.TextureHolder
- All Implemented Interfaces:
IWorkspaceDependent
-
Nested Class Summary
-
Field Summary
Fields inherited from interface net.mcreator.element.parts.IWorkspaceDependent
LOG
-
Constructor Summary
ConstructorDescriptionTextureHolder
(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) boolean
isEmpty()
name()
void
setWorkspace
(Workspace workspace) toFile
(TextureType textureType) toString()
freemarker.template.TemplateModel
toTemplateModel
(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:
setWorkspace
in interfaceIWorkspaceDependent
-
getWorkspace
- Specified by:
getWorkspace
in interfaceIWorkspaceDependent
-