---
sidebarDepth: 1
---
# 告示牌
## GetSignBlockText
服务端
method in mod.server.component.blockInfoCompServer.BlockInfoComponentServer
- 描述
获取告示牌(方块)的文本内容
- 参数
| 参数名 |
数据类型
| 说明 |
| :--- | :--- | :--- |
| pos | tuple(int,int,int) | 告示牌的位置坐标 |
- 返回值
| 数据类型
| 说明 |
| :--- | :--- |
| str | 告示牌上的文本内容 |
- 备注
- 当输入的坐标位置的方块不是告示牌的时候,返回None
- 示例
```python
import mod.server.extraServerApi as serverApi
comp = serverApi.GetEngineCompFactory().CreateBlockInfo(playerId)
pos = (-1, 4, 34)
text = comp.GetSignBlockText(pos)
print "GetSignBlockText text={}".format(text)
```
## SetSignBlockText
服务端
method in mod.server.component.blockInfoCompServer.BlockInfoComponentServer
- 描述
设置告示牌(方块)的文本内容
- 参数
| 参数名 | 数据类型
| 说明 |
| :--- | :--- | :--- |
| pos | tuple(int,int,int) | 告示牌的位置坐标 |
| text | str | 想要设置的文本内容 |
- 返回值
| 数据类型
| 说明 |
| :--- | :--- |
| bool | 是否设置成功 |
- 示例
```python
import mod.server.extraServerApi as serverApi
comp = serverApi.GetEngineCompFactory().CreateBlockInfo(playerId)
pos = (-1, 4, 34)
suc = comp.SetSignBlockText(pos, "文本内容")
print "SetSignBlockText suc={}".format(suc)
```