blockbench-types 5.1.0 → 5.2.0-beta.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +30 -30
  2. package/custom/animation.d.ts +257 -256
  3. package/custom/animation_controller.d.ts +124 -124
  4. package/custom/blockbench.d.ts +73 -73
  5. package/custom/canvas.d.ts +324 -307
  6. package/custom/codec.d.ts +182 -182
  7. package/custom/copy_paste.d.ts +43 -42
  8. package/custom/cube.d.ts +151 -151
  9. package/custom/desktop.d.ts +61 -73
  10. package/custom/display_mode.d.ts +141 -137
  11. package/custom/edit_session.d.ts +38 -37
  12. package/custom/global.d.ts +181 -168
  13. package/custom/group.d.ts +113 -113
  14. package/custom/interface.d.ts +88 -78
  15. package/custom/io.d.ts +12 -12
  16. package/custom/{toolbars.d.ts → keybind.d.ts} +150 -221
  17. package/custom/keyframe.d.ts +94 -94
  18. package/custom/libs.d.ts +13 -13
  19. package/custom/menu_bar.d.ts +66 -0
  20. package/custom/mesh.d.ts +196 -196
  21. package/custom/misc.d.ts +196 -199
  22. package/custom/molang.d.ts +159 -159
  23. package/custom/outliner.d.ts +158 -158
  24. package/custom/painter.d.ts +102 -69
  25. package/custom/preview_scene.d.ts +120 -120
  26. package/custom/screencam.d.ts +71 -71
  27. package/custom/spline_mesh.d.ts +190 -189
  28. package/custom/texture_group.d.ts +68 -68
  29. package/custom/textures.d.ts +526 -515
  30. package/custom/timeline.d.ts +66 -66
  31. package/custom/undo.d.ts +209 -208
  32. package/custom/util/version_util.d.ts +32 -32
  33. package/custom/util.d.ts +235 -235
  34. package/custom/uveditor.d.ts +3 -3
  35. package/custom/validator.d.ts +99 -99
  36. package/documentation.md +12 -12
  37. package/generated/animations/mirror_animating.d.ts +7 -0
  38. package/generated/animations/timeline_animators.d.ts +1 -1
  39. package/generated/api.d.ts +8 -1
  40. package/generated/file_system.d.ts +2 -1
  41. package/generated/find_replace.d.ts +6 -0
  42. package/generated/formats/standards/obj.d.ts +9 -11
  43. package/generated/interface/actions.d.ts +16 -12
  44. package/generated/interface/form.d.ts +2 -1
  45. package/generated/interface/main_tools.d.ts +23 -0
  46. package/generated/interface/menu.d.ts +141 -0
  47. package/generated/interface/menu_bar.d.ts +2 -3
  48. package/generated/interface/resize_lines.d.ts +2 -0
  49. package/generated/interface/settings.d.ts +6 -2
  50. package/generated/interface/shared_actions.d.ts +5 -0
  51. package/generated/interface/start_screen.d.ts +62 -42
  52. package/generated/interface/toolbars.d.ts +146 -46
  53. package/generated/io/format.d.ts +1 -0
  54. package/generated/io/project.d.ts +10 -2
  55. package/generated/lib/CanvasFrame.d.ts +1 -0
  56. package/generated/main.d.ts +4 -1
  57. package/generated/modeling/mesh/add_mesh.d.ts +6 -0
  58. package/generated/modeling/mesh/proportional_edit.d.ts +15 -13
  59. package/generated/modeling/mesh/util.d.ts +8 -2
  60. package/generated/modeling/mirror_modeling.d.ts +4 -0
  61. package/generated/modeling/weight_paint.d.ts +11 -0
  62. package/generated/modes.d.ts +2 -2
  63. package/generated/native_apis.d.ts +3 -0
  64. package/generated/outliner/abstract/outliner_element.d.ts +1 -0
  65. package/generated/outliner/abstract/outliner_node.d.ts +1 -0
  66. package/generated/outliner/types/armature.d.ts +1 -1
  67. package/generated/outliner/types/armature_bone.d.ts +1 -1
  68. package/generated/outliner/types/billboard.d.ts +1 -1
  69. package/generated/outliner/types/bounding_box.d.ts +1 -1
  70. package/generated/outliner/types/cube.d.ts +1 -1
  71. package/generated/outliner/types/group.d.ts +1 -1
  72. package/generated/outliner/types/locator.d.ts +1 -1
  73. package/generated/outliner/types/mesh.d.ts +1 -1
  74. package/generated/outliner/types/null_object.d.ts +1 -1
  75. package/generated/outliner/types/spline_mesh.d.ts +1 -2
  76. package/generated/outliner/types/texture_mesh.d.ts +1 -1
  77. package/generated/plugin_loader.d.ts +1 -1
  78. package/generated/preview/preview.d.ts +280 -0
  79. package/generated/preview/reference_images.d.ts +1 -1
  80. package/generated/texturing/layers.d.ts +140 -0
  81. package/generated/util/gif.d.ts +12 -3
  82. package/generated/util/state_memory.d.ts +3 -11
  83. package/index.d.ts +2 -2
  84. package/package.json +39 -39
  85. package/tsconfig.json +19 -19
  86. package/type_config.json +43 -46
  87. package/custom/menu.d.ts +0 -136
  88. package/custom/preview.d.ts +0 -137
  89. package/custom/start_screen.d.ts +0 -15
  90. package/custom/texture_layers.d.ts +0 -117
  91. package/generated/global_types.d.ts +0 -47
  92. package/generated/io/formats/bedrock.d.ts +0 -4
  93. package/generated/io/formats/bedrock_old.d.ts +0 -4
  94. package/generated/io/formats/collada.d.ts +0 -4
  95. package/generated/io/formats/fbx.d.ts +0 -17
  96. package/generated/io/formats/gltf.d.ts +0 -6
  97. package/generated/io/formats/java_block.d.ts +0 -4
  98. package/generated/io/formats/modded_entity.d.ts +0 -139
  99. package/generated/io/formats/obj.d.ts +0 -12
  100. package/generated/io/formats/optifine_jem.d.ts +0 -3
  101. package/generated/io/formats/optifine_jpm.d.ts +0 -3
  102. package/generated/io/formats/skin.d.ts +0 -22
package/custom/menu.d.ts DELETED
@@ -1,136 +0,0 @@
1
- /// <reference types="./blockbench"/>
2
- interface CustomMenuItem {
3
- name: string
4
- id?: string
5
- icon: IconString | boolean | ((context: any) => (IconString|boolean))
6
- color?: string
7
- description?: string
8
- condition?: ConditionResolvable
9
- /**
10
- * Keybind or string to display in the menu, won't work as an actual keybinding by default
11
- */
12
- keybind?: Keybind | string
13
- /**
14
- * Adds a search bar to the menu or submenu
15
- */
16
- searchable?: boolean
17
- children?: MenuItem[] | ((context: any) => MenuItem[])
18
- click?(context?: any, event?: Event): void
19
- }
20
- type MenuItem = CustomMenuItem | Action | BarSelect<string> | MenuSeparator | string
21
- interface MenuOptions {
22
- onOpen?(position: MouseEvent | HTMLElement, context?: any): void
23
- onClose?(): void
24
- keep_open?: boolean
25
- searchable?: boolean
26
- class?: string
27
- }
28
- /**
29
- * Use the Menu class to create a context menu. Menus can contain custom entries and hierarchy, or existing actions and tools.
30
- */
31
- declare class Menu extends Deletable {
32
- /**
33
- * Creates a new context menu
34
- */
35
- constructor(
36
- id: string,
37
- template: MenuItem[] | ((context?: any) => MenuItem[]),
38
- options?: MenuOptions
39
- )
40
- constructor(template: MenuItem[] | ((context?: any) => MenuItem[]), options?: MenuOptions)
41
-
42
- /**
43
- * Opens the menu somewhere
44
- * @param position Position where to open the menu. Can be a mouse event, or a node that the menu is spawned below.
45
- * @param context Context for the click events inside the menu
46
- */
47
- open(position: MouseEvent | HTMLElement | 'mouse', context?: any): this
48
- /**
49
- * Alias for .open()
50
- */
51
- show(position: MouseEvent | HTMLElement | 'mouse', context?: any): this
52
- /**
53
- * Closes the menu if it's open
54
- */
55
- hide(): this
56
- /**
57
- * Adds an action to the menu structure
58
- * @param action Action to add
59
- * @param path Path pointing to the location. Use the ID of each level of the menu, or index within a level, separated by a point. For example, `export.0` places the action at the top position of the Export submenu.
60
- */
61
- addAction(action: Action | CustomMenuItem, path?: string | number): void
62
- /**
63
- *
64
- * @param path Path pointing to the location. Use the ID of each level of the menu, or index within a level, or item ID, separated by a point. For example, `export.export_special_format` removes the action "Export Special Format" from the Export submenu.
65
- */
66
- removeAction(path: string | Action): void
67
- /**
68
- * @deprecated
69
- */
70
- deleteItem(rm_item: Action): void
71
- hover(node: HTMLElement, event: Event, expand?: boolean): void
72
- structure: MenuItem[]
73
- node: HTMLUListElement
74
- static open: Menu | null
75
- static closed_in_this_click?: string
76
- }
77
-
78
- declare interface BarMenuOptions {
79
- name?: string
80
- icon?: IconString
81
- condition?: ConditionResolvable
82
- }
83
-
84
- /**
85
- * Creates a new menu in the menu bar
86
- */
87
- declare class BarMenu extends Menu {
88
- constructor(id: string, structure: MenuItem[], options?: BarMenuOptions)
89
- type: 'bar_menu'
90
- id: string
91
- condition?: ConditionResolvable
92
- name: string
93
- structure: MenuItem[]
94
- /**
95
- * Visually highlights an action within the menu, until the user opens the menu
96
- */
97
- highlight(action: Action): void
98
- }
99
-
100
- declare namespace MenuBar {
101
- const menus: {
102
- file: Menu
103
- edit: Menu
104
- transform: Menu
105
- uv: Menu
106
- texture: Menu
107
- animation: Menu
108
- keyframe: Menu
109
- display: Menu
110
- tools: Menu
111
- view: Menu
112
- help: Menu
113
- [id: string]: Menu
114
- }
115
- /**
116
- * Add a new menu to the menu bar
117
- * @param menu The BarMenu to add
118
- * @param position Specify the position in the menu list where to add insert the menu. Can either be an index in the list of all menus, or the ID of the menu to insert right from.
119
- */
120
- function addMenu(menu: BarMenu, position?: number | string): void
121
- /**
122
- * Adds an action to the menu structure
123
- * @param action Action to add
124
- * @param path Path pointing to the location. Use the ID of each level of the menu, or index or group within a level, separated by a point. For example, `file.export.0` places the action at the top position of the Export submenu in the File menu.
125
- */
126
- function addAction(action: Action, path?: string): void
127
- /**
128
- *
129
- * @param path Path pointing to the location. Use the ID of each level of the menu, or index or group within a level, or item ID, separated by a point. For example, `export.export_special_format` removes the action "Export Special Format" from the Export submenu.
130
- */
131
- function removeAction(path: string): void
132
- /**
133
- * Update the menu bar
134
- */
135
- function update(): void
136
- }
@@ -1,137 +0,0 @@
1
- /// <reference types="./blockbench"/>
2
- interface AnglePreset {
3
- position: ArrayVector3
4
- target?: ArrayVector3
5
- rotation?: ArrayVector3
6
- projection: 'unset' | 'orthographic' | 'perspective'
7
- zoom?: number
8
- focal_length?: number
9
- fov?: number
10
- aspect_ratio?: number
11
- lockedAngle?: number
12
- }
13
-
14
- interface PreviewOptions {
15
- id: string
16
- antialias?: boolean
17
- }
18
-
19
- type RaycastResult = {
20
- type: 'element' | 'keyframe' | 'vertex' | 'cube' | 'line' | 'none'
21
- event: PointerEvent | MouseEvent | TouchEvent
22
- cube?: Cube
23
- intersects?: any[]
24
- face?: string
25
- vertex?: any
26
- keyframe?: _Keyframe
27
- element?: OutlinerElement
28
- }
29
-
30
- type SplitScreenMode = 'single'|'double_horizontal'|'double_vertical'|'quad'|'triple_left'|'triple_right'|'triple_top'|'triple_bottom'
31
-
32
- /**
33
- * Previews are 3D viewports, that can either be used as a viewport for the user, or as an offscreen view to record media.
34
- */
35
- declare class Preview extends Deletable {
36
- constructor(options: PreviewOptions)
37
-
38
- id: string
39
- canvas: HTMLCanvasElement
40
- height: number
41
- width: number
42
- aspect_ratio?: number
43
- node: HTMLElement
44
- label: HTMLLabelElement
45
- /**
46
- * True if the preview is in orthographic camera mode
47
- */
48
- isOrtho: boolean
49
- /**
50
- * Angle, when in a specific side view
51
- */
52
- angle: null | number
53
- default_angle?: AnglePreset
54
- readonly camera: THREE.PerspectiveCamera | THREE.OrthographicCamera
55
- camPers: THREE.PerspectiveCamera
56
- camOrtho: THREE.OrthographicCamera
57
- controls: any
58
- annotations: any
59
- renderer: THREE.WebGLRenderer
60
- background: {
61
- name: string
62
- image: any
63
- size: number
64
- x: number
65
- y: number
66
- lock: boolean
67
- }
68
- raycaster: THREE.Raycaster
69
-
70
- mouse: THREE.Vector2
71
-
72
- split_screen: {
73
- before: undefined | null
74
- enabled: boolean
75
- lazyLoadPreview: () => void
76
- mode: string
77
- previews: Preview[]
78
- setMode(mode: string): void
79
- updateSize(): void
80
- }
81
-
82
- raycast(event: MouseEvent): false | RaycastResult
83
- render(): void
84
- setProjectionMode(orthographic: boolean): this
85
- setFOV(fov: number): void
86
- setLockedAngle(angle: number): this
87
-
88
- loadAnglePreset(angle_preset: AnglePreset): this
89
- /**
90
- * Opens a dialog to create and save a new angle preset
91
- */
92
- newAnglePreset(): this
93
-
94
- getFacingDirection(): 'north' | 'south' | 'east' | 'west'
95
- getFacingHeight(): 'up' | 'middle' | 'down'
96
-
97
- occupyTransformer(): this
98
- showContextMenu(event: Event | HTMLElement): this
99
- loadBackground(): void
100
-
101
- /**
102
- * List of all previews
103
- */
104
- static all: Preview[]
105
- /**
106
- * The last used preview
107
- */
108
- static selected: Preview
109
-
110
- /**
111
- * Utility regarding split screen preview mode
112
- */
113
- static split_screen: {
114
- /**
115
- * Whether the split screen is enabled
116
- */
117
- enabled: boolean
118
- /**
119
- * The current split screen mode
120
- */
121
- mode: SplitScreenMode
122
- previews: Preview[]
123
- lazyLoadPreview(index: number, camera_preset): Preview
124
- /**
125
- * Set a split screen mode
126
- */
127
- setMode(mode: SplitScreenMode = 'single')
128
- /**
129
- * Update the size of the split screens
130
- */
131
- updateSize()
132
- }
133
- }
134
-
135
- declare const DefaultCameraPresets: AnglePreset[]
136
-
137
- declare function animate(): void
@@ -1,15 +0,0 @@
1
- // Temporary file since model loader has been rewritten in ts on a different branch
2
-
3
- declare interface ModelLoaderOptions {
4
- id?: string
5
- icon: string
6
- name?: string
7
- description?: string
8
- category?: string
9
- target?: string | string[]
10
- confidential?: boolean
11
- condition?: ConditionResolvable
12
- format_page?: FormatPage
13
- onFormatPage?(): void
14
- onStart?(): void
15
- }
@@ -1,117 +0,0 @@
1
- /// <reference types="three" />
2
-
3
- interface TextureLayerData {
4
- name?: string
5
- in_limbo?: boolean
6
- offset?: ArrayVector2
7
- scale?: ArrayVector2
8
- opacity?: number
9
- visible?: boolean
10
- blend_mode?: 'default' | 'set_opacity' | 'color' | 'multiply' | 'add' | 'darken' | 'lighten' | 'screen' | 'overlay' | 'difference' | 'alpha_mask'
11
- image_data?: ImageData
12
- data_url?: string
13
- }
14
-
15
- /**
16
- * Texture layers always belong to a texture and represent the layers of the texture. Each layer has its own HTML canvas and canvas context
17
- */
18
- declare class TextureLayer {
19
- constructor(data: TextureLayerData, texture: Texture, uuid?: string)
20
-
21
- name: string
22
- uuid: UUID
23
- texture: Texture
24
- canvas: HTMLCanvasElement
25
- ctx: CanvasRenderingContext2D
26
- in_limbo: boolean
27
- img: HTMLImageElement
28
- /**
29
- * Layer offset from the top left corner of the texture to the top left corner of the layer
30
- */
31
- offset: ArrayVector2
32
- /**
33
- * Layer scale. This is only used by the layer transform tool and should be applied and reset to 1x1 before doing further changes
34
- */
35
- scale: ArrayVector2
36
- opacity: number
37
- visible: boolean
38
- blend_mode: 'default' | 'set_opacity' | 'color' | 'multiply' | 'add' | 'darken' | 'lighten' | 'screen' | 'overlay' | 'difference' | 'alpha_mask'
39
-
40
- extend(data: TextureLayerData): void
41
- /**
42
- * Selects the layer
43
- */
44
- select(): void
45
- showContextMenu(event: Event): void
46
- /**
47
- * Remove the layer
48
- * @param undo Create an undo point and update the texture
49
- */
50
- remove(undo: boolean): void
51
- getUndoCopy(image_data: boolean): object
52
- getSaveCopy(): object
53
- /**
54
- * Set the layer into a limbo state, where clicking Place or clicking next to the layer will place it on the layer below
55
- */
56
- setLimbo(): void
57
- /**
58
- * Resolves the limbo state by turning the limbo layer into a full layer, or merging it into the layer below
59
- * @param keep_separate If true, the layer is kept as a separate layer
60
- */
61
- resolveLimbo(keep_separate: boolean): void
62
- /**
63
- * Set the layer size. This resizes the canvas, which discards the layer content
64
- */
65
- setSize(width: number, height: number): void
66
- /**
67
- * Toggle layer visibility. This creates an undo point
68
- */
69
- toggleVisibility(): void
70
- /**
71
- * Scroll the layer panel list to
72
- */
73
- scrollTo(): void
74
- /**
75
- * Add the layer to the associated texture above the previously selected layer, select this layer, and scroll the layer panel list to it
76
- */
77
- addForEditing(): void
78
- /**
79
- * Merge this texture onto the texture below
80
- * @param undo Create an undo entry
81
- */
82
- mergeDown(undo: boolean): void
83
- /**
84
- * Expand the layer to include the listed pixels
85
- * @param points
86
- */
87
- expandTo(...points: ArrayVector2): void
88
- /**
89
- * Flip the texture along an axis
90
- * @param axis Flip axis, where 0 is X and 1 is Y
91
- * @param undo Create an undo entry
92
- */
93
- flip(axis: number, undo: boolean): void
94
- /**
95
- * Rotate the layer around itself in 90 degree steps
96
- * @param angle Angle in degrees
97
- * @param undo Create an undo entry
98
- */
99
- rotate(angle: number, undo: boolean): void
100
- /**
101
- * Centers the layer on the texture
102
- */
103
- center(): void
104
- /**
105
- * Open the properties dialog
106
- */
107
- propertiesDialog(): void
108
-
109
- /**
110
- * Get all layers of the active texture
111
- */
112
- static all: TextureLayer[]
113
- /**
114
- * Get the selected layer
115
- */
116
- static selected: TextureLayer
117
- }
@@ -1,47 +0,0 @@
1
- import { ModelFormat as _ModelFormat } from "./io/format";
2
- declare global {
3
- const ModelFormat: typeof _ModelFormat;
4
- const Format: _ModelFormat;
5
- const Formats: Record<string, _ModelFormat>;
6
- namespace Blockbench {
7
- const ModelFormat: typeof _ModelFormat;
8
- const Format: _ModelFormat;
9
- }
10
- }
11
- import { settings as _settings, Setting as _Setting, SettingsProfile as _SettingsProfile, Settings as _Settings } from './interface/settings';
12
- declare global {
13
- const settings: typeof _settings;
14
- const Setting: typeof _Setting;
15
- const SettingsProfile: typeof _SettingsProfile;
16
- const Settings: typeof _Settings;
17
- namespace Blockbench {
18
- const settings: typeof _settings;
19
- const Setting: typeof _Setting;
20
- const SettingsProfile: typeof _SettingsProfile;
21
- const Settings: typeof _Settings;
22
- }
23
- }
24
- import { Modes as _Modes, Mode as _Mode } from './modes';
25
- declare global {
26
- const Modes: typeof _Modes;
27
- const Mode: typeof _Mode;
28
- }
29
- import { Dialog as _Dialog, ConfigDialog as _ConfigDialog, DialogSidebar as _DialogSidebar, MessageBox as _MessageBox, ShapelessDialog as _ShapelessDialog, ToolConfig as _ToolConfig } from './interface/dialog';
30
- declare global {
31
- const Dialog: typeof _Dialog;
32
- const ConfigDialog: typeof _ConfigDialog;
33
- const DialogSidebar: typeof _DialogSidebar;
34
- const MessageBox: typeof _MessageBox;
35
- const ShapelessDialog: typeof _ShapelessDialog;
36
- const ToolConfig: typeof _ToolConfig;
37
- }
38
- import { Property as _Property } from './util/property';
39
- declare global {
40
- const Property: typeof _Property;
41
- }
42
- import { Language as _Language, tl as _tl } from './languages';
43
- declare global {
44
- const Language: typeof _Language;
45
- const tl: typeof _tl;
46
- }
47
- export {};
@@ -1,4 +0,0 @@
1
- declare global {
2
- function calculateVisibleBox(): any;
3
- }
4
- export {};
@@ -1,4 +0,0 @@
1
- declare global {
2
- function parseGeometry(data: any, args: any): void;
3
- }
4
- export {};
@@ -1,4 +0,0 @@
1
- declare global {
2
- function compileXML(object: any): string;
3
- }
4
- export {};
@@ -1,17 +0,0 @@
1
- type TNumType = 'I' | 'D' | 'F' | 'L' | 'C' | 'Y';
2
- type TNumVal = {
3
- type: TNumType;
4
- value: number | BigInt;
5
- isTNum: true;
6
- toString: () => string;
7
- };
8
- type FBXNode = {
9
- _key?: string;
10
- _values: (string | number | TNumVal)[];
11
- [key: string]: any;
12
- };
13
- declare global {
14
- function compileBinaryFBXModel(top_level_object: any): Uint8Array<ArrayBufferLike>;
15
- function compileASCIIFBXSection(object: FBXNode): string;
16
- }
17
- export {};
@@ -1,6 +0,0 @@
1
- declare global {
2
- function buildAnimationTracks(export_scale?: string | number | boolean, do_quaternions?: boolean): any[];
3
- function buildSkinnedMeshFromGroup(root_group: any): import("three").SkinnedMesh<import("three").BufferGeometry, any>;
4
- function buildSkinnedMesh(armature: any, scale: any): import("three").SkinnedMesh<any, any>;
5
- }
6
- export {};
@@ -1,4 +0,0 @@
1
- declare let item_parents: string[];
2
- declare var codec: Codec;
3
- declare var format: import("../format").ModelFormat;
4
- export {};
@@ -1,139 +0,0 @@
1
- declare global {
2
- const Templates: {
3
- '1.12': {
4
- name: string;
5
- remember: boolean;
6
- integer_size: boolean;
7
- file: string;
8
- field: string;
9
- bone: string;
10
- renderer: string;
11
- cube: string;
12
- };
13
- '1.14': {
14
- name: string;
15
- remember: boolean;
16
- integer_size: boolean;
17
- file: string;
18
- field: string;
19
- bone: string;
20
- renderer: string;
21
- cube: string;
22
- };
23
- '1.14_mojmaps': {
24
- name: string;
25
- remember: boolean;
26
- integer_size: boolean;
27
- file: string;
28
- field: string;
29
- bone: string;
30
- renderer: string;
31
- cube: string;
32
- };
33
- '1.15': {
34
- name: string;
35
- remember: boolean;
36
- integer_size: boolean;
37
- file: string;
38
- field: string;
39
- bone: string;
40
- renderer: string;
41
- cube: string;
42
- };
43
- '1.15_mojmaps': {
44
- name: string;
45
- remember: boolean;
46
- integer_size: boolean;
47
- file: string;
48
- field: string;
49
- bone: string;
50
- renderer: string;
51
- cube: string;
52
- };
53
- '1.17': {
54
- name: string;
55
- remember: boolean;
56
- use_layer_definition: boolean;
57
- integer_size: boolean;
58
- file: string;
59
- field: string;
60
- model_part: string;
61
- bone: string;
62
- renderer: string;
63
- cube: string;
64
- animation_template: string;
65
- };
66
- '1.17_yarn': {
67
- name: string;
68
- remember: boolean;
69
- integer_size: boolean;
70
- file: string;
71
- field: string;
72
- model_part: string;
73
- bone: string;
74
- renderer: string;
75
- cube: string;
76
- animation_template: string;
77
- };
78
- get(key: any, version?: any): any;
79
- keepLine(line: any): any;
80
- getVariableRegex(name: any): RegExp;
81
- };
82
- namespace AnimationTemplates {
83
- namespace mojang {
84
- let name: string;
85
- let file: string;
86
- let animation: string;
87
- let looping: string;
88
- let channel: string;
89
- let keyframe_rotation: string;
90
- let keyframe_position: string;
91
- let keyframe_scale: string;
92
- namespace channel_types {
93
- let rotation: string;
94
- let position: string;
95
- let scale: string;
96
- }
97
- namespace interpolations {
98
- let linear: string;
99
- let catmullrom: string;
100
- }
101
- }
102
- namespace fabric {
103
- let name_1: string;
104
- export { name_1 as name };
105
- let file_1: string;
106
- export { file_1 as file };
107
- let animation_1: string;
108
- export { animation_1 as animation };
109
- let looping_1: string;
110
- export { looping_1 as looping };
111
- let channel_1: string;
112
- export { channel_1 as channel };
113
- let keyframe_rotation_1: string;
114
- export { keyframe_rotation_1 as keyframe_rotation };
115
- let keyframe_position_1: string;
116
- export { keyframe_position_1 as keyframe_position };
117
- let keyframe_scale_1: string;
118
- export { keyframe_scale_1 as keyframe_scale };
119
- export namespace channel_types_1 {
120
- let rotation_1: string;
121
- export { rotation_1 as rotation };
122
- let position_1: string;
123
- export { position_1 as position };
124
- let scale_1: string;
125
- export { scale_1 as scale };
126
- }
127
- export { channel_types_1 as channel_types };
128
- export namespace interpolations_1 {
129
- let linear_1: string;
130
- export { linear_1 as linear };
131
- let catmullrom_1: string;
132
- export { catmullrom_1 as catmullrom };
133
- }
134
- export { interpolations_1 as interpolations };
135
- }
136
- function get(key: any, version?: any): any;
137
- }
138
- }
139
- export {};
@@ -1,12 +0,0 @@
1
- declare global {
2
- function getMtlFace(obj: any, index: any): string | false;
3
- namespace cube_face_normals {
4
- let north: number[];
5
- let east: number[];
6
- let south: number[];
7
- let west: number[];
8
- let up: number[];
9
- let down: number[];
10
- }
11
- }
12
- export {};
@@ -1,3 +0,0 @@
1
- declare var codec: Codec;
2
- declare var format: import("../format").ModelFormat;
3
- export {};
@@ -1,3 +0,0 @@
1
- declare var part_codec: Codec;
2
- declare var part_format: import("../format").ModelFormat;
3
- export {};
@@ -1,22 +0,0 @@
1
- type SkinPreset = {
2
- display_name: string;
3
- pose?: boolean;
4
- model?: string;
5
- model_java?: string;
6
- model_bedrock?: string;
7
- variants?: {
8
- [key: string]: {
9
- name: string;
10
- model: string;
11
- };
12
- };
13
- };
14
- declare global {
15
- const skin_presets: Record<string, SkinPreset>;
16
- const codec: Codec;
17
- const format: import("../format").ModelFormat;
18
- function generateTemplate(width: number, height: number, cubes: any, name: string, eyes: any, layer_template: any): Texture;
19
- const model_options: Record<string, string>;
20
- const skin_dialog: import("../../interface/dialog").Dialog;
21
- }
22
- export {};