Class TextureAsset
- java.lang.Object
-
- dev.linwood.itemmods.pack.DefinedNamedPackObject
-
- dev.linwood.itemmods.pack.asset.PackAsset
-
- dev.linwood.itemmods.pack.asset.raw.RawAsset
-
- dev.linwood.itemmods.pack.asset.raw.TextureAsset
-
public class TextureAsset extends RawAsset
-
-
Field Summary
-
Fields inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
GSON, name
-
-
Constructor Summary
Constructors Constructor Description TextureAsset(@NotNull String name)TextureAsset(@NotNull String name, @NotNull com.google.gson.JsonObject jsonObject)TextureAsset(@NotNull String name, @NotNull String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexport(String namespace, String variation, int packFormat, @NotNull Path path)-
Methods inherited from class dev.linwood.itemmods.pack.asset.raw.RawAsset
getData, getDataOrDefault, getDefaultTexture, getVariations, removeVariation, save, setData, setData, setDefaultData, setDefaultData
-
Methods inherited from class dev.linwood.itemmods.pack.DefinedNamedPackObject
getName, setName
-
-
-
-
Constructor Detail
-
TextureAsset
public TextureAsset(@NotNull @NotNull String name)
-
TextureAsset
public TextureAsset(@NotNull @NotNull String name, @NotNull @NotNull String url) throws IOException- Throws:
IOException
-
TextureAsset
public TextureAsset(@NotNull @NotNull String name, @NotNull @NotNull com.google.gson.JsonObject jsonObject)
-
-
Method Detail
-
export
public void export(String namespace, String variation, int packFormat, @NotNull @NotNull Path path) throws IOException
- Overrides:
exportin classRawAsset- Throws:
IOException
-
-