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.
- package/README.md +30 -30
- package/custom/animation.d.ts +257 -256
- package/custom/animation_controller.d.ts +124 -124
- package/custom/blockbench.d.ts +73 -73
- package/custom/canvas.d.ts +324 -307
- package/custom/codec.d.ts +182 -182
- package/custom/copy_paste.d.ts +43 -42
- package/custom/cube.d.ts +151 -151
- package/custom/desktop.d.ts +61 -73
- package/custom/display_mode.d.ts +141 -137
- package/custom/edit_session.d.ts +38 -37
- package/custom/global.d.ts +181 -168
- package/custom/group.d.ts +113 -113
- package/custom/interface.d.ts +88 -78
- package/custom/io.d.ts +12 -12
- package/custom/{toolbars.d.ts → keybind.d.ts} +150 -221
- package/custom/keyframe.d.ts +94 -94
- package/custom/libs.d.ts +13 -13
- package/custom/menu_bar.d.ts +66 -0
- package/custom/mesh.d.ts +196 -196
- package/custom/misc.d.ts +196 -199
- package/custom/molang.d.ts +159 -159
- package/custom/outliner.d.ts +158 -158
- package/custom/painter.d.ts +102 -69
- package/custom/preview_scene.d.ts +120 -120
- package/custom/screencam.d.ts +71 -71
- package/custom/spline_mesh.d.ts +190 -189
- package/custom/texture_group.d.ts +68 -68
- package/custom/textures.d.ts +526 -515
- package/custom/timeline.d.ts +66 -66
- package/custom/undo.d.ts +209 -208
- package/custom/util/version_util.d.ts +32 -32
- package/custom/util.d.ts +235 -235
- package/custom/uveditor.d.ts +3 -3
- package/custom/validator.d.ts +99 -99
- package/documentation.md +12 -12
- package/generated/animations/mirror_animating.d.ts +7 -0
- package/generated/animations/timeline_animators.d.ts +1 -1
- package/generated/api.d.ts +8 -1
- package/generated/file_system.d.ts +2 -1
- package/generated/find_replace.d.ts +6 -0
- package/generated/formats/standards/obj.d.ts +9 -11
- package/generated/interface/actions.d.ts +16 -12
- package/generated/interface/form.d.ts +2 -1
- package/generated/interface/main_tools.d.ts +23 -0
- package/generated/interface/menu.d.ts +141 -0
- package/generated/interface/menu_bar.d.ts +2 -3
- package/generated/interface/resize_lines.d.ts +2 -0
- package/generated/interface/settings.d.ts +6 -2
- package/generated/interface/shared_actions.d.ts +5 -0
- package/generated/interface/start_screen.d.ts +62 -42
- package/generated/interface/toolbars.d.ts +146 -46
- package/generated/io/format.d.ts +1 -0
- package/generated/io/project.d.ts +10 -2
- package/generated/lib/CanvasFrame.d.ts +1 -0
- package/generated/main.d.ts +4 -1
- package/generated/modeling/mesh/add_mesh.d.ts +6 -0
- package/generated/modeling/mesh/proportional_edit.d.ts +15 -13
- package/generated/modeling/mesh/util.d.ts +8 -2
- package/generated/modeling/mirror_modeling.d.ts +4 -0
- package/generated/modeling/weight_paint.d.ts +11 -0
- package/generated/modes.d.ts +2 -2
- package/generated/native_apis.d.ts +3 -0
- package/generated/outliner/abstract/outliner_element.d.ts +1 -0
- package/generated/outliner/abstract/outliner_node.d.ts +1 -0
- package/generated/outliner/types/armature.d.ts +1 -1
- package/generated/outliner/types/armature_bone.d.ts +1 -1
- package/generated/outliner/types/billboard.d.ts +1 -1
- package/generated/outliner/types/bounding_box.d.ts +1 -1
- package/generated/outliner/types/cube.d.ts +1 -1
- package/generated/outliner/types/group.d.ts +1 -1
- package/generated/outliner/types/locator.d.ts +1 -1
- package/generated/outliner/types/mesh.d.ts +1 -1
- package/generated/outliner/types/null_object.d.ts +1 -1
- package/generated/outliner/types/spline_mesh.d.ts +1 -2
- package/generated/outliner/types/texture_mesh.d.ts +1 -1
- package/generated/plugin_loader.d.ts +1 -1
- package/generated/preview/preview.d.ts +280 -0
- package/generated/preview/reference_images.d.ts +1 -1
- package/generated/texturing/layers.d.ts +140 -0
- package/generated/util/gif.d.ts +12 -3
- package/generated/util/state_memory.d.ts +3 -11
- package/index.d.ts +2 -2
- package/package.json +39 -39
- package/tsconfig.json +19 -19
- package/type_config.json +43 -46
- package/custom/menu.d.ts +0 -136
- package/custom/preview.d.ts +0 -137
- package/custom/start_screen.d.ts +0 -15
- package/custom/texture_layers.d.ts +0 -117
- package/generated/global_types.d.ts +0 -47
- package/generated/io/formats/bedrock.d.ts +0 -4
- package/generated/io/formats/bedrock_old.d.ts +0 -4
- package/generated/io/formats/collada.d.ts +0 -4
- package/generated/io/formats/fbx.d.ts +0 -17
- package/generated/io/formats/gltf.d.ts +0 -6
- package/generated/io/formats/java_block.d.ts +0 -4
- package/generated/io/formats/modded_entity.d.ts +0 -139
- package/generated/io/formats/obj.d.ts +0 -12
- package/generated/io/formats/optifine_jem.d.ts +0 -3
- package/generated/io/formats/optifine_jpm.d.ts +0 -3
- package/generated/io/formats/skin.d.ts +0 -22
package/custom/display_mode.d.ts
CHANGED
|
@@ -1,137 +1,141 @@
|
|
|
1
|
-
/// <reference types="./blockbench"/>
|
|
2
|
-
declare const DisplayMode: {
|
|
3
|
-
slots: string[]
|
|
4
|
-
slot: DisplaySlot
|
|
5
|
-
/**
|
|
6
|
-
* ID of the slot that is selected for editing
|
|
7
|
-
*/
|
|
8
|
-
display_slot: string
|
|
9
|
-
display_area: any
|
|
10
|
-
display_base: any
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
| '
|
|
17
|
-
| '
|
|
18
|
-
| '
|
|
19
|
-
| '
|
|
20
|
-
| '
|
|
21
|
-
| '
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
1
|
+
/// <reference types="./blockbench"/>
|
|
2
|
+
declare const DisplayMode: {
|
|
3
|
+
slots: string[]
|
|
4
|
+
slot: DisplaySlot
|
|
5
|
+
/**
|
|
6
|
+
* ID of the slot that is selected for editing
|
|
7
|
+
*/
|
|
8
|
+
display_slot: string
|
|
9
|
+
display_area: any
|
|
10
|
+
display_base: any
|
|
11
|
+
animate_preview: Preview
|
|
12
|
+
groundAnimation(): void
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare type DisplaySlotName =
|
|
16
|
+
| 'firstperson_lefthand'
|
|
17
|
+
| 'firstperson_righthand'
|
|
18
|
+
| 'fixed'
|
|
19
|
+
| 'ground'
|
|
20
|
+
| 'gui'
|
|
21
|
+
| 'head'
|
|
22
|
+
| 'thirdperson_lefthand'
|
|
23
|
+
| 'thirdperson_righthand'
|
|
24
|
+
|
|
25
|
+
interface DisplaySlotOptions {
|
|
26
|
+
rotation?: ArrayVector3
|
|
27
|
+
translation?: ArrayVector3
|
|
28
|
+
scale?: ArrayVector3
|
|
29
|
+
rotation_pivot?: ArrayVector3
|
|
30
|
+
scale_pivot?: ArrayVector3
|
|
31
|
+
mirror?: [boolean, boolean, boolean]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Display Slots hold the transform values for a specific item slot in the Minecraft Java Edition "Display Mode" feature
|
|
36
|
+
*/
|
|
37
|
+
declare class DisplaySlot {
|
|
38
|
+
constructor(id: string, data: DisplaySlotOptions)
|
|
39
|
+
rotation: ArrayVector3
|
|
40
|
+
translation: ArrayVector3
|
|
41
|
+
scale: ArrayVector3
|
|
42
|
+
rotation_pivot: ArrayVector3
|
|
43
|
+
scale_pivot: ArrayVector3
|
|
44
|
+
mirror: [boolean, boolean, boolean]
|
|
45
|
+
/**
|
|
46
|
+
* Reset slot to default values
|
|
47
|
+
*/
|
|
48
|
+
default(): this
|
|
49
|
+
extend(data: DisplaySlotOptions): this
|
|
50
|
+
copy(): {
|
|
51
|
+
rotation: ArrayVector3
|
|
52
|
+
translation: ArrayVector3
|
|
53
|
+
scale: ArrayVector3
|
|
54
|
+
rotation_pivot: ArrayVector3
|
|
55
|
+
scale_pivot: ArrayVector3
|
|
56
|
+
mirror: [boolean, boolean, boolean]
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Generate the values of the slot for export
|
|
60
|
+
*/
|
|
61
|
+
export():
|
|
62
|
+
| {
|
|
63
|
+
rotation: ArrayVector3
|
|
64
|
+
translation: ArrayVector3
|
|
65
|
+
scale: ArrayVector3
|
|
66
|
+
rotation_pivot?: ArrayVector3
|
|
67
|
+
scale_pivot?: ArrayVector3
|
|
68
|
+
}
|
|
69
|
+
| undefined
|
|
70
|
+
/**
|
|
71
|
+
* Visually update the UI with the data from this slot if selected
|
|
72
|
+
*/
|
|
73
|
+
update(): this
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare interface RefModelOptions {
|
|
77
|
+
icon?: string
|
|
78
|
+
models?: DisplayReferenceModel.Model[]
|
|
79
|
+
condition?: ConditionResolvable
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare const displayReferenceObjects: {
|
|
83
|
+
refmodels: {
|
|
84
|
+
player: refModel<'player'>
|
|
85
|
+
zombie: refModel<'zombie'>
|
|
86
|
+
armor_stand: refModel<'armor_stand'>
|
|
87
|
+
baby_zombie: refModel<'baby_zombie'>
|
|
88
|
+
armor_stand_small: refModel<'armor_stand_small'>
|
|
89
|
+
fox: refModel<'fox'>
|
|
90
|
+
monitor: refModel<'monitor'>
|
|
91
|
+
bow: refModel<'bow'>
|
|
92
|
+
crossbow: refModel<'crossbow'>
|
|
93
|
+
eating: refModel<'eating'>
|
|
94
|
+
tooting: refModel<'tooting'>
|
|
95
|
+
block: refModel<'block'>
|
|
96
|
+
frame: refModel<'frame'>
|
|
97
|
+
frame_invisible: refModel<'frame_invisible'>
|
|
98
|
+
frame_top: refModel<'frame_top'>
|
|
99
|
+
frame_top_invisible: refModel<'frame_top_invisible'>
|
|
100
|
+
inventory_nine: refModel<'inventory_nine'>
|
|
101
|
+
inventory_full: refModel<'inventory_full'>
|
|
102
|
+
hud: refModel<'hud'>
|
|
103
|
+
}
|
|
104
|
+
active: refModel<keyof typeof displayReferenceObjects.refmodels>
|
|
105
|
+
/* Clears the active display model */
|
|
106
|
+
clear(): void
|
|
107
|
+
bar(buttons: any): void
|
|
108
|
+
ref_indexes: Record<DisplaySlotName, number>
|
|
109
|
+
slots: DisplaySlotName[]
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare class refModel<ID extends string> {
|
|
113
|
+
constructor(id: ID, options?: RefModelOptions)
|
|
114
|
+
id: ID
|
|
115
|
+
name: string
|
|
116
|
+
icon: string
|
|
117
|
+
model: THREE.Mesh
|
|
118
|
+
models: DisplayReferenceModel.Model[]
|
|
119
|
+
condition?: ConditionResolvable
|
|
120
|
+
initialized: boolean
|
|
121
|
+
variant?: 'steve' | 'alex'
|
|
122
|
+
pose_angles: Record<DisplaySlotName, number>
|
|
123
|
+
buildModel(things: any, texture: string, texture_res?: ArrayVector2): this
|
|
124
|
+
setModelVariant(variant: string): void
|
|
125
|
+
load(index: any): void
|
|
126
|
+
buildPlayer(slim?: boolean): void
|
|
127
|
+
buildArmorStand(): void
|
|
128
|
+
buildArmorStandSmall(): void
|
|
129
|
+
buildFox(): void
|
|
130
|
+
buildZombie(): void
|
|
131
|
+
buildBabyZombie(): void
|
|
132
|
+
buildMonitor(): void
|
|
133
|
+
buildBlock(): void
|
|
134
|
+
buildFrame(): void
|
|
135
|
+
buildFrameInvisible(): void
|
|
136
|
+
buildFrameTop(): void
|
|
137
|
+
buildFrameTopInvisible(): void
|
|
138
|
+
updateBasePosition(): void
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare function changeDisplaySkin(): void
|
package/custom/edit_session.d.ts
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
/// <reference types="./blockbench"/>
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* An edit session instance. Edit sessions can be attached to a project to collaborate on it with multiple users via P2P connections.
|
|
5
|
-
*/
|
|
6
|
-
declare class EditSession {
|
|
7
|
-
constructor()
|
|
8
|
-
|
|
9
|
-
active: boolean
|
|
10
|
-
hosting: boolean
|
|
11
|
-
clients: {}
|
|
12
|
-
client_count: number
|
|
13
|
-
data_queue: []
|
|
14
|
-
chat_history: []
|
|
15
|
-
Project: ModelProject | null
|
|
16
|
-
|
|
17
|
-
updateClientCound(): void
|
|
18
|
-
start(username?: string): void
|
|
19
|
-
join(username: string, token: string): void
|
|
20
|
-
quit(): void
|
|
21
|
-
setState(active: boolean): void
|
|
22
|
-
copyToken(): void
|
|
23
|
-
initNewModel(force?: boolean): void
|
|
24
|
-
initConnection(conn: any): void
|
|
25
|
-
sendAll(type: string, data: any): void
|
|
26
|
-
sendEdit(entry: UndoEntry): void
|
|
27
|
-
receiveData(tag: any): void
|
|
28
|
-
processData(tag: any): void
|
|
29
|
-
catchUp(): void
|
|
30
|
-
/**
|
|
31
|
-
* Send a chat message
|
|
32
|
-
* @param text Text to send. If omitted, the current text in the chat panel input is sent
|
|
33
|
-
*/
|
|
34
|
-
sendChat(text?: string): void
|
|
35
|
-
addChatMessage(message: any): any
|
|
36
|
-
processChatMessage(data: any): void
|
|
37
|
-
|
|
1
|
+
/// <reference types="./blockbench"/>
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An edit session instance. Edit sessions can be attached to a project to collaborate on it with multiple users via P2P connections.
|
|
5
|
+
*/
|
|
6
|
+
declare class EditSession {
|
|
7
|
+
constructor()
|
|
8
|
+
|
|
9
|
+
active: boolean
|
|
10
|
+
hosting: boolean
|
|
11
|
+
clients: {}
|
|
12
|
+
client_count: number
|
|
13
|
+
data_queue: []
|
|
14
|
+
chat_history: []
|
|
15
|
+
Project: ModelProject | null
|
|
16
|
+
|
|
17
|
+
updateClientCound(): void
|
|
18
|
+
start(username?: string): void
|
|
19
|
+
join(username: string, token: string): void
|
|
20
|
+
quit(): void
|
|
21
|
+
setState(active: boolean): void
|
|
22
|
+
copyToken(): void
|
|
23
|
+
initNewModel(force?: boolean): void
|
|
24
|
+
initConnection(conn: any): void
|
|
25
|
+
sendAll(type: string, data: any): void
|
|
26
|
+
sendEdit(entry: UndoEntry): void
|
|
27
|
+
receiveData(tag: any): void
|
|
28
|
+
processData(tag: any): void
|
|
29
|
+
catchUp(): void
|
|
30
|
+
/**
|
|
31
|
+
* Send a chat message
|
|
32
|
+
* @param text Text to send. If omitted, the current text in the chat panel input is sent
|
|
33
|
+
*/
|
|
34
|
+
sendChat(text?: string): void
|
|
35
|
+
addChatMessage(message: any): any
|
|
36
|
+
processChatMessage(data: any): void
|
|
37
|
+
static token?: string
|
|
38
|
+
}
|