You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autodocs/autodoc.lua
+54-12Lines changed: 54 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
--#region Information
4
4
-- GENERATED AUTODOC
5
-
-- Generated: 2026-01-21T10:19:56.649403100
5
+
-- Generated: 2026-01-24T19:31:15.033038100
6
6
-- Luafy Version: 2.0.0
7
7
-- Format: Lua LS library file
8
8
--#endregion
@@ -76,10 +76,16 @@ local Vec3d = {}
76
76
77
77
--- An object representing a mod installed on the server.
78
78
---@classMod
79
-
---@fieldmodidstring The id of this mod.
80
-
---@fieldversionstring The version of the mod currently installed.
81
79
localMod= {}
82
80
81
+
--- Gets the id of this mod.
82
+
---@returnstring
83
+
functionMod.get_mod_id() end
84
+
85
+
--- The version of the mod currently installed.
86
+
---@returnstring
87
+
functionMod.get_version() end
88
+
83
89
84
90
--- Object representing the potential result of a script execution. Since scripts run asynchronously, this object allows for a result to be awaited if needed.
85
91
---@classScriptResult
@@ -157,6 +163,11 @@ function LivingEntity.kill(damage_type, source) end
157
163
---@returnnil
158
164
functionLivingEntity.teleport(pos, yaw, pitch, retain_velocity, dimension_id) end
159
165
166
+
--- Gets an itemstack from this entities inventory by an inventory slot reference.
167
+
---@paramslot_referencestring Reference to the slot to get the stack from.
168
+
---@returnItemStack
169
+
functionLivingEntity.get_stack(slot_reference) end
170
+
160
171
161
172
--- A player.
162
173
---@classPlayer:LivingEntity
@@ -183,7 +194,7 @@ local Block = {}
183
194
localItem= {}
184
195
185
196
--- Creates an items stack of this item type.
186
-
---@paramcountinteger The number of items to create a stack of.
197
+
---@paramcountinteger | nil The number of items to create a stack of. Defaults to 1.
187
198
---@returnItemStack
188
199
functionItem.create_stack(count) end
189
200
@@ -192,6 +203,14 @@ function Item.create_stack(count) end
192
203
---@classItemStack
193
204
localItemStack= {}
194
205
206
+
--- Gets the item type of this stack.
207
+
---@returnItem
208
+
functionItemStack.get_item_type() end
209
+
210
+
--- Gets the item id of this stack.
211
+
---@returnstring
212
+
functionItemStack.get_item_id() end
213
+
195
214
--- Gets the number of items in this stack.
196
215
---@returninteger
197
216
functionItemStack.get_count() end
@@ -201,14 +220,6 @@ function ItemStack.get_count() end
201
220
---@returnnil
202
221
functionItemStack.set_count(count) end
203
222
204
-
--- Gets the item type of this stack.
205
-
---@returnItem
206
-
functionItemStack.get_item_type() end
207
-
208
-
--- Gets the item id of this stack.
209
-
---@returnstring
210
-
functionItemStack.get_item_id() end
211
-
212
223
--- Gets a component from this stack as NBT.
213
224
---@paramcomponent_idstring The id of the component type to fetch.
214
225
---@returntable
@@ -221,6 +232,37 @@ function ItemStack.get_component(component_id) end
221
232
functionItemStack.set_component(component_id, nbt) end
222
233
223
234
235
+
--- Text component.
236
+
---@classTextComponent
237
+
localTextComponent= {}
238
+
239
+
--- Serialises this text component to a JSON string.
240
+
---@returnstring
241
+
functionTextComponent.serialise() end
242
+
243
+
--- Appends as literal text.
244
+
---@paramstringstring Literal text.
245
+
---@returnnil
246
+
functionTextComponent.append_literal(string) end
247
+
248
+
--- Appends as translatable text.
249
+
---@paramstringstring Translatable text.
250
+
---@paramargsTextComponent[] | nil Components to pass as objects.
251
+
---@returnnil
252
+
functionTextComponent.append_translatable(string, args) end
253
+
254
+
--- Appends a sprite.
255
+
---@paramatlasstring Sprite atlas.
256
+
---@paramidstring Sprite identifer.
257
+
---@returnnil
258
+
functionTextComponent.append_sprite(atlas, id) end
259
+
260
+
--- Appends as a playerhead sprite.
261
+
---@paramusernamestring Player username.
262
+
---@returnnil
263
+
functionTextComponent.append_sprite_player(username) end
0 commit comments