CC: WATERMeDIA
作者:rebot | 分类:模组
Minecraft 版本: 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6
平台: forge
标签: technology
CC: WATERMeDIA
Adds compability between CC: Tweaked and WaterFrames
Peripheral API
| Function | Arguments | Returns | Description |
|---|---|---|---|
getUrl |
string |
The URL currently loaded on the display. | |
setUrl |
url: string |
boolean |
Sets the display's URL. Returns false if url isn't a valid URI. |
getActive |
boolean |
Whether the display is switched on. | |
setActive |
active: boolean |
boolean |
Switches the display on/off. |
getMute |
boolean |
Whether the display's audio is muted. | |
setMute |
mute: boolean |
boolean |
Mutes/unmutes the display's audio. |
getPause |
boolean |
Whether playback is paused. | |
setPause |
pause: boolean |
boolean |
Pauses/resumes playback. |
getVolume |
number |
The current volume. | |
setVolume |
volume: number |
boolean |
Sets the volume. |
setLoop |
loop: boolean |
boolean |
Sets whether the current media repeats. |
getTick |
number |
The current playback tick. | |
setTick |
tick: number |
boolean |
Seeks playback to the given tick. |
getMaxTick |
number |
The playback length, in ticks. | |
setMaxTick |
tickMax: number |
boolean |
Overrides the playback length, in ticks. |
请登录后举报
请 登录 后赞助作者。
暂无评论,抢个沙发吧~