Skip to content

Commit 5934cd1

Browse files
committed
feat(templates): add support for function overloads rendering
1 parent 6066871 commit 5934cd1

File tree

10 files changed

+473
-52
lines changed

10 files changed

+473
-52
lines changed

content/reference/python/actor.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,17 @@ Sets the actor's rotation.
331331
#### <code className="doc-symbol doc-symbol-method"/> teleport [#endstone.actor.Actor.teleport]
332332

333333
```python
334-
teleport()
334+
teleport(location:Location) -> None
335335
```
336336

337+
Teleports this actor to the given location.
338+
339+
```python
340+
teleport(target:Actor) -> None
341+
```
342+
343+
Teleports this actor to the target Actor.
344+
337345
#### <code className="doc-symbol doc-symbol-attribute"/> type [#endstone.actor.Actor.type]
338346

339347
```python

content/reference/python/block.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,17 @@ Gets the dimension which contains this Block
122122
#### <code className="doc-symbol doc-symbol-method"/> get_relative [#endstone.block.Block.get_relative]
123123

124124
```python
125-
get_relative()
125+
get_relative(offset_x:int, offset_y:int, offset_z:int) -> Block
126126
```
127127

128+
Gets the block at the given offsets
129+
130+
```python
131+
get_relative(face:BlockFace, distance:int = 1) -> Block
132+
```
133+
134+
Gets the block at the given distance of the given face
135+
128136
#### <code className="doc-symbol doc-symbol-attribute"/> location [#endstone.block.Block.location]
129137

130138
```python

0 commit comments

Comments
 (0)