169
169
- [ "respawn"] ( #respawn )
170
170
- [ "game"] ( #game )
171
171
- [ "resourcePack" (url, hash)] ( #resourcepack-url-hash )
172
- - [ "title"] ( #title )
172
+ - [ "title" (title, type) ] ( #title-title-type )
173
173
- [ "rain"] ( #rain )
174
174
- [ "weatherUpdate"] ( #weatherupdate )
175
175
- [ "time"] ( #time )
@@ -1237,11 +1237,12 @@ Emitted when the server changes any of the game properties.
1237
1237
1238
1238
Emitted when the server sends a resource pack.
1239
1239
1240
- #### "title"
1240
+ #### "title" (title, type)
1241
1241
1242
1242
Emitted when the server sends a title
1243
1243
1244
- * ` text ` - title's text
1244
+ * ` title ` - title's text
1245
+ * ` type ` - title's type "subtitle" or "title"
1245
1246
1246
1247
#### "rain"
1247
1248
@@ -1771,7 +1772,7 @@ Checks if the given plugin is loaded (or scheduled to be loaded) on this bot.
1771
1772
1772
1773
This function returns a ` Promise ` , with ` void ` as its argument upon completion.
1773
1774
1774
- Sleep in a bed. ` bedBlock ` should be a ` Block ` instance which is a bed.
1775
+ Sleep in a bed. ` bedBlock ` should be a ` Block ` instance which is a bed.
1775
1776
1776
1777
#### bot.isABed(bedBlock)
1777
1778
@@ -1781,7 +1782,7 @@ Return true if `bedBlock` is a bed
1781
1782
1782
1783
This function returns a ` Promise ` , with ` void ` as its argument upon completion.
1783
1784
1784
- Get out of bed.
1785
+ Get out of bed.
1785
1786
1786
1787
#### bot.setControlState(control, state)
1787
1788
@@ -2120,7 +2121,7 @@ These are lower level methods for the inventory, they can be useful sometimes bu
2120
2121
#### bot.clickWindow(slot, mouseButton, mode)
2121
2122
2122
2123
This function returns a ` Promise ` , with ` void ` as its argument upon completion.
2123
-
2124
+
2124
2125
The only valid mode option at the moment is 0. Shift clicking or mouse dragging is not implemented.
2125
2126
2126
2127
Click on the current window. See details at https://wiki.vg/Protocol#Click_Container
0 commit comments