@@ -24,80 +24,19 @@ Add it as a dependency to your `package.json`
2424yarn add @ozelot379/convert-minecraft-java-texture-to-bedrock-api
2525```
2626
27- Import it in your code
27+ You can convert your texture packs like
2828
2929``` javascript
30- import {ConsoleLog , ConvertJavaTextureToBedrockApi , Input , LocalFileInputEntry , LocalFileOutput } from " @ozelot379/convert-minecraft-java-texture-to-bedrock-api" ;
31- ```
32-
33- You can now convert your texture packs
34-
35- ``` javascript
36- let output;
37- try {
38- output = await new ConvertJavaTextureToBedrockApi (input, output, log, options).convert ();
39- } catch (err) {
40-
41- }
42- ```
43-
44- ### Input
45-
46- | Import | Description |
47- | --------| -------------|
48- | ` Input ` | The input consists on one input entry (Common) |
49- | ` ArrayInput ` | The input consists on multiple input entries (For instance a selected folder with multiple ` FileInputEntry ` ) |
50- | ` AbstractInput ` | Base input |
51-
52- ### Input entry
53-
54- | Import | For type |
55- | --------| ----------|
56- | ` BufferInputEntry ` | - ` ArrayBuffer ` <br >- ` Blob ` <br >- ` Buffer ` <br >- ` Uint8Array ` |
57- | ` FileInputEntry ` | ` File ` |
58- | ` LocalFileInputEntry ` | Local file |
59- | ` LocalFolderInputEntry ` | Local folder |
60- | ` AbstractInputEntry ` | Base input entry |
61-
62- ### Output
63-
64- | Import | For type |
65- | --------| ----------|
66- | ` ArrayBufferOutput ` | ` ArrayBuffer ` |
67- | ` BlobOutput ` | ` Blob ` |
68- | ` BufferOutput ` | ` Buffer ` |
69- | ` FileBlobOutput ` | ` File ` |
70- | ` LocalFileOutput ` | Local file |
71- | ` LocalFolderOutput ` | Local folder |
72- | ` Uint8ArrayOutput ` | ` Uint8Array ` |
73- | ` AbstractOutput ` | Base output |
74-
75- ### Log
76-
77- | Import | Description |
78- | --------| -------------|
79- | ` ConsoleLog ` | Log to console |
80- | ` SlientLog ` | Disable log |
81- | ` AbstractLog ` | Base log |
82-
83- ### Options
84-
85- | Key | Type | Default | Description |
86- | -----| ------| ---------| -------------|
87- | ` experimental ` | ` bool ` | ` false ` | Enable experimental conversions |
88-
89- ### Example
90-
91- ``` javascript
92- import {ConsoleLog , ConvertJavaTextureToBedrockApi , Input , LocalFileInputEntry , LocalFileOutput } from " @ozelot379/convert-minecraft-java-texture-to-bedrock-api" ;
30+ import {ConsoleLog , Input , LocalFileInputEntry , LocalFileOutput } from " @ozelot379/convert-base-api" ;
31+ import {ConvertJavaTextureToBedrockApi } from " @ozelot379/convert-minecraft-java-texture-to-bedrock-api" ;
9332
9433(async () => {
9534 let output;
9635
9736 try {
9837 output = await new ConvertJavaTextureToBedrockApi (new Input (new LocalFileInputEntry (" input/java_texture_pack.zip" )), new LocalFileOutput (" output/bedrock_texture_pack.mcpack" ), new ConsoleLog ()).convert ();
9938 } catch (err) {
100- console .log (err);
39+ console .err (err);
10140
10241 return ;
10342 }
@@ -106,6 +45,8 @@ import {ConsoleLog, ConvertJavaTextureToBedrockApi, Input, LocalFileInputEntry,
10645})();
10746```
10847
48+ More infos at https://github.com/ozelot379/ConvertBaseApi#user-content-description
49+
10950## Extras (for texture pack creators)
11051
11152### UUID
0 commit comments