levistone 0.6.2.dev58__1-cp39-cp39-win_amd64.whl → 0.10.5__1-cp39-cp39-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of levistone might be problematic. Click here for more details.
- endstone/__init__.py +16 -2
- endstone/_internal/bootstrap/__init__.py +6 -1
- endstone/_internal/bootstrap/base.py +74 -52
- endstone/_internal/bootstrap/linux.py +19 -5
- endstone/_internal/bootstrap/windows.py +151 -171
- endstone/_internal/endstone_python.cp39-win_amd64.pyd +0 -0
- endstone/_internal/endstone_python.pyi +1330 -589
- endstone/_internal/metrics.py +2 -2
- endstone/_internal/plugin_loader.py +18 -2
- endstone/_internal/version.py +2 -2
- endstone/actor.py +2 -2
- endstone/command.py +2 -2
- endstone/config/endstone.toml +9 -0
- endstone/enchantments.py +3 -0
- endstone/event.py +44 -4
- endstone/form.py +17 -1
- endstone/inventory.py +20 -2
- endstone/map.py +3 -0
- endstone/permissions.py +9 -1
- endstone/plugin.py +6 -0
- endstone_runtime.dll +0 -0
- endstone_runtime.pdb +0 -0
- levistone-0.10.5.dist-info/METADATA +49 -0
- levistone-0.10.5.dist-info/RECORD +40 -0
- {levistone-0.6.2.dev58.dist-info → levistone-0.10.5.dist-info}/WHEEL +1 -1
- manifest.json +1 -1
- endstone/_internal/endstone_python.pyd +0 -0
- endstone/network.py +0 -3
- levistone-0.6.2.dev58.dist-info/METADATA +0 -249
- levistone-0.6.2.dev58.dist-info/RECORD +0 -38
- {levistone-0.6.2.dev58.dist-info → levistone-0.10.5.dist-info}/entry_points.txt +0 -0
- {levistone-0.6.2.dev58.dist-info → levistone-0.10.5.dist-info/licenses}/LICENSE +0 -0
- {levistone-0.6.2.dev58.dist-info → levistone-0.10.5.dist-info}/top_level.txt +0 -0
|
@@ -4,61 +4,29 @@ import numpy
|
|
|
4
4
|
import os
|
|
5
5
|
import typing
|
|
6
6
|
import uuid
|
|
7
|
-
__all__ = ['ActionForm', 'Actor', 'ActorDamageEvent', 'ActorDeathEvent', 'ActorEvent', 'ActorExplodeEvent', 'ActorKnockbackEvent', 'ActorRemoveEvent', 'ActorSpawnEvent', 'ActorTeleportEvent', 'BanEntry', 'BarColor', 'BarFlag', 'BarStyle', 'Block', 'BlockBreakEvent', 'BlockData', 'BlockEvent', 'BlockFace', 'BlockPlaceEvent', 'BlockState', 'BossBar', 'BroadcastMessageEvent', 'Cancellable', 'Chunk', 'ColorFormat', 'Command', 'CommandExecutor', 'CommandSender', 'CommandSenderWrapper', 'ConsoleCommandSender', 'Criteria', 'DamageSource', '
|
|
7
|
+
__all__: list[str] = ['ActionForm', 'Actor', 'ActorDamageEvent', 'ActorDeathEvent', 'ActorEvent', 'ActorExplodeEvent', 'ActorKnockbackEvent', 'ActorRemoveEvent', 'ActorSpawnEvent', 'ActorTeleportEvent', 'BanEntry', 'BarColor', 'BarFlag', 'BarStyle', 'Block', 'BlockBreakEvent', 'BlockCommandSender', 'BlockCookEvent', 'BlockData', 'BlockEvent', 'BlockFace', 'BlockPistonEvent', 'BlockPistonExtendEvent', 'BlockPistonRetractEvent', 'BlockPlaceEvent', 'BlockState', 'BossBar', 'BroadcastMessageEvent', 'Button', 'Cancellable', 'Chunk', 'ChunkEvent', 'ChunkLoadEvent', 'ChunkUnloadEvent', 'ColorFormat', 'Command', 'CommandExecutor', 'CommandSender', 'CommandSenderWrapper', 'ConsoleCommandSender', 'Criteria', 'DamageSource', 'Dimension', 'DimensionEvent', 'DisplaySlot', 'Divider', 'Dropdown', 'Enchantment', 'EnchantmentRegistry', 'EquipmentSlot', 'Event', 'EventPriority', 'EventResult', 'GameMode', 'Header', 'Inventory', 'IpBanEntry', 'IpBanList', 'Item', 'ItemFactory', 'ItemMeta', 'ItemRegistry', 'ItemStack', 'ItemType', 'Label', 'Language', 'LeavesDecayEvent', 'Level', 'LevelEvent', 'Location', 'Logger', 'MapCanvas', 'MapMeta', 'MapRenderer', 'MapView', 'MessageForm', 'Mob', 'MobEvent', 'ModalForm', 'NamespacedKey', 'Objective', 'ObjectiveSortOrder', 'OfflinePlayer', 'PacketReceiveEvent', 'PacketSendEvent', 'Permissible', 'Permission', 'PermissionAttachment', 'PermissionAttachmentInfo', 'PermissionDefault', 'PermissionLevel', 'Player', 'PlayerBanEntry', 'PlayerBanList', 'PlayerBedEnterEvent', 'PlayerBedLeaveEvent', 'PlayerChatEvent', 'PlayerCommandEvent', 'PlayerDeathEvent', 'PlayerDropItemEvent', 'PlayerEmoteEvent', 'PlayerEvent', 'PlayerGameModeChangeEvent', 'PlayerInteractActorEvent', 'PlayerInteractEvent', 'PlayerInventory', 'PlayerItemConsumeEvent', 'PlayerItemHeldEvent', 'PlayerJoinEvent', 'PlayerJumpEvent', 'PlayerKickEvent', 'PlayerLoginEvent', 'PlayerMoveEvent', 'PlayerPickupItemEvent', 'PlayerQuitEvent', 'PlayerRespawnEvent', 'PlayerSkinChangeEvent', 'PlayerTeleportEvent', 'Plugin', 'PluginCommand', 'PluginDescription', 'PluginDisableEvent', 'PluginEnableEvent', 'PluginLoadOrder', 'PluginLoader', 'PluginManager', 'Position', 'RenderType', 'Scheduler', 'Score', 'Scoreboard', 'ScriptMessageEvent', 'Server', 'ServerCommandEvent', 'ServerEvent', 'ServerListPingEvent', 'ServerLoadEvent', 'Service', 'ServiceManager', 'ServicePriority', 'Skin', 'Slider', 'SocketAddress', 'StepSlider', 'Task', 'TextInput', 'ThunderChangeEvent', 'Toggle', 'Translatable', 'Vector', 'WeatherChangeEvent', 'WeatherEvent']
|
|
8
8
|
class ActionForm:
|
|
9
9
|
"""
|
|
10
10
|
Represents a form with buttons that let the player take action.
|
|
11
11
|
"""
|
|
12
|
-
|
|
13
|
-
"""
|
|
14
|
-
Represents a button with text and an optional icon.
|
|
15
|
-
"""
|
|
16
|
-
@staticmethod
|
|
17
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
18
|
-
...
|
|
19
|
-
def __init__(self, text: str | Translatable = '', icon: str | None = None, on_click: typing.Callable[[Player], None] = None) -> None:
|
|
20
|
-
...
|
|
21
|
-
@property
|
|
22
|
-
def icon(self) -> str | None:
|
|
23
|
-
"""
|
|
24
|
-
Gets or sets the icon path or URL of the button
|
|
25
|
-
"""
|
|
26
|
-
@icon.setter
|
|
27
|
-
def icon(self, arg1: str) -> ActionForm.Button:
|
|
28
|
-
...
|
|
29
|
-
@property
|
|
30
|
-
def on_click(self) -> typing.Callable[[Player], None]:
|
|
31
|
-
"""
|
|
32
|
-
Gets or sets the on click callback.
|
|
33
|
-
"""
|
|
34
|
-
@on_click.setter
|
|
35
|
-
def on_click(self, arg1: typing.Callable[[Player], None]) -> ActionForm.Button:
|
|
36
|
-
...
|
|
37
|
-
@property
|
|
38
|
-
def text(self) -> str | Translatable:
|
|
39
|
-
"""
|
|
40
|
-
Gets or sets the text of the button
|
|
41
|
-
"""
|
|
42
|
-
@text.setter
|
|
43
|
-
def text(self, arg1: str | Translatable) -> ActionForm.Button:
|
|
44
|
-
...
|
|
45
|
-
@staticmethod
|
|
46
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
47
|
-
...
|
|
48
|
-
def __init__(self, title: str | Translatable = '', content: str | Translatable = '', buttons: list[ActionForm.Button] | None = None, on_submit: typing.Callable[[Player, int], None] = None, on_close: typing.Callable[[Player], None] = None) -> None:
|
|
12
|
+
def __init__(self, title: str | Translatable = '', content: str | Translatable = '', buttons: list[Button | Divider | Header | Label] | None = None, on_submit: typing.Callable[[Player, int], None] = None, on_close: typing.Callable[[Player], None] = None) -> None:
|
|
49
13
|
...
|
|
50
14
|
def add_button(self, text: str | Translatable, icon: str | None = None, on_click: typing.Callable[[Player], None] = None) -> ActionForm:
|
|
51
15
|
"""
|
|
52
16
|
Adds a button to the form.
|
|
53
17
|
"""
|
|
54
|
-
|
|
55
|
-
def buttons(self) -> list[ActionForm.Button]:
|
|
18
|
+
def add_divider(self) -> ActionForm:
|
|
56
19
|
"""
|
|
57
|
-
|
|
20
|
+
Adds a divider to the form.
|
|
21
|
+
"""
|
|
22
|
+
def add_header(self, text: str | Translatable) -> ActionForm:
|
|
23
|
+
"""
|
|
24
|
+
Adds a header to the form.
|
|
25
|
+
"""
|
|
26
|
+
def add_label(self, text: str | Translatable) -> ActionForm:
|
|
27
|
+
"""
|
|
28
|
+
Adds a label to the form.
|
|
58
29
|
"""
|
|
59
|
-
@buttons.setter
|
|
60
|
-
def buttons(self, arg1: list[ActionForm.Button]) -> ActionForm:
|
|
61
|
-
...
|
|
62
30
|
@property
|
|
63
31
|
def content(self) -> str | Translatable:
|
|
64
32
|
"""
|
|
@@ -68,6 +36,14 @@ class ActionForm:
|
|
|
68
36
|
def content(self, arg1: str | Translatable) -> ActionForm:
|
|
69
37
|
...
|
|
70
38
|
@property
|
|
39
|
+
def controls(self) -> list[Button | Divider | Header | Label]:
|
|
40
|
+
"""
|
|
41
|
+
Gets or sets the controls of the action form.
|
|
42
|
+
"""
|
|
43
|
+
@controls.setter
|
|
44
|
+
def controls(self, arg1: list[Button | Divider | Header | Label]) -> ActionForm:
|
|
45
|
+
...
|
|
46
|
+
@property
|
|
71
47
|
def on_close(self) -> typing.Callable[[Player], None]:
|
|
72
48
|
"""
|
|
73
49
|
Gets or sets the on close callback.
|
|
@@ -95,9 +71,6 @@ class Actor(CommandSender):
|
|
|
95
71
|
"""
|
|
96
72
|
Represents a base actor in the level.
|
|
97
73
|
"""
|
|
98
|
-
@staticmethod
|
|
99
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
100
|
-
...
|
|
101
74
|
def add_scoreboard_tag(self, tag: str) -> bool:
|
|
102
75
|
"""
|
|
103
76
|
Adds a tag to this actor.
|
|
@@ -238,9 +211,6 @@ class ActorDamageEvent(MobEvent, Cancellable):
|
|
|
238
211
|
"""
|
|
239
212
|
Called when an Actor is damaged.
|
|
240
213
|
"""
|
|
241
|
-
@staticmethod
|
|
242
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
243
|
-
...
|
|
244
214
|
@property
|
|
245
215
|
def damage(self) -> float:
|
|
246
216
|
"""
|
|
@@ -258,9 +228,6 @@ class ActorDeathEvent(MobEvent):
|
|
|
258
228
|
"""
|
|
259
229
|
Called when an Actor dies.
|
|
260
230
|
"""
|
|
261
|
-
@staticmethod
|
|
262
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
263
|
-
...
|
|
264
231
|
@property
|
|
265
232
|
def damage_source(self) -> DamageSource:
|
|
266
233
|
"""
|
|
@@ -270,9 +237,6 @@ class ActorEvent(Event):
|
|
|
270
237
|
"""
|
|
271
238
|
Represents an Actor-related event.
|
|
272
239
|
"""
|
|
273
|
-
@staticmethod
|
|
274
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
275
|
-
...
|
|
276
240
|
@property
|
|
277
241
|
def actor(self) -> Actor:
|
|
278
242
|
"""
|
|
@@ -282,9 +246,6 @@ class ActorExplodeEvent(ActorEvent, Cancellable):
|
|
|
282
246
|
"""
|
|
283
247
|
Called when an Actor explodes.
|
|
284
248
|
"""
|
|
285
|
-
@staticmethod
|
|
286
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
287
|
-
...
|
|
288
249
|
@property
|
|
289
250
|
def block_list(self) -> list[Block]:
|
|
290
251
|
"""
|
|
@@ -302,9 +263,6 @@ class ActorKnockbackEvent(MobEvent, Cancellable):
|
|
|
302
263
|
"""
|
|
303
264
|
Called when a living entity receives knockback.
|
|
304
265
|
"""
|
|
305
|
-
@staticmethod
|
|
306
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
307
|
-
...
|
|
308
266
|
@property
|
|
309
267
|
def knockback(self) -> Vector:
|
|
310
268
|
"""
|
|
@@ -322,23 +280,14 @@ class ActorRemoveEvent(ActorEvent):
|
|
|
322
280
|
"""
|
|
323
281
|
Called when an Actor is removed.
|
|
324
282
|
"""
|
|
325
|
-
@staticmethod
|
|
326
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
327
|
-
...
|
|
328
283
|
class ActorSpawnEvent(ActorEvent, Cancellable):
|
|
329
284
|
"""
|
|
330
285
|
Called when an Actor is spawned into a world.
|
|
331
286
|
"""
|
|
332
|
-
@staticmethod
|
|
333
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
334
|
-
...
|
|
335
287
|
class ActorTeleportEvent(ActorEvent, Cancellable):
|
|
336
288
|
"""
|
|
337
289
|
Called when a non-player entity is teleported from one location to another.
|
|
338
290
|
"""
|
|
339
|
-
@staticmethod
|
|
340
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
341
|
-
...
|
|
342
291
|
@property
|
|
343
292
|
def from_location(self) -> Location:
|
|
344
293
|
"""
|
|
@@ -359,9 +308,6 @@ class BanEntry:
|
|
|
359
308
|
"""
|
|
360
309
|
A single entry from a ban list.
|
|
361
310
|
"""
|
|
362
|
-
@staticmethod
|
|
363
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
364
|
-
...
|
|
365
311
|
@property
|
|
366
312
|
def created(self) -> datetime.datetime:
|
|
367
313
|
"""
|
|
@@ -404,9 +350,6 @@ class BarColor:
|
|
|
404
350
|
WHITE: typing.ClassVar[BarColor] # value = <BarColor.WHITE: 7>
|
|
405
351
|
YELLOW: typing.ClassVar[BarColor] # value = <BarColor.YELLOW: 4>
|
|
406
352
|
__members__: typing.ClassVar[dict[str, BarColor]] # value = {'PINK': <BarColor.PINK: 0>, 'BLUE': <BarColor.BLUE: 1>, 'RED': <BarColor.RED: 2>, 'GREEN': <BarColor.GREEN: 3>, 'YELLOW': <BarColor.YELLOW: 4>, 'PURPLE': <BarColor.PURPLE: 5>, 'REBECCA_PURPLE': <BarColor.REBECCA_PURPLE: 6>, 'WHITE': <BarColor.WHITE: 7>}
|
|
407
|
-
@staticmethod
|
|
408
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
409
|
-
...
|
|
410
353
|
def __eq__(self, other: typing.Any) -> bool:
|
|
411
354
|
...
|
|
412
355
|
def __getstate__(self) -> int:
|
|
@@ -436,9 +379,6 @@ class BarColor:
|
|
|
436
379
|
class BarFlag:
|
|
437
380
|
DARKEN_SKY: typing.ClassVar[BarFlag] # value = <BarFlag.DARKEN_SKY: 0>
|
|
438
381
|
__members__: typing.ClassVar[dict[str, BarFlag]] # value = {'DARKEN_SKY': <BarFlag.DARKEN_SKY: 0>}
|
|
439
|
-
@staticmethod
|
|
440
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
441
|
-
...
|
|
442
382
|
def __eq__(self, other: typing.Any) -> bool:
|
|
443
383
|
...
|
|
444
384
|
def __getstate__(self) -> int:
|
|
@@ -472,9 +412,6 @@ class BarStyle:
|
|
|
472
412
|
SEGMENTED_6: typing.ClassVar[BarStyle] # value = <BarStyle.SEGMENTED_6: 1>
|
|
473
413
|
SOLID: typing.ClassVar[BarStyle] # value = <BarStyle.SOLID: 0>
|
|
474
414
|
__members__: typing.ClassVar[dict[str, BarStyle]] # value = {'SOLID': <BarStyle.SOLID: 0>, 'SEGMENTED_6': <BarStyle.SEGMENTED_6: 1>, 'SEGMENTED_10': <BarStyle.SEGMENTED_10: 2>, 'SEGMENTED_12': <BarStyle.SEGMENTED_12: 3>, 'SEGMENTED_20': <BarStyle.SEGMENTED_20: 4>}
|
|
475
|
-
@staticmethod
|
|
476
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
477
|
-
...
|
|
478
415
|
def __eq__(self, other: typing.Any) -> bool:
|
|
479
416
|
...
|
|
480
417
|
def __getstate__(self) -> int:
|
|
@@ -505,9 +442,6 @@ class Block:
|
|
|
505
442
|
"""
|
|
506
443
|
Represents a block.
|
|
507
444
|
"""
|
|
508
|
-
@staticmethod
|
|
509
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
510
|
-
...
|
|
511
445
|
def __str__(self) -> str:
|
|
512
446
|
...
|
|
513
447
|
def capture_state(self) -> BlockState:
|
|
@@ -535,11 +469,8 @@ class Block:
|
|
|
535
469
|
@property
|
|
536
470
|
def data(self) -> BlockData:
|
|
537
471
|
"""
|
|
538
|
-
Gets
|
|
472
|
+
Gets the complete data for this block
|
|
539
473
|
"""
|
|
540
|
-
@data.setter
|
|
541
|
-
def data(self, arg1: BlockData) -> None:
|
|
542
|
-
...
|
|
543
474
|
@property
|
|
544
475
|
def dimension(self) -> Dimension:
|
|
545
476
|
"""
|
|
@@ -555,9 +486,6 @@ class Block:
|
|
|
555
486
|
"""
|
|
556
487
|
Gets or sets the type of the block.
|
|
557
488
|
"""
|
|
558
|
-
@type.setter
|
|
559
|
-
def type(self, arg1: str) -> None:
|
|
560
|
-
...
|
|
561
489
|
@property
|
|
562
490
|
def x(self) -> int:
|
|
563
491
|
"""
|
|
@@ -577,21 +505,41 @@ class BlockBreakEvent(BlockEvent, Cancellable):
|
|
|
577
505
|
"""
|
|
578
506
|
Called when a block is broken by a player.
|
|
579
507
|
"""
|
|
580
|
-
@staticmethod
|
|
581
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
582
|
-
...
|
|
583
508
|
@property
|
|
584
509
|
def player(self) -> Player:
|
|
585
510
|
"""
|
|
586
511
|
Gets the Player that is breaking the block involved in this event.
|
|
587
512
|
"""
|
|
513
|
+
class BlockCommandSender(CommandSender):
|
|
514
|
+
"""
|
|
515
|
+
Represents a block command sender.
|
|
516
|
+
"""
|
|
517
|
+
@property
|
|
518
|
+
def block(self) -> Block:
|
|
519
|
+
"""
|
|
520
|
+
Returns the block this command sender belongs to
|
|
521
|
+
"""
|
|
522
|
+
class BlockCookEvent(BlockEvent, Cancellable):
|
|
523
|
+
"""
|
|
524
|
+
Called when an ItemStack is successfully cooked in a block.
|
|
525
|
+
"""
|
|
526
|
+
@property
|
|
527
|
+
def result(self) -> ItemStack:
|
|
528
|
+
"""
|
|
529
|
+
Gets or sets the resultant ItemStack for this event
|
|
530
|
+
"""
|
|
531
|
+
@result.setter
|
|
532
|
+
def result(self, arg1: ItemStack) -> None:
|
|
533
|
+
...
|
|
534
|
+
@property
|
|
535
|
+
def source(self) -> ItemStack:
|
|
536
|
+
"""
|
|
537
|
+
Gets the smelted ItemStack for this event
|
|
538
|
+
"""
|
|
588
539
|
class BlockData:
|
|
589
540
|
"""
|
|
590
541
|
Represents the data related to a live block
|
|
591
542
|
"""
|
|
592
|
-
@staticmethod
|
|
593
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
594
|
-
...
|
|
595
543
|
def __str__(self) -> str:
|
|
596
544
|
...
|
|
597
545
|
@property
|
|
@@ -600,6 +548,11 @@ class BlockData:
|
|
|
600
548
|
Gets the block states for this block.
|
|
601
549
|
"""
|
|
602
550
|
@property
|
|
551
|
+
def runtime_id(self) -> int:
|
|
552
|
+
"""
|
|
553
|
+
Gets the runtime id for this block.
|
|
554
|
+
"""
|
|
555
|
+
@property
|
|
603
556
|
def type(self) -> str:
|
|
604
557
|
"""
|
|
605
558
|
Get the block type represented by this block data.
|
|
@@ -608,9 +561,6 @@ class BlockEvent(Event):
|
|
|
608
561
|
"""
|
|
609
562
|
Represents an Block-related event
|
|
610
563
|
"""
|
|
611
|
-
@staticmethod
|
|
612
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
613
|
-
...
|
|
614
564
|
@property
|
|
615
565
|
def block(self) -> Block:
|
|
616
566
|
"""
|
|
@@ -624,9 +574,6 @@ class BlockFace:
|
|
|
624
574
|
UP: typing.ClassVar[BlockFace] # value = <BlockFace.UP: 1>
|
|
625
575
|
WEST: typing.ClassVar[BlockFace] # value = <BlockFace.WEST: 4>
|
|
626
576
|
__members__: typing.ClassVar[dict[str, BlockFace]] # value = {'DOWN': <BlockFace.DOWN: 0>, 'UP': <BlockFace.UP: 1>, 'NORTH': <BlockFace.NORTH: 2>, 'SOUTH': <BlockFace.SOUTH: 3>, 'WEST': <BlockFace.WEST: 4>, 'EAST': <BlockFace.EAST: 5>}
|
|
627
|
-
@staticmethod
|
|
628
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
629
|
-
...
|
|
630
577
|
def __eq__(self, other: typing.Any) -> bool:
|
|
631
578
|
...
|
|
632
579
|
def __getstate__(self) -> int:
|
|
@@ -653,13 +600,27 @@ class BlockFace:
|
|
|
653
600
|
@property
|
|
654
601
|
def value(self) -> int:
|
|
655
602
|
...
|
|
603
|
+
class BlockPistonEvent(BlockEvent, Cancellable):
|
|
604
|
+
"""
|
|
605
|
+
Called when a piston block is triggered
|
|
606
|
+
"""
|
|
607
|
+
@property
|
|
608
|
+
def direction(self) -> BlockFace:
|
|
609
|
+
"""
|
|
610
|
+
Return the direction in which the piston will operate.
|
|
611
|
+
"""
|
|
612
|
+
class BlockPistonExtendEvent(BlockPistonEvent):
|
|
613
|
+
"""
|
|
614
|
+
Called when a piston extends.
|
|
615
|
+
"""
|
|
616
|
+
class BlockPistonRetractEvent(BlockPistonEvent):
|
|
617
|
+
"""
|
|
618
|
+
Called when a piston retracts.
|
|
619
|
+
"""
|
|
656
620
|
class BlockPlaceEvent(BlockEvent, Cancellable):
|
|
657
621
|
"""
|
|
658
622
|
Called when a block is placed by a player.
|
|
659
623
|
"""
|
|
660
|
-
@staticmethod
|
|
661
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
662
|
-
...
|
|
663
624
|
@property
|
|
664
625
|
def block_against(self) -> Block:
|
|
665
626
|
"""
|
|
@@ -684,9 +645,6 @@ class BlockState:
|
|
|
684
645
|
"""
|
|
685
646
|
Represents a captured state of a block, which will not update automatically.
|
|
686
647
|
"""
|
|
687
|
-
@staticmethod
|
|
688
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
689
|
-
...
|
|
690
648
|
def __str__(self) -> str:
|
|
691
649
|
...
|
|
692
650
|
def update(self, force: bool = False, apply_physics: bool = True) -> bool:
|
|
@@ -743,9 +701,6 @@ class BossBar:
|
|
|
743
701
|
"""
|
|
744
702
|
Represents a boss bar that is displayed to players.
|
|
745
703
|
"""
|
|
746
|
-
@staticmethod
|
|
747
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
748
|
-
...
|
|
749
704
|
def add_flag(self, flag: BarFlag) -> None:
|
|
750
705
|
"""
|
|
751
706
|
Adds an optional flag to this boss bar.
|
|
@@ -819,29 +774,53 @@ class BroadcastMessageEvent(ServerEvent, Cancellable):
|
|
|
819
774
|
"""
|
|
820
775
|
Event triggered for server broadcast messages such as from Server.broadcast
|
|
821
776
|
"""
|
|
822
|
-
@staticmethod
|
|
823
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
824
|
-
...
|
|
825
777
|
@property
|
|
826
|
-
def message(self) -> str:
|
|
778
|
+
def message(self) -> str | Translatable:
|
|
827
779
|
"""
|
|
828
780
|
Gets or sets the message to broadcast.
|
|
829
781
|
"""
|
|
830
782
|
@message.setter
|
|
831
|
-
def message(self, arg1: str) -> None:
|
|
783
|
+
def message(self, arg1: str | Translatable) -> None:
|
|
832
784
|
...
|
|
833
785
|
@property
|
|
834
786
|
def recipients(self) -> set[CommandSender]:
|
|
835
787
|
"""
|
|
836
788
|
Gets a set of recipients that this broadcast message will be displayed to.
|
|
837
789
|
"""
|
|
790
|
+
class Button:
|
|
791
|
+
"""
|
|
792
|
+
Represents a button with text and an optional icon.
|
|
793
|
+
"""
|
|
794
|
+
def __init__(self, text: str | Translatable = '', icon: str | None = None, on_click: typing.Callable[[Player], None] = None) -> None:
|
|
795
|
+
...
|
|
796
|
+
@property
|
|
797
|
+
def icon(self) -> str | None:
|
|
798
|
+
"""
|
|
799
|
+
Gets or sets the icon path or URL of the button
|
|
800
|
+
"""
|
|
801
|
+
@icon.setter
|
|
802
|
+
def icon(self, arg1: str) -> Button:
|
|
803
|
+
...
|
|
804
|
+
@property
|
|
805
|
+
def on_click(self) -> typing.Callable[[Player], None]:
|
|
806
|
+
"""
|
|
807
|
+
Gets or sets the on click callback.
|
|
808
|
+
"""
|
|
809
|
+
@on_click.setter
|
|
810
|
+
def on_click(self, arg1: typing.Callable[[Player], None]) -> Button:
|
|
811
|
+
...
|
|
812
|
+
@property
|
|
813
|
+
def text(self) -> str | Translatable:
|
|
814
|
+
"""
|
|
815
|
+
Gets or sets the text of the button
|
|
816
|
+
"""
|
|
817
|
+
@text.setter
|
|
818
|
+
def text(self, arg1: str | Translatable) -> Button:
|
|
819
|
+
...
|
|
838
820
|
class Cancellable:
|
|
839
821
|
"""
|
|
840
822
|
Represents an event that may be cancelled by a plugin or the server.
|
|
841
823
|
"""
|
|
842
|
-
@staticmethod
|
|
843
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
844
|
-
...
|
|
845
824
|
def cancel(self) -> None:
|
|
846
825
|
"""
|
|
847
826
|
Cancel this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
|
|
@@ -866,8 +845,9 @@ class Chunk:
|
|
|
866
845
|
"""
|
|
867
846
|
Represents a chunk of blocks.
|
|
868
847
|
"""
|
|
869
|
-
|
|
870
|
-
|
|
848
|
+
def __repr__(self) -> str:
|
|
849
|
+
...
|
|
850
|
+
def __str__(self) -> str:
|
|
871
851
|
...
|
|
872
852
|
@property
|
|
873
853
|
def dimension(self) -> Dimension:
|
|
@@ -889,6 +869,23 @@ class Chunk:
|
|
|
889
869
|
"""
|
|
890
870
|
Gets the Z-coordinate of this chunk
|
|
891
871
|
"""
|
|
872
|
+
class ChunkEvent(DimensionEvent):
|
|
873
|
+
"""
|
|
874
|
+
Represents a Chunk related event
|
|
875
|
+
"""
|
|
876
|
+
@property
|
|
877
|
+
def chunk(self) -> Chunk:
|
|
878
|
+
"""
|
|
879
|
+
Gets the chunk being loaded/unloaded
|
|
880
|
+
"""
|
|
881
|
+
class ChunkLoadEvent(ChunkEvent):
|
|
882
|
+
"""
|
|
883
|
+
Called when a chunk is loaded
|
|
884
|
+
"""
|
|
885
|
+
class ChunkUnloadEvent(ChunkEvent):
|
|
886
|
+
"""
|
|
887
|
+
Called when a chunk is unloaded
|
|
888
|
+
"""
|
|
892
889
|
class ColorFormat:
|
|
893
890
|
"""
|
|
894
891
|
All supported color and format codes.
|
|
@@ -925,16 +922,10 @@ class ColorFormat:
|
|
|
925
922
|
RESET: typing.ClassVar[str] = '§r'
|
|
926
923
|
WHITE: typing.ClassVar[str] = '§f'
|
|
927
924
|
YELLOW: typing.ClassVar[str] = '§e'
|
|
928
|
-
@staticmethod
|
|
929
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
930
|
-
...
|
|
931
925
|
class Command:
|
|
932
926
|
"""
|
|
933
927
|
Represents a Command, which executes various tasks upon user input
|
|
934
928
|
"""
|
|
935
|
-
@staticmethod
|
|
936
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
937
|
-
...
|
|
938
929
|
def __init__(self, name: str, description: str | None = None, usages: list[str] | None = None, aliases: list[str] | None = None, permissions: list[str] | None = None, *args, **kwargs) -> None:
|
|
939
930
|
...
|
|
940
931
|
def execute(self, sender: CommandSender, args: list[str]) -> bool:
|
|
@@ -998,9 +989,6 @@ class CommandExecutor:
|
|
|
998
989
|
"""
|
|
999
990
|
Represents a class which contains a single method for executing commands
|
|
1000
991
|
"""
|
|
1001
|
-
@staticmethod
|
|
1002
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1003
|
-
...
|
|
1004
992
|
def __init__(self) -> None:
|
|
1005
993
|
...
|
|
1006
994
|
def on_command(self, sender: CommandSender, command: Command, args: list[str]) -> bool:
|
|
@@ -1011,9 +999,6 @@ class CommandSender(Permissible):
|
|
|
1011
999
|
"""
|
|
1012
1000
|
Represents a command sender.
|
|
1013
1001
|
"""
|
|
1014
|
-
@staticmethod
|
|
1015
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1016
|
-
...
|
|
1017
1002
|
def send_error_message(self, message: str | Translatable) -> None:
|
|
1018
1003
|
"""
|
|
1019
1004
|
Sends this sender an error message
|
|
@@ -1036,18 +1021,12 @@ class CommandSenderWrapper(CommandSender):
|
|
|
1036
1021
|
"""
|
|
1037
1022
|
Represents a wrapper that forwards commands to the wrapped CommandSender and captures its output
|
|
1038
1023
|
"""
|
|
1039
|
-
@staticmethod
|
|
1040
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1041
|
-
...
|
|
1042
1024
|
def __init__(self, sender: CommandSender, on_message: typing.Callable[[str | Translatable], None] = None, on_error: typing.Callable[[str | Translatable], None] = None) -> None:
|
|
1043
1025
|
...
|
|
1044
1026
|
class ConsoleCommandSender(CommandSender):
|
|
1045
1027
|
"""
|
|
1046
1028
|
Represents a console command sender.
|
|
1047
1029
|
"""
|
|
1048
|
-
@staticmethod
|
|
1049
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1050
|
-
...
|
|
1051
1030
|
class Criteria:
|
|
1052
1031
|
"""
|
|
1053
1032
|
Represents a scoreboard criteria.
|
|
@@ -1058,9 +1037,6 @@ class Criteria:
|
|
|
1058
1037
|
"""
|
|
1059
1038
|
DUMMY: typing.ClassVar[Criteria.Type] # value = <Type.DUMMY: 0>
|
|
1060
1039
|
__members__: typing.ClassVar[dict[str, Criteria.Type]] # value = {'DUMMY': <Type.DUMMY: 0>}
|
|
1061
|
-
@staticmethod
|
|
1062
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1063
|
-
...
|
|
1064
1040
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1065
1041
|
...
|
|
1066
1042
|
def __getstate__(self) -> int:
|
|
@@ -1088,9 +1064,6 @@ class Criteria:
|
|
|
1088
1064
|
def value(self) -> int:
|
|
1089
1065
|
...
|
|
1090
1066
|
DUMMY: typing.ClassVar[Criteria.Type] # value = <Type.DUMMY: 0>
|
|
1091
|
-
@staticmethod
|
|
1092
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1093
|
-
...
|
|
1094
1067
|
@property
|
|
1095
1068
|
def default_render_type(self) -> RenderType:
|
|
1096
1069
|
...
|
|
@@ -1104,9 +1077,6 @@ class DamageSource:
|
|
|
1104
1077
|
"""
|
|
1105
1078
|
Represents a source of damage.
|
|
1106
1079
|
"""
|
|
1107
|
-
@staticmethod
|
|
1108
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1109
|
-
...
|
|
1110
1080
|
def __str__(self) -> str:
|
|
1111
1081
|
...
|
|
1112
1082
|
@property
|
|
@@ -1129,40 +1099,6 @@ class DamageSource:
|
|
|
1129
1099
|
"""
|
|
1130
1100
|
Get the damage type.
|
|
1131
1101
|
"""
|
|
1132
|
-
class DataPacketReceiveEvent(ServerEvent, Cancellable):
|
|
1133
|
-
"""
|
|
1134
|
-
Called when the server receives a packet from a connected client.
|
|
1135
|
-
"""
|
|
1136
|
-
@staticmethod
|
|
1137
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1138
|
-
...
|
|
1139
|
-
@property
|
|
1140
|
-
def data(self) -> bytes:
|
|
1141
|
-
"""
|
|
1142
|
-
Gets the raw packet data
|
|
1143
|
-
"""
|
|
1144
|
-
@property
|
|
1145
|
-
def player(self) -> Player:
|
|
1146
|
-
"""
|
|
1147
|
-
Gets the player involved in this event
|
|
1148
|
-
"""
|
|
1149
|
-
class DataPacketSendEvent(ServerEvent, Cancellable):
|
|
1150
|
-
"""
|
|
1151
|
-
Called when the server sends a packet to a connected client.
|
|
1152
|
-
"""
|
|
1153
|
-
@staticmethod
|
|
1154
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1155
|
-
...
|
|
1156
|
-
@property
|
|
1157
|
-
def data(self) -> bytes:
|
|
1158
|
-
"""
|
|
1159
|
-
Gets the raw packet data
|
|
1160
|
-
"""
|
|
1161
|
-
@property
|
|
1162
|
-
def player(self) -> Player:
|
|
1163
|
-
"""
|
|
1164
|
-
Gets the player involved in this event
|
|
1165
|
-
"""
|
|
1166
1102
|
class Dimension:
|
|
1167
1103
|
"""
|
|
1168
1104
|
Represents a dimension within a Level.
|
|
@@ -1176,9 +1112,6 @@ class Dimension:
|
|
|
1176
1112
|
OVERWORLD: typing.ClassVar[Dimension.Type] # value = <Type.OVERWORLD: 0>
|
|
1177
1113
|
THE_END: typing.ClassVar[Dimension.Type] # value = <Type.THE_END: 2>
|
|
1178
1114
|
__members__: typing.ClassVar[dict[str, Dimension.Type]] # value = {'OVERWORLD': <Type.OVERWORLD: 0>, 'NETHER': <Type.NETHER: 1>, 'THE_END': <Type.THE_END: 2>, 'CUSTOM': <Type.CUSTOM: 999>}
|
|
1179
|
-
@staticmethod
|
|
1180
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1181
|
-
...
|
|
1182
1115
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1183
1116
|
...
|
|
1184
1117
|
def __getstate__(self) -> int:
|
|
@@ -1209,9 +1142,6 @@ class Dimension:
|
|
|
1209
1142
|
NETHER: typing.ClassVar[Dimension.Type] # value = <Type.NETHER: 1>
|
|
1210
1143
|
OVERWORLD: typing.ClassVar[Dimension.Type] # value = <Type.OVERWORLD: 0>
|
|
1211
1144
|
THE_END: typing.ClassVar[Dimension.Type] # value = <Type.THE_END: 2>
|
|
1212
|
-
@staticmethod
|
|
1213
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1214
|
-
...
|
|
1215
1145
|
@typing.overload
|
|
1216
1146
|
def get_block_at(self, location: Location) -> Block:
|
|
1217
1147
|
"""
|
|
@@ -1256,6 +1186,15 @@ class Dimension:
|
|
|
1256
1186
|
"""
|
|
1257
1187
|
Gets the type of this dimension
|
|
1258
1188
|
"""
|
|
1189
|
+
class DimensionEvent(LevelEvent):
|
|
1190
|
+
"""
|
|
1191
|
+
Represents events within a dimension
|
|
1192
|
+
"""
|
|
1193
|
+
@property
|
|
1194
|
+
def dimension(self) -> Dimension:
|
|
1195
|
+
"""
|
|
1196
|
+
Gets the dimension primarily involved with this event
|
|
1197
|
+
"""
|
|
1259
1198
|
class DisplaySlot:
|
|
1260
1199
|
"""
|
|
1261
1200
|
Locations for displaying objectives to the player
|
|
@@ -1264,9 +1203,6 @@ class DisplaySlot:
|
|
|
1264
1203
|
PLAYER_LIST: typing.ClassVar[DisplaySlot] # value = <DisplaySlot.PLAYER_LIST: 1>
|
|
1265
1204
|
SIDE_BAR: typing.ClassVar[DisplaySlot] # value = <DisplaySlot.SIDE_BAR: 2>
|
|
1266
1205
|
__members__: typing.ClassVar[dict[str, DisplaySlot]] # value = {'BELOW_NAME': <DisplaySlot.BELOW_NAME: 0>, 'PLAYER_LIST': <DisplaySlot.PLAYER_LIST: 1>, 'SIDE_BAR': <DisplaySlot.SIDE_BAR: 2>}
|
|
1267
|
-
@staticmethod
|
|
1268
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1269
|
-
...
|
|
1270
1206
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1271
1207
|
...
|
|
1272
1208
|
def __getstate__(self) -> int:
|
|
@@ -1293,13 +1229,16 @@ class DisplaySlot:
|
|
|
1293
1229
|
@property
|
|
1294
1230
|
def value(self) -> int:
|
|
1295
1231
|
...
|
|
1232
|
+
class Divider:
|
|
1233
|
+
"""
|
|
1234
|
+
Represents a divider.
|
|
1235
|
+
"""
|
|
1236
|
+
def __init__(self) -> None:
|
|
1237
|
+
...
|
|
1296
1238
|
class Dropdown:
|
|
1297
1239
|
"""
|
|
1298
1240
|
Represents a dropdown with a set of predefined options.
|
|
1299
1241
|
"""
|
|
1300
|
-
@staticmethod
|
|
1301
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1302
|
-
...
|
|
1303
1242
|
def __init__(self, label: str | Translatable = '', options: list[str] | None = None, default_index: int | None = None) -> None:
|
|
1304
1243
|
...
|
|
1305
1244
|
def add_option(self, option: str) -> Dropdown:
|
|
@@ -1330,13 +1269,95 @@ class Dropdown:
|
|
|
1330
1269
|
@options.setter
|
|
1331
1270
|
def options(self, arg1: list[str]) -> Dropdown:
|
|
1332
1271
|
...
|
|
1272
|
+
class Enchantment:
|
|
1273
|
+
def can_enchant_item(self, item: ItemStack) -> bool:
|
|
1274
|
+
"""
|
|
1275
|
+
Checks if this Enchantment may be applied to the given ItemStack.
|
|
1276
|
+
|
|
1277
|
+
This does not check if it conflicts with any enchantments already applied to the item.
|
|
1278
|
+
"""
|
|
1279
|
+
def conflicts_with(self, other: Enchantment) -> bool:
|
|
1280
|
+
"""
|
|
1281
|
+
Check if this enchantment conflicts with another enchantment.
|
|
1282
|
+
"""
|
|
1283
|
+
@property
|
|
1284
|
+
def key(self) -> NamespacedKey:
|
|
1285
|
+
"""
|
|
1286
|
+
Return the namespaced identifier for this enchantment.
|
|
1287
|
+
"""
|
|
1288
|
+
@property
|
|
1289
|
+
def max_level(self) -> int:
|
|
1290
|
+
"""
|
|
1291
|
+
Gets the maximum level that this Enchantment may become.
|
|
1292
|
+
"""
|
|
1293
|
+
@property
|
|
1294
|
+
def start_level(self) -> int:
|
|
1295
|
+
"""
|
|
1296
|
+
Gets the level that this Enchantment should start at (also known as minimum level).
|
|
1297
|
+
"""
|
|
1298
|
+
@property
|
|
1299
|
+
def translation_key(self) -> str:
|
|
1300
|
+
"""
|
|
1301
|
+
Get the translation key, suitable for use in a translation component.
|
|
1302
|
+
"""
|
|
1303
|
+
class EnchantmentRegistry:
|
|
1304
|
+
@typing.overload
|
|
1305
|
+
def __contains__(self, key: NamespacedKey) -> bool:
|
|
1306
|
+
...
|
|
1307
|
+
@typing.overload
|
|
1308
|
+
def __contains__(self, key: str) -> bool:
|
|
1309
|
+
...
|
|
1310
|
+
@typing.overload
|
|
1311
|
+
def __getitem__(self, key: NamespacedKey) -> Enchantment:
|
|
1312
|
+
...
|
|
1313
|
+
@typing.overload
|
|
1314
|
+
def __getitem__(self, key: str) -> Enchantment:
|
|
1315
|
+
...
|
|
1316
|
+
def __iter__(self) -> list:
|
|
1317
|
+
...
|
|
1318
|
+
def get(self, key: NamespacedKey) -> Enchantment:
|
|
1319
|
+
...
|
|
1320
|
+
def get_or_throw(self, key: NamespacedKey) -> Enchantment:
|
|
1321
|
+
...
|
|
1322
|
+
class EquipmentSlot:
|
|
1323
|
+
BODY: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.BODY: 6>
|
|
1324
|
+
CHEST: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.CHEST: 4>
|
|
1325
|
+
FEET: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.FEET: 2>
|
|
1326
|
+
HAND: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.HAND: 0>
|
|
1327
|
+
HEAD: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.HEAD: 5>
|
|
1328
|
+
LEGS: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.LEGS: 3>
|
|
1329
|
+
OFF_HAND: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.OFF_HAND: 1>
|
|
1330
|
+
__members__: typing.ClassVar[dict[str, EquipmentSlot]] # value = {'HAND': <EquipmentSlot.HAND: 0>, 'OFF_HAND': <EquipmentSlot.OFF_HAND: 1>, 'FEET': <EquipmentSlot.FEET: 2>, 'LEGS': <EquipmentSlot.LEGS: 3>, 'CHEST': <EquipmentSlot.CHEST: 4>, 'HEAD': <EquipmentSlot.HEAD: 5>, 'BODY': <EquipmentSlot.BODY: 6>}
|
|
1331
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
1332
|
+
...
|
|
1333
|
+
def __getstate__(self) -> int:
|
|
1334
|
+
...
|
|
1335
|
+
def __hash__(self) -> int:
|
|
1336
|
+
...
|
|
1337
|
+
def __index__(self) -> int:
|
|
1338
|
+
...
|
|
1339
|
+
def __init__(self, value: int) -> None:
|
|
1340
|
+
...
|
|
1341
|
+
def __int__(self) -> int:
|
|
1342
|
+
...
|
|
1343
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
1344
|
+
...
|
|
1345
|
+
def __repr__(self) -> str:
|
|
1346
|
+
...
|
|
1347
|
+
def __setstate__(self, state: int) -> None:
|
|
1348
|
+
...
|
|
1349
|
+
def __str__(self) -> str:
|
|
1350
|
+
...
|
|
1351
|
+
@property
|
|
1352
|
+
def name(self) -> str:
|
|
1353
|
+
...
|
|
1354
|
+
@property
|
|
1355
|
+
def value(self) -> int:
|
|
1356
|
+
...
|
|
1333
1357
|
class Event:
|
|
1334
1358
|
"""
|
|
1335
1359
|
Represents an event.
|
|
1336
1360
|
"""
|
|
1337
|
-
@staticmethod
|
|
1338
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1339
|
-
...
|
|
1340
1361
|
@property
|
|
1341
1362
|
def event_name(self) -> str:
|
|
1342
1363
|
"""
|
|
@@ -1358,9 +1379,6 @@ class EventPriority:
|
|
|
1358
1379
|
MONITOR: typing.ClassVar[EventPriority] # value = <EventPriority.MONITOR: 5>
|
|
1359
1380
|
NORMAL: typing.ClassVar[EventPriority] # value = <EventPriority.NORMAL: 2>
|
|
1360
1381
|
__members__: typing.ClassVar[dict[str, EventPriority]] # value = {'LOWEST': <EventPriority.LOWEST: 0>, 'LOW': <EventPriority.LOW: 1>, 'NORMAL': <EventPriority.NORMAL: 2>, 'HIGH': <EventPriority.HIGH: 3>, 'HIGHEST': <EventPriority.HIGHEST: 4>, 'MONITOR': <EventPriority.MONITOR: 5>}
|
|
1361
|
-
@staticmethod
|
|
1362
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1363
|
-
...
|
|
1364
1382
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1365
1383
|
...
|
|
1366
1384
|
def __getstate__(self) -> int:
|
|
@@ -1387,8 +1405,39 @@ class EventPriority:
|
|
|
1387
1405
|
@property
|
|
1388
1406
|
def value(self) -> int:
|
|
1389
1407
|
...
|
|
1390
|
-
class
|
|
1391
|
-
|
|
1408
|
+
class EventResult:
|
|
1409
|
+
ALLOW: typing.ClassVar[EventResult] # value = <EventResult.ALLOW: 2>
|
|
1410
|
+
DEFAULT: typing.ClassVar[EventResult] # value = <EventResult.DEFAULT: 1>
|
|
1411
|
+
DENY: typing.ClassVar[EventResult] # value = <EventResult.DENY: 0>
|
|
1412
|
+
__members__: typing.ClassVar[dict[str, EventResult]] # value = {'DENY': <EventResult.DENY: 0>, 'DEFAULT': <EventResult.DEFAULT: 1>, 'ALLOW': <EventResult.ALLOW: 2>}
|
|
1413
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
1414
|
+
...
|
|
1415
|
+
def __getstate__(self) -> int:
|
|
1416
|
+
...
|
|
1417
|
+
def __hash__(self) -> int:
|
|
1418
|
+
...
|
|
1419
|
+
def __index__(self) -> int:
|
|
1420
|
+
...
|
|
1421
|
+
def __init__(self, value: int) -> None:
|
|
1422
|
+
...
|
|
1423
|
+
def __int__(self) -> int:
|
|
1424
|
+
...
|
|
1425
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
1426
|
+
...
|
|
1427
|
+
def __repr__(self) -> str:
|
|
1428
|
+
...
|
|
1429
|
+
def __setstate__(self, state: int) -> None:
|
|
1430
|
+
...
|
|
1431
|
+
def __str__(self) -> str:
|
|
1432
|
+
...
|
|
1433
|
+
@property
|
|
1434
|
+
def name(self) -> str:
|
|
1435
|
+
...
|
|
1436
|
+
@property
|
|
1437
|
+
def value(self) -> int:
|
|
1438
|
+
...
|
|
1439
|
+
class GameMode:
|
|
1440
|
+
"""
|
|
1392
1441
|
Represents the various type of game modes that Players may have.
|
|
1393
1442
|
"""
|
|
1394
1443
|
ADVENTURE: typing.ClassVar[GameMode] # value = <GameMode.ADVENTURE: 2>
|
|
@@ -1396,9 +1445,6 @@ class GameMode:
|
|
|
1396
1445
|
SPECTATOR: typing.ClassVar[GameMode] # value = <GameMode.SPECTATOR: 3>
|
|
1397
1446
|
SURVIVAL: typing.ClassVar[GameMode] # value = <GameMode.SURVIVAL: 0>
|
|
1398
1447
|
__members__: typing.ClassVar[dict[str, GameMode]] # value = {'SURVIVAL': <GameMode.SURVIVAL: 0>, 'CREATIVE': <GameMode.CREATIVE: 1>, 'ADVENTURE': <GameMode.ADVENTURE: 2>, 'SPECTATOR': <GameMode.SPECTATOR: 3>}
|
|
1399
|
-
@staticmethod
|
|
1400
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1401
|
-
...
|
|
1402
1448
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1403
1449
|
...
|
|
1404
1450
|
def __getstate__(self) -> int:
|
|
@@ -1425,14 +1471,35 @@ class GameMode:
|
|
|
1425
1471
|
@property
|
|
1426
1472
|
def value(self) -> int:
|
|
1427
1473
|
...
|
|
1474
|
+
class Header:
|
|
1475
|
+
"""
|
|
1476
|
+
Represents a header with a label.
|
|
1477
|
+
"""
|
|
1478
|
+
def __init__(self, label: str | Translatable = '') -> None:
|
|
1479
|
+
...
|
|
1480
|
+
@property
|
|
1481
|
+
def label(self) -> str | Translatable:
|
|
1482
|
+
"""
|
|
1483
|
+
Gets or sets the label of the header.
|
|
1484
|
+
"""
|
|
1485
|
+
@label.setter
|
|
1486
|
+
def label(self, arg1: str | Translatable) -> Header:
|
|
1487
|
+
...
|
|
1428
1488
|
class Inventory:
|
|
1429
1489
|
"""
|
|
1430
1490
|
Interface to the various inventories.
|
|
1431
1491
|
"""
|
|
1432
|
-
@
|
|
1433
|
-
def
|
|
1434
|
-
|
|
1435
|
-
|
|
1492
|
+
@typing.overload
|
|
1493
|
+
def __contains__(self, item: ItemStack) -> bool:
|
|
1494
|
+
"""
|
|
1495
|
+
Checks if the inventory contains any ItemStacks with the given ItemStack.
|
|
1496
|
+
"""
|
|
1497
|
+
@typing.overload
|
|
1498
|
+
def __contains__(self, type: str) -> bool:
|
|
1499
|
+
"""
|
|
1500
|
+
Checks if the inventory contains any ItemStacks with the given ItemType.
|
|
1501
|
+
"""
|
|
1502
|
+
def __getitem__(self, index: int) -> ItemStack:
|
|
1436
1503
|
"""
|
|
1437
1504
|
Returns the ItemStack found in the slot at the given index
|
|
1438
1505
|
"""
|
|
@@ -1440,27 +1507,105 @@ class Inventory:
|
|
|
1440
1507
|
"""
|
|
1441
1508
|
Returns the size of the inventory
|
|
1442
1509
|
"""
|
|
1443
|
-
def
|
|
1510
|
+
def __setitem__(self, index: int, item: ItemStack) -> None:
|
|
1444
1511
|
"""
|
|
1445
1512
|
Stores the ItemStack at the given index of the inventory.
|
|
1446
1513
|
"""
|
|
1447
|
-
def add_item(self,
|
|
1514
|
+
def add_item(self, *args) -> dict[int, ItemStack]:
|
|
1515
|
+
"""
|
|
1516
|
+
Stores the given ItemStacks in the inventory.
|
|
1517
|
+
This will try to fill existing stacks and empty slots as well as it can.
|
|
1518
|
+
|
|
1519
|
+
The returned map contains what it couldn't store, where the key is the index, and the value is the ItemStack.
|
|
1520
|
+
If all items are stored, it will return an empty dict.
|
|
1448
1521
|
"""
|
|
1449
|
-
|
|
1522
|
+
@typing.overload
|
|
1523
|
+
def all(self, item: ItemStack) -> dict[int, ItemStack]:
|
|
1450
1524
|
"""
|
|
1525
|
+
Finds all slots in the inventory containing any ItemStacks with the given ItemStack.
|
|
1526
|
+
This will only match slots if both the type and the amount of the stack match
|
|
1527
|
+
The returned map contains entries where, the key is the slot index, and the value is the ItemStack in that slot. If no matching ItemStack is found, an empty dict is returned.
|
|
1528
|
+
"""
|
|
1529
|
+
@typing.overload
|
|
1530
|
+
def all(self, type: str) -> dict[int, ItemStack]:
|
|
1531
|
+
"""
|
|
1532
|
+
Finds all slots in the inventory containing any ItemStacks with the given ItemType.
|
|
1533
|
+
The returned map contains entries where, the key is the slot index, and the value is the ItemStack in that slot. If no matching ItemStack is found, an empty dict is returned.
|
|
1534
|
+
"""
|
|
1535
|
+
@typing.overload
|
|
1536
|
+
def clear(self, index: int) -> None:
|
|
1537
|
+
"""
|
|
1538
|
+
Clears out a particular slot in the index.
|
|
1539
|
+
"""
|
|
1540
|
+
@typing.overload
|
|
1451
1541
|
def clear(self) -> None:
|
|
1452
1542
|
"""
|
|
1453
1543
|
Clears out the whole Inventory.
|
|
1454
1544
|
"""
|
|
1545
|
+
@typing.overload
|
|
1546
|
+
def contains(self, item: ItemStack, amount: int) -> bool:
|
|
1547
|
+
"""
|
|
1548
|
+
Checks if the inventory contains at least the minimum amount specified of exactly matching ItemStacks.
|
|
1549
|
+
An ItemStack only counts if both the type and the amount of the stack match.
|
|
1550
|
+
"""
|
|
1551
|
+
@typing.overload
|
|
1552
|
+
def contains(self, item: ItemStack) -> bool:
|
|
1553
|
+
"""
|
|
1554
|
+
Checks if the inventory contains any ItemStacks with the given ItemStack.
|
|
1555
|
+
This will only return true if both the type and the amount of the stack match.
|
|
1556
|
+
"""
|
|
1557
|
+
@typing.overload
|
|
1558
|
+
def contains(self, type: str) -> bool:
|
|
1559
|
+
"""
|
|
1560
|
+
Checks if the inventory contains any ItemStacks with the given ItemType.
|
|
1561
|
+
"""
|
|
1562
|
+
@typing.overload
|
|
1563
|
+
def contains_at_least(self, item: ItemStack, amount: int) -> bool:
|
|
1564
|
+
"""
|
|
1565
|
+
Checks if the inventory contains ItemStacks matching the given ItemStack whose amounts sum to at least the minimum amount specified.
|
|
1566
|
+
"""
|
|
1567
|
+
@typing.overload
|
|
1568
|
+
def contains_at_least(self, type: str, amount: int) -> bool:
|
|
1569
|
+
"""
|
|
1570
|
+
Checks if the inventory contains any ItemStacks with the given ItemType, adding to at least the minimum amount specified.
|
|
1571
|
+
"""
|
|
1572
|
+
@typing.overload
|
|
1455
1573
|
def first(self, item: ItemStack) -> int:
|
|
1456
1574
|
"""
|
|
1457
1575
|
Returns the first slot in the inventory containing an ItemStack with the given stack.
|
|
1576
|
+
This will only match slots if both the type and the amount of the stack match
|
|
1577
|
+
The returned map contains entries where, the key is the slot index, and the value is the ItemStack in that slot. If no matching ItemStack is found, an empty dict is returned.
|
|
1578
|
+
"""
|
|
1579
|
+
@typing.overload
|
|
1580
|
+
def first(self, type: str) -> int:
|
|
1581
|
+
"""
|
|
1582
|
+
Finds the first slot in the inventory containing an ItemStack with the given ItemType.
|
|
1583
|
+
The returned map contains entries where, the key is the slot index, and the value is the ItemStack in that slot. If no matching ItemStack is found, an empty dict is returned.
|
|
1458
1584
|
"""
|
|
1459
1585
|
def get_item(self, index: int) -> ItemStack:
|
|
1460
1586
|
"""
|
|
1461
1587
|
Returns the ItemStack found in the slot at the given index
|
|
1462
1588
|
"""
|
|
1463
|
-
|
|
1589
|
+
@typing.overload
|
|
1590
|
+
def remove(self, item: ItemStack) -> None:
|
|
1591
|
+
"""
|
|
1592
|
+
Removes all stacks in the inventory matching the given stack.
|
|
1593
|
+
This will only match a slot if both the type and the amount of the stack match
|
|
1594
|
+
"""
|
|
1595
|
+
@typing.overload
|
|
1596
|
+
def remove(self, type: str) -> None:
|
|
1597
|
+
"""
|
|
1598
|
+
Removes all stacks in the inventory matching the given ItemType.
|
|
1599
|
+
"""
|
|
1600
|
+
def remove_item(self, *args) -> dict[int, ItemStack]:
|
|
1601
|
+
"""
|
|
1602
|
+
Removes the given ItemStacks from the inventory.
|
|
1603
|
+
It will try to remove 'as much as possible' from the types and amounts you give as arguments.
|
|
1604
|
+
|
|
1605
|
+
The returned HashMap contains what it couldn't remove, where the key is the index, and the value is the ItemStack.
|
|
1606
|
+
If all the given ItemStacks are removed, it will return an empty dict.
|
|
1607
|
+
"""
|
|
1608
|
+
def set_item(self, index: int, item: ItemStack) -> None:
|
|
1464
1609
|
"""
|
|
1465
1610
|
Stores the ItemStack at the given index of the inventory.
|
|
1466
1611
|
"""
|
|
@@ -1469,6 +1614,14 @@ class Inventory:
|
|
|
1469
1614
|
"""
|
|
1470
1615
|
Returns all ItemStacks from the inventory
|
|
1471
1616
|
"""
|
|
1617
|
+
@contents.setter
|
|
1618
|
+
def contents(self, arg1: list[ItemStack]) -> None:
|
|
1619
|
+
...
|
|
1620
|
+
@property
|
|
1621
|
+
def first_empty(self) -> int:
|
|
1622
|
+
"""
|
|
1623
|
+
Returns the first empty Slot.
|
|
1624
|
+
"""
|
|
1472
1625
|
@property
|
|
1473
1626
|
def is_empty(self) -> bool:
|
|
1474
1627
|
"""
|
|
@@ -1488,9 +1641,6 @@ class IpBanEntry(BanEntry):
|
|
|
1488
1641
|
"""
|
|
1489
1642
|
Represents a ban entry for an IP address.
|
|
1490
1643
|
"""
|
|
1491
|
-
@staticmethod
|
|
1492
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1493
|
-
...
|
|
1494
1644
|
def __init__(self, address: str) -> None:
|
|
1495
1645
|
...
|
|
1496
1646
|
@property
|
|
@@ -1502,9 +1652,6 @@ class IpBanList:
|
|
|
1502
1652
|
"""
|
|
1503
1653
|
Represents a ban list containing banned IP addresses.
|
|
1504
1654
|
"""
|
|
1505
|
-
@staticmethod
|
|
1506
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1507
|
-
...
|
|
1508
1655
|
def add_ban(self, address: str, reason: str | None = None, expires: datetime.datetime | None = None, source: str | None = None) -> IpBanEntry:
|
|
1509
1656
|
"""
|
|
1510
1657
|
Adds a ban to this list, or updates an existing one.
|
|
@@ -1526,17 +1673,197 @@ class IpBanList:
|
|
|
1526
1673
|
"""
|
|
1527
1674
|
Gets a vector of pointers to entries in the ban list.
|
|
1528
1675
|
"""
|
|
1676
|
+
class Item(Actor):
|
|
1677
|
+
"""
|
|
1678
|
+
Represents a base actor in the level.
|
|
1679
|
+
"""
|
|
1680
|
+
@property
|
|
1681
|
+
def is_unlimited_lifetime(self) -> bool:
|
|
1682
|
+
"""
|
|
1683
|
+
Gets or sets if this Item lives forever
|
|
1684
|
+
"""
|
|
1685
|
+
@is_unlimited_lifetime.setter
|
|
1686
|
+
def is_unlimited_lifetime(self, arg1: bool) -> None:
|
|
1687
|
+
...
|
|
1688
|
+
@property
|
|
1689
|
+
def item_stack(self) -> ItemStack:
|
|
1690
|
+
"""
|
|
1691
|
+
Gets or sets the item stack associated with this item drop.
|
|
1692
|
+
"""
|
|
1693
|
+
@item_stack.setter
|
|
1694
|
+
def item_stack(self, arg1: ItemStack) -> None:
|
|
1695
|
+
...
|
|
1696
|
+
@property
|
|
1697
|
+
def pickup_delay(self) -> int:
|
|
1698
|
+
"""
|
|
1699
|
+
Gets or sets the delay before this Item is available to be picked up by players.
|
|
1700
|
+
"""
|
|
1701
|
+
@pickup_delay.setter
|
|
1702
|
+
def pickup_delay(self, arg1: int) -> None:
|
|
1703
|
+
...
|
|
1704
|
+
@property
|
|
1705
|
+
def thrower(self) -> int | None:
|
|
1706
|
+
"""
|
|
1707
|
+
Gets or sets the thrower of this item.
|
|
1708
|
+
"""
|
|
1709
|
+
@thrower.setter
|
|
1710
|
+
def thrower(self, arg1: int | None) -> None:
|
|
1711
|
+
...
|
|
1712
|
+
class ItemFactory:
|
|
1713
|
+
def as_meta_for(self, meta: ItemMeta, type: ItemType) -> ItemMeta:
|
|
1714
|
+
"""
|
|
1715
|
+
Returns an appropriate item meta for the specified item type.
|
|
1716
|
+
"""
|
|
1717
|
+
def equals(self, meta1: ItemMeta, meta2: ItemMeta) -> bool:
|
|
1718
|
+
"""
|
|
1719
|
+
This method is used to compare two ItemMeta objects.
|
|
1720
|
+
"""
|
|
1721
|
+
def get_item_meta(self, type: ItemType) -> ItemMeta:
|
|
1722
|
+
"""
|
|
1723
|
+
This creates a new item meta for the item type.
|
|
1724
|
+
"""
|
|
1725
|
+
def is_applicable(self, meta: ItemMeta, type: ItemType) -> bool:
|
|
1726
|
+
"""
|
|
1727
|
+
This method checks the item meta to confirm that it is applicable (no data lost if applied) to the specified ItemStack
|
|
1728
|
+
"""
|
|
1729
|
+
class ItemMeta:
|
|
1730
|
+
"""
|
|
1731
|
+
Represents the metadata of a generic item.
|
|
1732
|
+
"""
|
|
1733
|
+
def add_enchant(self, id: str, level: int, force: bool = False) -> bool:
|
|
1734
|
+
"""
|
|
1735
|
+
Adds the specified enchantment to this item meta.
|
|
1736
|
+
"""
|
|
1737
|
+
def clone(self) -> ItemMeta:
|
|
1738
|
+
"""
|
|
1739
|
+
Creates a clone of the current metadata.
|
|
1740
|
+
"""
|
|
1741
|
+
def get_enchant_level(self, id: str) -> int:
|
|
1742
|
+
"""
|
|
1743
|
+
Checks for the level of the specified enchantment.
|
|
1744
|
+
"""
|
|
1745
|
+
def has_enchant(self, id: str) -> bool:
|
|
1746
|
+
"""
|
|
1747
|
+
Checks for existence of the specified enchantment.
|
|
1748
|
+
"""
|
|
1749
|
+
def remove_enchant(self, id: str) -> bool:
|
|
1750
|
+
"""
|
|
1751
|
+
Removes the specified enchantment from this item meta.
|
|
1752
|
+
"""
|
|
1753
|
+
def remove_enchants(self) -> None:
|
|
1754
|
+
"""
|
|
1755
|
+
Removes all enchantments from this item meta.
|
|
1756
|
+
"""
|
|
1757
|
+
@property
|
|
1758
|
+
def damage(self) -> int:
|
|
1759
|
+
"""
|
|
1760
|
+
Gets or sets the damage.
|
|
1761
|
+
"""
|
|
1762
|
+
@damage.setter
|
|
1763
|
+
def damage(self, arg1: int) -> None:
|
|
1764
|
+
...
|
|
1765
|
+
@property
|
|
1766
|
+
def display_name(self) -> str | None:
|
|
1767
|
+
"""
|
|
1768
|
+
Gets or sets the display name.
|
|
1769
|
+
"""
|
|
1770
|
+
@display_name.setter
|
|
1771
|
+
def display_name(self, arg1: str | None) -> None:
|
|
1772
|
+
...
|
|
1773
|
+
@property
|
|
1774
|
+
def enchants(self) -> dict[str, int]:
|
|
1775
|
+
"""
|
|
1776
|
+
Returns a copy the enchantments in this ItemMeta.
|
|
1777
|
+
"""
|
|
1778
|
+
@property
|
|
1779
|
+
def has_damage(self) -> bool:
|
|
1780
|
+
"""
|
|
1781
|
+
Checks to see if this item has damage.
|
|
1782
|
+
"""
|
|
1783
|
+
@property
|
|
1784
|
+
def has_display_name(self) -> bool:
|
|
1785
|
+
"""
|
|
1786
|
+
Checks for existence of a display name.
|
|
1787
|
+
"""
|
|
1788
|
+
@property
|
|
1789
|
+
def has_enchants(self) -> bool:
|
|
1790
|
+
"""
|
|
1791
|
+
Checks for the existence of any enchantments.
|
|
1792
|
+
"""
|
|
1793
|
+
@property
|
|
1794
|
+
def has_lore(self) -> bool:
|
|
1795
|
+
"""
|
|
1796
|
+
Checks for existence of lore.
|
|
1797
|
+
"""
|
|
1798
|
+
@property
|
|
1799
|
+
def has_repair_cost(self) -> bool:
|
|
1800
|
+
"""
|
|
1801
|
+
Checks to see if this item has a repair penalty.
|
|
1802
|
+
"""
|
|
1803
|
+
@property
|
|
1804
|
+
def is_unbreakable(self) -> bool:
|
|
1805
|
+
"""
|
|
1806
|
+
Gets or sets the unbreakable tag. An unbreakable item will not lose durability.
|
|
1807
|
+
"""
|
|
1808
|
+
@is_unbreakable.setter
|
|
1809
|
+
def is_unbreakable(self, arg1: bool) -> None:
|
|
1810
|
+
...
|
|
1811
|
+
@property
|
|
1812
|
+
def lore(self) -> list[str] | None:
|
|
1813
|
+
"""
|
|
1814
|
+
Gets or sets the lore for this item.
|
|
1815
|
+
"""
|
|
1816
|
+
@lore.setter
|
|
1817
|
+
def lore(self, arg1: list[str] | None) -> None:
|
|
1818
|
+
...
|
|
1819
|
+
@property
|
|
1820
|
+
def repair_cost(self) -> int:
|
|
1821
|
+
"""
|
|
1822
|
+
Gets or sets the repair penalty.
|
|
1823
|
+
"""
|
|
1824
|
+
@repair_cost.setter
|
|
1825
|
+
def repair_cost(self, arg1: int) -> None:
|
|
1826
|
+
...
|
|
1827
|
+
class ItemRegistry:
|
|
1828
|
+
@typing.overload
|
|
1829
|
+
def __contains__(self, key: NamespacedKey) -> bool:
|
|
1830
|
+
...
|
|
1831
|
+
@typing.overload
|
|
1832
|
+
def __contains__(self, key: str) -> bool:
|
|
1833
|
+
...
|
|
1834
|
+
@typing.overload
|
|
1835
|
+
def __getitem__(self, key: NamespacedKey) -> ItemType:
|
|
1836
|
+
...
|
|
1837
|
+
@typing.overload
|
|
1838
|
+
def __getitem__(self, key: str) -> ItemType:
|
|
1839
|
+
...
|
|
1840
|
+
def __iter__(self) -> list:
|
|
1841
|
+
...
|
|
1842
|
+
def get(self, key: NamespacedKey) -> ItemType:
|
|
1843
|
+
...
|
|
1844
|
+
def get_or_throw(self, key: NamespacedKey) -> ItemType:
|
|
1845
|
+
...
|
|
1529
1846
|
class ItemStack:
|
|
1530
1847
|
"""
|
|
1531
1848
|
Represents a stack of items.
|
|
1532
1849
|
"""
|
|
1533
|
-
|
|
1534
|
-
def
|
|
1850
|
+
__hash__: typing.ClassVar[None] = None
|
|
1851
|
+
def __eq__(self, arg0: ItemStack) -> bool:
|
|
1852
|
+
...
|
|
1853
|
+
def __init__(self, type: str, amount: int = 1, data: int = 0) -> None:
|
|
1535
1854
|
...
|
|
1536
|
-
def
|
|
1855
|
+
def __ne__(self, arg0: ItemStack) -> bool:
|
|
1537
1856
|
...
|
|
1538
1857
|
def __str__(self) -> str:
|
|
1539
1858
|
...
|
|
1859
|
+
def is_similar(self, other: ItemStack) -> bool:
|
|
1860
|
+
"""
|
|
1861
|
+
Checks if the two stacks are equal, but does not consider stack size (amount).
|
|
1862
|
+
"""
|
|
1863
|
+
def set_item_meta(self, meta: ItemMeta) -> bool:
|
|
1864
|
+
"""
|
|
1865
|
+
Set the ItemMeta of this ItemStack.
|
|
1866
|
+
"""
|
|
1540
1867
|
@property
|
|
1541
1868
|
def amount(self) -> int:
|
|
1542
1869
|
"""
|
|
@@ -1546,20 +1873,84 @@ class ItemStack:
|
|
|
1546
1873
|
def amount(self, arg1: int) -> None:
|
|
1547
1874
|
...
|
|
1548
1875
|
@property
|
|
1549
|
-
def
|
|
1876
|
+
def data(self) -> int:
|
|
1877
|
+
"""
|
|
1878
|
+
Gets or sets the data for this stack of items.
|
|
1879
|
+
"""
|
|
1880
|
+
@data.setter
|
|
1881
|
+
def data(self, arg1: int) -> None:
|
|
1882
|
+
...
|
|
1883
|
+
@property
|
|
1884
|
+
def item_meta(self) -> ItemMeta:
|
|
1885
|
+
"""
|
|
1886
|
+
Gets a copy of the ItemMeta of this ItemStack.
|
|
1887
|
+
"""
|
|
1888
|
+
@property
|
|
1889
|
+
def max_stack_size(self) -> int:
|
|
1890
|
+
"""
|
|
1891
|
+
Get the maximum stack size for this item.
|
|
1892
|
+
"""
|
|
1893
|
+
@property
|
|
1894
|
+
def type(self) -> ItemType:
|
|
1550
1895
|
"""
|
|
1551
1896
|
Gets or sets the type of this item.
|
|
1552
1897
|
"""
|
|
1553
1898
|
@type.setter
|
|
1554
1899
|
def type(self, arg1: str) -> None:
|
|
1555
1900
|
...
|
|
1556
|
-
class
|
|
1901
|
+
class ItemType:
|
|
1557
1902
|
"""
|
|
1558
|
-
Represents
|
|
1903
|
+
Represents an item type.
|
|
1559
1904
|
"""
|
|
1905
|
+
__hash__: typing.ClassVar[None] = None
|
|
1560
1906
|
@staticmethod
|
|
1561
|
-
def
|
|
1907
|
+
def get(name: str) -> ItemType:
|
|
1908
|
+
"""
|
|
1909
|
+
Attempts to get the ItemType with the given name.
|
|
1910
|
+
"""
|
|
1911
|
+
@typing.overload
|
|
1912
|
+
def __eq__(self, arg0: ItemType) -> bool:
|
|
1913
|
+
...
|
|
1914
|
+
@typing.overload
|
|
1915
|
+
def __eq__(self, arg0: str) -> bool:
|
|
1916
|
+
...
|
|
1917
|
+
@typing.overload
|
|
1918
|
+
def __ne__(self, arg0: ItemType) -> bool:
|
|
1919
|
+
...
|
|
1920
|
+
@typing.overload
|
|
1921
|
+
def __ne__(self, arg0: str) -> bool:
|
|
1922
|
+
...
|
|
1923
|
+
def __str__(self) -> str:
|
|
1562
1924
|
...
|
|
1925
|
+
@property
|
|
1926
|
+
def id(self) -> str:
|
|
1927
|
+
"""
|
|
1928
|
+
Return the identifier of this item type.
|
|
1929
|
+
"""
|
|
1930
|
+
@property
|
|
1931
|
+
def key(self) -> NamespacedKey:
|
|
1932
|
+
"""
|
|
1933
|
+
Return the namespaced identifier of this item type.
|
|
1934
|
+
"""
|
|
1935
|
+
@property
|
|
1936
|
+
def max_durability(self) -> int:
|
|
1937
|
+
"""
|
|
1938
|
+
Gets the maximum durability of this item type
|
|
1939
|
+
"""
|
|
1940
|
+
@property
|
|
1941
|
+
def max_stack_size(self) -> int:
|
|
1942
|
+
"""
|
|
1943
|
+
Gets the maximum amount of this item type that can be held in a stack.
|
|
1944
|
+
"""
|
|
1945
|
+
@property
|
|
1946
|
+
def translation_key(self) -> str:
|
|
1947
|
+
"""
|
|
1948
|
+
Get the translation key, suitable for use in a translation component.
|
|
1949
|
+
"""
|
|
1950
|
+
class Label:
|
|
1951
|
+
"""
|
|
1952
|
+
Represents a text label.
|
|
1953
|
+
"""
|
|
1563
1954
|
def __init__(self, text: str | Translatable = '') -> None:
|
|
1564
1955
|
...
|
|
1565
1956
|
@property
|
|
@@ -1574,9 +1965,6 @@ class Language:
|
|
|
1574
1965
|
"""
|
|
1575
1966
|
Represents the interface for translating text into different languages.
|
|
1576
1967
|
"""
|
|
1577
|
-
@staticmethod
|
|
1578
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1579
|
-
...
|
|
1580
1968
|
@typing.overload
|
|
1581
1969
|
def translate(self, text: str, params: list[str] | None = None, locale: str | None = None) -> str:
|
|
1582
1970
|
"""
|
|
@@ -1592,10 +1980,12 @@ class Language:
|
|
|
1592
1980
|
"""
|
|
1593
1981
|
Gets the current locale.
|
|
1594
1982
|
"""
|
|
1983
|
+
class LeavesDecayEvent(BlockEvent, Cancellable):
|
|
1984
|
+
"""
|
|
1985
|
+
Called when leaves are decaying naturally.
|
|
1986
|
+
If a Leaves Decay event is cancelled, the leaves will not decay.
|
|
1987
|
+
"""
|
|
1595
1988
|
class Level:
|
|
1596
|
-
@staticmethod
|
|
1597
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1598
|
-
...
|
|
1599
1989
|
def get_dimension(self, name: str) -> Dimension:
|
|
1600
1990
|
"""
|
|
1601
1991
|
Gets the dimension with the given name.
|
|
@@ -1616,6 +2006,11 @@ class Level:
|
|
|
1616
2006
|
Gets the unique name of this level
|
|
1617
2007
|
"""
|
|
1618
2008
|
@property
|
|
2009
|
+
def seed(self) -> int:
|
|
2010
|
+
"""
|
|
2011
|
+
Gets the Seed for this level.
|
|
2012
|
+
"""
|
|
2013
|
+
@property
|
|
1619
2014
|
def time(self) -> int:
|
|
1620
2015
|
"""
|
|
1621
2016
|
Gets and sets the relative in-game time on the server
|
|
@@ -1623,13 +2018,19 @@ class Level:
|
|
|
1623
2018
|
@time.setter
|
|
1624
2019
|
def time(self, arg1: int) -> None:
|
|
1625
2020
|
...
|
|
2021
|
+
class LevelEvent(Event):
|
|
2022
|
+
"""
|
|
2023
|
+
Represents events within a level
|
|
2024
|
+
"""
|
|
2025
|
+
@property
|
|
2026
|
+
def level(self) -> Level:
|
|
2027
|
+
"""
|
|
2028
|
+
Gets the level primarily involved with this event
|
|
2029
|
+
"""
|
|
1626
2030
|
class Location(Position):
|
|
1627
2031
|
"""
|
|
1628
2032
|
Represents a 3-dimensional location in a dimension within a level.
|
|
1629
2033
|
"""
|
|
1630
|
-
@staticmethod
|
|
1631
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1632
|
-
...
|
|
1633
2034
|
def __init__(self, dimension: Dimension, x: float, y: float, z: float, pitch: float = 0.0, yaw: float = 0.0) -> None:
|
|
1634
2035
|
...
|
|
1635
2036
|
def __repr__(self) -> str:
|
|
@@ -1667,9 +2068,6 @@ class Logger:
|
|
|
1667
2068
|
TRACE: typing.ClassVar[Logger.Level] # value = <Level.TRACE: 0>
|
|
1668
2069
|
WARNING: typing.ClassVar[Logger.Level] # value = <Level.WARNING: 3>
|
|
1669
2070
|
__members__: typing.ClassVar[dict[str, Logger.Level]] # value = {'TRACE': <Level.TRACE: 0>, 'DEBUG': <Level.DEBUG: 1>, 'INFO': <Level.INFO: 2>, 'WARNING': <Level.WARNING: 3>, 'ERROR': <Level.ERROR: 4>, 'CRITICAL': <Level.CRITICAL: 5>}
|
|
1670
|
-
@staticmethod
|
|
1671
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1672
|
-
...
|
|
1673
2071
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1674
2072
|
...
|
|
1675
2073
|
def __getstate__(self) -> int:
|
|
@@ -1702,9 +2100,6 @@ class Logger:
|
|
|
1702
2100
|
INFO: typing.ClassVar[Logger.Level] # value = <Level.INFO: 2>
|
|
1703
2101
|
TRACE: typing.ClassVar[Logger.Level] # value = <Level.TRACE: 0>
|
|
1704
2102
|
WARNING: typing.ClassVar[Logger.Level] # value = <Level.WARNING: 3>
|
|
1705
|
-
@staticmethod
|
|
1706
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1707
|
-
...
|
|
1708
2103
|
def critical(self, message: str) -> None:
|
|
1709
2104
|
"""
|
|
1710
2105
|
Log a message at the CRITICAL level.
|
|
@@ -1742,13 +2137,170 @@ class Logger:
|
|
|
1742
2137
|
"""
|
|
1743
2138
|
Get the name of this Logger instance.
|
|
1744
2139
|
"""
|
|
2140
|
+
class MapCanvas:
|
|
2141
|
+
"""
|
|
2142
|
+
Represents a canvas for drawing to a map. Each canvas is associated with a specific MapRenderer and represents that renderer's layer on the map.
|
|
2143
|
+
"""
|
|
2144
|
+
def draw_image(self, x: int, y: int, image: numpy.ndarray[numpy.uint8]) -> None:
|
|
2145
|
+
"""
|
|
2146
|
+
Draw an image to the map. The image will be clipped if necessary.
|
|
2147
|
+
"""
|
|
2148
|
+
def get_base_pixel_color(self, x: int, y: int) -> tuple[int, ...]:
|
|
2149
|
+
"""
|
|
2150
|
+
Get a pixel from the layers below this canvas.
|
|
2151
|
+
"""
|
|
2152
|
+
def get_pixel_color(self, x: int, y: int) -> tuple[int, ...] | None:
|
|
2153
|
+
"""
|
|
2154
|
+
Get a pixel from the canvas.
|
|
2155
|
+
|
|
2156
|
+
If no color is set at the given position for this canvas, then None is returned and the color returned by get_base_pixel_color() is shown on the map
|
|
2157
|
+
"""
|
|
2158
|
+
def set_pixel_color(self, x: int, y: int, color: tuple[int, ...] | None) -> None:
|
|
2159
|
+
"""
|
|
2160
|
+
Draw a pixel to the canvas.
|
|
2161
|
+
|
|
2162
|
+
If None is used as color, then the color returned by get_base_pixel_color() is shown on the map.
|
|
2163
|
+
"""
|
|
2164
|
+
@property
|
|
2165
|
+
def map_view(self) -> MapView:
|
|
2166
|
+
"""
|
|
2167
|
+
Get the map this canvas is attached to.
|
|
2168
|
+
"""
|
|
2169
|
+
class MapMeta(ItemMeta):
|
|
2170
|
+
"""
|
|
2171
|
+
Represents the metadata for a map item.
|
|
2172
|
+
"""
|
|
2173
|
+
class MapRenderer:
|
|
2174
|
+
"""
|
|
2175
|
+
Represents a renderer for a map.
|
|
2176
|
+
"""
|
|
2177
|
+
def __init__(self, is_contextual: bool = False) -> None:
|
|
2178
|
+
"""
|
|
2179
|
+
Initialize the map renderer base with the given contextual status.
|
|
2180
|
+
"""
|
|
2181
|
+
def initialize(self, view: MapView) -> None:
|
|
2182
|
+
"""
|
|
2183
|
+
Initialize this MapRenderer for the given map.
|
|
2184
|
+
"""
|
|
2185
|
+
def render(self, map: MapView, canvas: MapCanvas, player: Player) -> None:
|
|
2186
|
+
"""
|
|
2187
|
+
Render to the given map.
|
|
2188
|
+
"""
|
|
2189
|
+
class MapView:
|
|
2190
|
+
"""
|
|
2191
|
+
Represents a map item.
|
|
2192
|
+
"""
|
|
2193
|
+
class Scale:
|
|
2194
|
+
"""
|
|
2195
|
+
An enum representing all possible scales a map can be set to.
|
|
2196
|
+
"""
|
|
2197
|
+
CLOSE: typing.ClassVar[MapView.Scale] # value = <Scale.CLOSE: 1>
|
|
2198
|
+
CLOSEST: typing.ClassVar[MapView.Scale] # value = <Scale.CLOSEST: 0>
|
|
2199
|
+
FAR: typing.ClassVar[MapView.Scale] # value = <Scale.FAR: 3>
|
|
2200
|
+
FARTHEST: typing.ClassVar[MapView.Scale] # value = <Scale.FARTHEST: 4>
|
|
2201
|
+
NORMAL: typing.ClassVar[MapView.Scale] # value = <Scale.NORMAL: 2>
|
|
2202
|
+
__members__: typing.ClassVar[dict[str, MapView.Scale]] # value = {'CLOSEST': <Scale.CLOSEST: 0>, 'CLOSE': <Scale.CLOSE: 1>, 'NORMAL': <Scale.NORMAL: 2>, 'FAR': <Scale.FAR: 3>, 'FARTHEST': <Scale.FARTHEST: 4>}
|
|
2203
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
2204
|
+
...
|
|
2205
|
+
def __getstate__(self) -> int:
|
|
2206
|
+
...
|
|
2207
|
+
def __hash__(self) -> int:
|
|
2208
|
+
...
|
|
2209
|
+
def __index__(self) -> int:
|
|
2210
|
+
...
|
|
2211
|
+
def __init__(self, value: int) -> None:
|
|
2212
|
+
...
|
|
2213
|
+
def __int__(self) -> int:
|
|
2214
|
+
...
|
|
2215
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
2216
|
+
...
|
|
2217
|
+
def __repr__(self) -> str:
|
|
2218
|
+
...
|
|
2219
|
+
def __setstate__(self, state: int) -> None:
|
|
2220
|
+
...
|
|
2221
|
+
def __str__(self) -> str:
|
|
2222
|
+
...
|
|
2223
|
+
@property
|
|
2224
|
+
def name(self) -> str:
|
|
2225
|
+
...
|
|
2226
|
+
@property
|
|
2227
|
+
def value(self) -> int:
|
|
2228
|
+
...
|
|
2229
|
+
def add_renderer(self, renderer: MapRenderer) -> None:
|
|
2230
|
+
"""
|
|
2231
|
+
Add a renderer to this map.
|
|
2232
|
+
"""
|
|
2233
|
+
def remove_renderer(self, renderer: MapRenderer) -> bool:
|
|
2234
|
+
"""
|
|
2235
|
+
Remove a renderer from this map.
|
|
2236
|
+
"""
|
|
2237
|
+
@property
|
|
2238
|
+
def center_x(self) -> int:
|
|
2239
|
+
"""
|
|
2240
|
+
Get or set the center X position of this map.
|
|
2241
|
+
"""
|
|
2242
|
+
@center_x.setter
|
|
2243
|
+
def center_x(self, arg1: int) -> None:
|
|
2244
|
+
...
|
|
2245
|
+
@property
|
|
2246
|
+
def center_z(self) -> int:
|
|
2247
|
+
"""
|
|
2248
|
+
Get or set the center Z position of this map.
|
|
2249
|
+
"""
|
|
2250
|
+
@center_z.setter
|
|
2251
|
+
def center_z(self, arg1: int) -> None:
|
|
2252
|
+
...
|
|
2253
|
+
@property
|
|
2254
|
+
def dimension(self) -> Dimension:
|
|
2255
|
+
"""
|
|
2256
|
+
Get or set the dimension that this map is associated with.
|
|
2257
|
+
"""
|
|
2258
|
+
@dimension.setter
|
|
2259
|
+
def dimension(self, arg1: Dimension) -> None:
|
|
2260
|
+
...
|
|
2261
|
+
@property
|
|
2262
|
+
def id(self) -> int:
|
|
2263
|
+
"""
|
|
2264
|
+
Get the ID of this map item for use with MapMeta.
|
|
2265
|
+
"""
|
|
2266
|
+
@property
|
|
2267
|
+
def is_unlimited_tracking(self) -> bool:
|
|
2268
|
+
"""
|
|
2269
|
+
Whether the map will show a smaller position cursor (true), or no position cursor (false) when cursor is outside of map's range.
|
|
2270
|
+
"""
|
|
2271
|
+
@is_unlimited_tracking.setter
|
|
2272
|
+
def is_unlimited_tracking(self, arg1: bool) -> None:
|
|
2273
|
+
...
|
|
2274
|
+
@property
|
|
2275
|
+
def is_virtual(self) -> bool:
|
|
2276
|
+
"""
|
|
2277
|
+
Check whether this map is virtual.
|
|
2278
|
+
"""
|
|
2279
|
+
@property
|
|
2280
|
+
def locked(self) -> bool:
|
|
2281
|
+
"""
|
|
2282
|
+
Whether the map is locked or not. A locked map may not be explored further.
|
|
2283
|
+
"""
|
|
2284
|
+
@locked.setter
|
|
2285
|
+
def locked(self, arg1: bool) -> None:
|
|
2286
|
+
...
|
|
2287
|
+
@property
|
|
2288
|
+
def renderers(self) -> list[MapRenderer]:
|
|
2289
|
+
"""
|
|
2290
|
+
Get a copied list of MapRenderers currently in effect.
|
|
2291
|
+
"""
|
|
2292
|
+
@property
|
|
2293
|
+
def scale(self) -> MapView.Scale:
|
|
2294
|
+
"""
|
|
2295
|
+
Get or set the scale of this map.
|
|
2296
|
+
"""
|
|
2297
|
+
@scale.setter
|
|
2298
|
+
def scale(self, arg1: MapView.Scale) -> None:
|
|
2299
|
+
...
|
|
1745
2300
|
class MessageForm:
|
|
1746
2301
|
"""
|
|
1747
2302
|
Represents a form with two buttons.
|
|
1748
2303
|
"""
|
|
1749
|
-
@staticmethod
|
|
1750
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1751
|
-
...
|
|
1752
2304
|
def __init__(self, title: str | Translatable = '', content: str | Translatable = '', button1: str | Translatable = '', button2: str | Translatable = '', on_submit: typing.Callable[[Player, int], None] = None, on_close: typing.Callable[[Player], None] = None) -> None:
|
|
1753
2305
|
...
|
|
1754
2306
|
@property
|
|
@@ -1803,9 +2355,6 @@ class Mob(Actor):
|
|
|
1803
2355
|
"""
|
|
1804
2356
|
Represents a mobile entity (i.e. living entity), such as a monster or player.
|
|
1805
2357
|
"""
|
|
1806
|
-
@staticmethod
|
|
1807
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1808
|
-
...
|
|
1809
2358
|
@property
|
|
1810
2359
|
def is_gliding(self) -> bool:
|
|
1811
2360
|
"""
|
|
@@ -1815,9 +2364,6 @@ class MobEvent(Event):
|
|
|
1815
2364
|
"""
|
|
1816
2365
|
Represents an Mob-related event.
|
|
1817
2366
|
"""
|
|
1818
|
-
@staticmethod
|
|
1819
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1820
|
-
...
|
|
1821
2367
|
@property
|
|
1822
2368
|
def actor(self) -> Mob:
|
|
1823
2369
|
"""
|
|
@@ -1827,22 +2373,19 @@ class ModalForm:
|
|
|
1827
2373
|
"""
|
|
1828
2374
|
Represents a modal form with controls.
|
|
1829
2375
|
"""
|
|
1830
|
-
|
|
1831
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2376
|
+
def __init__(self, title: str | Translatable = '', controls: list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle | Divider | Header] | None = None, submit_button: str | Translatable | None = None, icon: str | None = None, on_submit: typing.Callable[[Player, str], None] = None, on_close: typing.Callable[[Player], None] = None) -> None:
|
|
1832
2377
|
...
|
|
1833
|
-
def
|
|
1834
|
-
...
|
|
1835
|
-
def add_control(self, control: Dropdown | Label | Slider | StepSlider | TextInput | Toggle) -> ModalForm:
|
|
2378
|
+
def add_control(self, control: Dropdown | Label | Slider | StepSlider | TextInput | Toggle | Divider | Header) -> ModalForm:
|
|
1836
2379
|
"""
|
|
1837
2380
|
Adds a control to the form.
|
|
1838
2381
|
"""
|
|
1839
2382
|
@property
|
|
1840
|
-
def controls(self) -> list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle]:
|
|
2383
|
+
def controls(self) -> list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle | Divider | Header]:
|
|
1841
2384
|
"""
|
|
1842
2385
|
Gets or sets the controls of the modal form.
|
|
1843
2386
|
"""
|
|
1844
2387
|
@controls.setter
|
|
1845
|
-
def controls(self, arg1: list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle]) -> ModalForm:
|
|
2388
|
+
def controls(self, arg1: list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle | Divider | Header]) -> ModalForm:
|
|
1846
2389
|
...
|
|
1847
2390
|
@property
|
|
1848
2391
|
def icon(self) -> str | None:
|
|
@@ -1869,29 +2412,51 @@ class ModalForm:
|
|
|
1869
2412
|
def on_submit(self, arg1: typing.Callable[[Player, str], None]) -> ModalForm:
|
|
1870
2413
|
...
|
|
1871
2414
|
@property
|
|
1872
|
-
def submit_button(self) -> str | Translatable | None:
|
|
2415
|
+
def submit_button(self) -> str | Translatable | None:
|
|
2416
|
+
"""
|
|
2417
|
+
Gets or sets the submit button message of the form.
|
|
2418
|
+
"""
|
|
2419
|
+
@submit_button.setter
|
|
2420
|
+
def submit_button(self, arg1: str | Translatable | None) -> ModalForm:
|
|
2421
|
+
...
|
|
2422
|
+
@property
|
|
2423
|
+
def title(self) -> str | Translatable:
|
|
2424
|
+
"""
|
|
2425
|
+
Gets or sets the title of the form.
|
|
2426
|
+
"""
|
|
2427
|
+
@title.setter
|
|
2428
|
+
def title(self, arg1: str | Translatable) -> ModalForm:
|
|
2429
|
+
...
|
|
2430
|
+
class NamespacedKey:
|
|
2431
|
+
"""
|
|
2432
|
+
Represents a string-based key which consists of two components - a namespace and a key.
|
|
2433
|
+
"""
|
|
2434
|
+
@staticmethod
|
|
2435
|
+
def from_string(input: str, plugin: Plugin = None) -> NamespacedKey:
|
|
2436
|
+
"""
|
|
2437
|
+
Parses a NamespacedKey from a string.
|
|
2438
|
+
"""
|
|
2439
|
+
def __init__(self, arg0: Plugin, arg1: str) -> None:
|
|
2440
|
+
...
|
|
2441
|
+
def __repr__(self) -> str:
|
|
2442
|
+
...
|
|
2443
|
+
def __str__(self) -> str:
|
|
2444
|
+
...
|
|
2445
|
+
@property
|
|
2446
|
+
def key(self) -> str:
|
|
1873
2447
|
"""
|
|
1874
|
-
|
|
2448
|
+
Returns the key of the NamespacedKey.
|
|
1875
2449
|
"""
|
|
1876
|
-
@submit_button.setter
|
|
1877
|
-
def submit_button(self, arg1: str | Translatable | None) -> ModalForm:
|
|
1878
|
-
...
|
|
1879
2450
|
@property
|
|
1880
|
-
def
|
|
2451
|
+
def namespace(self) -> str:
|
|
1881
2452
|
"""
|
|
1882
|
-
|
|
2453
|
+
Returns the namespace of the NamespacedKey.
|
|
1883
2454
|
"""
|
|
1884
|
-
@title.setter
|
|
1885
|
-
def title(self, arg1: str | Translatable) -> ModalForm:
|
|
1886
|
-
...
|
|
1887
2455
|
class Objective:
|
|
1888
2456
|
"""
|
|
1889
2457
|
Represents an objective on a scoreboard that can show scores specific to entries.
|
|
1890
2458
|
"""
|
|
1891
2459
|
__hash__: typing.ClassVar[None] = None
|
|
1892
|
-
@staticmethod
|
|
1893
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1894
|
-
...
|
|
1895
2460
|
def __eq__(self, arg0: Objective) -> bool:
|
|
1896
2461
|
...
|
|
1897
2462
|
def __ne__(self, arg0: Objective) -> bool:
|
|
@@ -1924,8 +2489,11 @@ class Objective:
|
|
|
1924
2489
|
@property
|
|
1925
2490
|
def display_slot(self) -> DisplaySlot | None:
|
|
1926
2491
|
"""
|
|
1927
|
-
Gets the display slot this objective is displayed at
|
|
2492
|
+
Gets or sets the display slot this objective is displayed at
|
|
1928
2493
|
"""
|
|
2494
|
+
@display_slot.setter
|
|
2495
|
+
def display_slot(self, arg1: DisplaySlot | None) -> None:
|
|
2496
|
+
...
|
|
1929
2497
|
@property
|
|
1930
2498
|
def is_displayed(self) -> bool:
|
|
1931
2499
|
"""
|
|
@@ -1944,11 +2512,8 @@ class Objective:
|
|
|
1944
2512
|
@property
|
|
1945
2513
|
def render_type(self) -> RenderType:
|
|
1946
2514
|
"""
|
|
1947
|
-
Gets
|
|
2515
|
+
Gets the manner in which this objective will be rendered.
|
|
1948
2516
|
"""
|
|
1949
|
-
@render_type.setter
|
|
1950
|
-
def render_type(self, arg1: RenderType) -> None:
|
|
1951
|
-
...
|
|
1952
2517
|
@property
|
|
1953
2518
|
def scoreboard(self) -> Scoreboard:
|
|
1954
2519
|
"""
|
|
@@ -1957,8 +2522,11 @@ class Objective:
|
|
|
1957
2522
|
@property
|
|
1958
2523
|
def sort_order(self) -> ObjectiveSortOrder | None:
|
|
1959
2524
|
"""
|
|
1960
|
-
Gets
|
|
2525
|
+
Gets or sets the sort order for this objective
|
|
1961
2526
|
"""
|
|
2527
|
+
@sort_order.setter
|
|
2528
|
+
def sort_order(self, arg1: ObjectiveSortOrder) -> None:
|
|
2529
|
+
...
|
|
1962
2530
|
class ObjectiveSortOrder:
|
|
1963
2531
|
"""
|
|
1964
2532
|
Represents the sort order of objectives on a DisplaySlot.
|
|
@@ -1966,9 +2534,6 @@ class ObjectiveSortOrder:
|
|
|
1966
2534
|
ASCENDING: typing.ClassVar[ObjectiveSortOrder] # value = <ObjectiveSortOrder.ASCENDING: 0>
|
|
1967
2535
|
DESCENDING: typing.ClassVar[ObjectiveSortOrder] # value = <ObjectiveSortOrder.DESCENDING: 1>
|
|
1968
2536
|
__members__: typing.ClassVar[dict[str, ObjectiveSortOrder]] # value = {'ASCENDING': <ObjectiveSortOrder.ASCENDING: 0>, 'DESCENDING': <ObjectiveSortOrder.DESCENDING: 1>}
|
|
1969
|
-
@staticmethod
|
|
1970
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1971
|
-
...
|
|
1972
2537
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1973
2538
|
...
|
|
1974
2539
|
def __getstate__(self) -> int:
|
|
@@ -1999,9 +2564,6 @@ class OfflinePlayer:
|
|
|
1999
2564
|
"""
|
|
2000
2565
|
Represents a reference to a player identity and the data belonging to a player that is stored on the disk and can, thus, be retrieved without the player needing to be online.
|
|
2001
2566
|
"""
|
|
2002
|
-
@staticmethod
|
|
2003
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2004
|
-
...
|
|
2005
2567
|
@property
|
|
2006
2568
|
def name(self) -> str:
|
|
2007
2569
|
"""
|
|
@@ -2012,60 +2574,76 @@ class OfflinePlayer:
|
|
|
2012
2574
|
"""
|
|
2013
2575
|
Returns the UUID of this player
|
|
2014
2576
|
"""
|
|
2015
|
-
class
|
|
2577
|
+
class PacketReceiveEvent(ServerEvent, Cancellable):
|
|
2016
2578
|
"""
|
|
2017
|
-
|
|
2579
|
+
Called when the server receives a packet from a connected client.
|
|
2018
2580
|
"""
|
|
2019
|
-
@
|
|
2020
|
-
def
|
|
2581
|
+
@property
|
|
2582
|
+
def address(self) -> SocketAddress:
|
|
2583
|
+
"""
|
|
2584
|
+
Gets the network address to which this packet is being sent.
|
|
2585
|
+
"""
|
|
2586
|
+
@property
|
|
2587
|
+
def packet_id(self) -> int:
|
|
2588
|
+
"""
|
|
2589
|
+
Gets the ID of the packet.
|
|
2590
|
+
"""
|
|
2591
|
+
@property
|
|
2592
|
+
def payload(self) -> bytes:
|
|
2593
|
+
"""
|
|
2594
|
+
Gets or sets the raw packet data **excluding** the header.
|
|
2595
|
+
"""
|
|
2596
|
+
@payload.setter
|
|
2597
|
+
def payload(self, arg1: bytes) -> None:
|
|
2021
2598
|
...
|
|
2022
2599
|
@property
|
|
2023
|
-
def
|
|
2600
|
+
def player(self) -> Player:
|
|
2601
|
+
"""
|
|
2602
|
+
Gets the player involved in this event
|
|
2603
|
+
NOTE: This may return None if the packet is sent before the player completes the login process.
|
|
2604
|
+
"""
|
|
2605
|
+
@property
|
|
2606
|
+
def sub_client_id(self) -> int:
|
|
2024
2607
|
"""
|
|
2025
|
-
Gets the
|
|
2608
|
+
Gets the SubClient ID (0 = primary client; 1-3 = split-screen clients).
|
|
2026
2609
|
"""
|
|
2027
|
-
class
|
|
2610
|
+
class PacketSendEvent(ServerEvent, Cancellable):
|
|
2028
2611
|
"""
|
|
2029
|
-
|
|
2612
|
+
Called when the server sends a packet to a connected client.
|
|
2030
2613
|
"""
|
|
2031
|
-
SPAWN_PARTICLE_EFFECT: typing.ClassVar[PacketType] # value = <PacketType.SPAWN_PARTICLE_EFFECT: 118>
|
|
2032
|
-
__members__: typing.ClassVar[dict[str, PacketType]] # value = {'SPAWN_PARTICLE_EFFECT': <PacketType.SPAWN_PARTICLE_EFFECT: 118>}
|
|
2033
|
-
@staticmethod
|
|
2034
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2035
|
-
...
|
|
2036
|
-
def __eq__(self, other: typing.Any) -> bool:
|
|
2037
|
-
...
|
|
2038
|
-
def __getstate__(self) -> int:
|
|
2039
|
-
...
|
|
2040
|
-
def __hash__(self) -> int:
|
|
2041
|
-
...
|
|
2042
|
-
def __index__(self) -> int:
|
|
2043
|
-
...
|
|
2044
|
-
def __init__(self, value: int) -> None:
|
|
2045
|
-
...
|
|
2046
|
-
def __int__(self) -> int:
|
|
2047
|
-
...
|
|
2048
|
-
def __ne__(self, other: typing.Any) -> bool:
|
|
2049
|
-
...
|
|
2050
|
-
def __repr__(self) -> str:
|
|
2051
|
-
...
|
|
2052
|
-
def __setstate__(self, state: int) -> None:
|
|
2053
|
-
...
|
|
2054
|
-
def __str__(self) -> str:
|
|
2055
|
-
...
|
|
2056
2614
|
@property
|
|
2057
|
-
def
|
|
2058
|
-
|
|
2615
|
+
def address(self) -> SocketAddress:
|
|
2616
|
+
"""
|
|
2617
|
+
Gets the network address to which this packet is being sent.
|
|
2618
|
+
"""
|
|
2059
2619
|
@property
|
|
2060
|
-
def
|
|
2620
|
+
def packet_id(self) -> int:
|
|
2621
|
+
"""
|
|
2622
|
+
Gets the ID of the packet.
|
|
2623
|
+
"""
|
|
2624
|
+
@property
|
|
2625
|
+
def payload(self) -> bytes:
|
|
2626
|
+
"""
|
|
2627
|
+
Gets or sets the raw packet data **excluding** the header.
|
|
2628
|
+
"""
|
|
2629
|
+
@payload.setter
|
|
2630
|
+
def payload(self, arg1: bytes) -> None:
|
|
2061
2631
|
...
|
|
2632
|
+
@property
|
|
2633
|
+
def player(self) -> Player:
|
|
2634
|
+
"""
|
|
2635
|
+
Gets the player involved in this event
|
|
2636
|
+
NOTE: This may return None if the packet is sent before the player completes the login process.
|
|
2637
|
+
"""
|
|
2638
|
+
@property
|
|
2639
|
+
def sub_client_id(self) -> int:
|
|
2640
|
+
"""
|
|
2641
|
+
Gets the SubClient ID (0 = primary client; 1-3 = split-screen clients).
|
|
2642
|
+
"""
|
|
2062
2643
|
class Permissible:
|
|
2063
2644
|
"""
|
|
2064
2645
|
Represents an object that may become a server operator and can be assigned permissions.
|
|
2065
2646
|
"""
|
|
2066
|
-
@staticmethod
|
|
2067
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2068
|
-
...
|
|
2069
2647
|
@typing.overload
|
|
2070
2648
|
def add_attachment(self, plugin: Plugin, name: str, value: bool) -> PermissionAttachment:
|
|
2071
2649
|
"""
|
|
@@ -2110,20 +2688,14 @@ class Permissible:
|
|
|
2110
2688
|
Gets effective permissions.
|
|
2111
2689
|
"""
|
|
2112
2690
|
@property
|
|
2113
|
-
def
|
|
2691
|
+
def permission_level(self) -> PermissionLevel:
|
|
2114
2692
|
"""
|
|
2115
|
-
|
|
2693
|
+
Gets the permission level of this object
|
|
2116
2694
|
"""
|
|
2117
|
-
@is_op.setter
|
|
2118
|
-
def is_op(self, arg1: bool) -> None:
|
|
2119
|
-
...
|
|
2120
2695
|
class Permission:
|
|
2121
2696
|
"""
|
|
2122
2697
|
Represents a unique permission that may be attached to a Permissible
|
|
2123
2698
|
"""
|
|
2124
|
-
@staticmethod
|
|
2125
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2126
|
-
...
|
|
2127
2699
|
def __init__(self, name: str, description: str | None = None, default: PermissionDefault | None = None, children: dict[str, bool] | None = None, *args, **kwargs) -> None:
|
|
2128
2700
|
...
|
|
2129
2701
|
@typing.overload
|
|
@@ -2175,9 +2747,6 @@ class PermissionAttachment:
|
|
|
2175
2747
|
"""
|
|
2176
2748
|
Holds information about a permission attachment on a Permissible object
|
|
2177
2749
|
"""
|
|
2178
|
-
@staticmethod
|
|
2179
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2180
|
-
...
|
|
2181
2750
|
def __init__(self, plugin: Plugin, permissible: Permissible) -> None:
|
|
2182
2751
|
...
|
|
2183
2752
|
def remove(self) -> bool:
|
|
@@ -2231,9 +2800,6 @@ class PermissionAttachmentInfo:
|
|
|
2231
2800
|
"""
|
|
2232
2801
|
Holds information on a permission and which PermissionAttachment provides it
|
|
2233
2802
|
"""
|
|
2234
|
-
@staticmethod
|
|
2235
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2236
|
-
...
|
|
2237
2803
|
def __init__(self, permissible: Permissible, permission: str, attachment: PermissionAttachment, value: bool) -> None:
|
|
2238
2804
|
...
|
|
2239
2805
|
@property
|
|
@@ -2260,16 +2826,46 @@ class PermissionDefault:
|
|
|
2260
2826
|
"""
|
|
2261
2827
|
Represents the possible default values for permissions
|
|
2262
2828
|
"""
|
|
2829
|
+
CONSOLE: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.CONSOLE: 4>
|
|
2263
2830
|
FALSE: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.FALSE: 1>
|
|
2264
2831
|
NOT_OP: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.NOT_OP: 3>
|
|
2265
2832
|
NOT_OPERATOR: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.NOT_OP: 3>
|
|
2266
2833
|
OP: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.OP: 2>
|
|
2267
2834
|
OPERATOR: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.OP: 2>
|
|
2268
2835
|
TRUE: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.TRUE: 0>
|
|
2269
|
-
__members__: typing.ClassVar[dict[str, PermissionDefault]] # value = {'TRUE': <PermissionDefault.TRUE: 0>, 'FALSE': <PermissionDefault.FALSE: 1>, 'OP': <PermissionDefault.OP: 2>, 'OPERATOR': <PermissionDefault.OP: 2>, 'NOT_OP': <PermissionDefault.NOT_OP: 3>, 'NOT_OPERATOR': <PermissionDefault.NOT_OP: 3>}
|
|
2270
|
-
|
|
2271
|
-
|
|
2836
|
+
__members__: typing.ClassVar[dict[str, PermissionDefault]] # value = {'TRUE': <PermissionDefault.TRUE: 0>, 'FALSE': <PermissionDefault.FALSE: 1>, 'OP': <PermissionDefault.OP: 2>, 'OPERATOR': <PermissionDefault.OP: 2>, 'NOT_OP': <PermissionDefault.NOT_OP: 3>, 'NOT_OPERATOR': <PermissionDefault.NOT_OP: 3>, 'CONSOLE': <PermissionDefault.CONSOLE: 4>}
|
|
2837
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
2838
|
+
...
|
|
2839
|
+
def __getstate__(self) -> int:
|
|
2840
|
+
...
|
|
2841
|
+
def __hash__(self) -> int:
|
|
2272
2842
|
...
|
|
2843
|
+
def __index__(self) -> int:
|
|
2844
|
+
...
|
|
2845
|
+
def __init__(self, value: int) -> None:
|
|
2846
|
+
...
|
|
2847
|
+
def __int__(self) -> int:
|
|
2848
|
+
...
|
|
2849
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
2850
|
+
...
|
|
2851
|
+
def __repr__(self) -> str:
|
|
2852
|
+
...
|
|
2853
|
+
def __setstate__(self, state: int) -> None:
|
|
2854
|
+
...
|
|
2855
|
+
def __str__(self) -> str:
|
|
2856
|
+
...
|
|
2857
|
+
@property
|
|
2858
|
+
def name(self) -> str:
|
|
2859
|
+
...
|
|
2860
|
+
@property
|
|
2861
|
+
def value(self) -> int:
|
|
2862
|
+
...
|
|
2863
|
+
class PermissionLevel:
|
|
2864
|
+
CONSOLE: typing.ClassVar[PermissionLevel] # value = <PermissionLevel.CONSOLE: 2>
|
|
2865
|
+
DEFAULT: typing.ClassVar[PermissionLevel] # value = <PermissionLevel.DEFAULT: 0>
|
|
2866
|
+
OP: typing.ClassVar[PermissionLevel] # value = <PermissionLevel.OP: 1>
|
|
2867
|
+
OPERATOR: typing.ClassVar[PermissionLevel] # value = <PermissionLevel.OP: 1>
|
|
2868
|
+
__members__: typing.ClassVar[dict[str, PermissionLevel]] # value = {'DEFAULT': <PermissionLevel.DEFAULT: 0>, 'OP': <PermissionLevel.OP: 1>, 'OPERATOR': <PermissionLevel.OP: 1>, 'CONSOLE': <PermissionLevel.CONSOLE: 2>}
|
|
2273
2869
|
def __eq__(self, other: typing.Any) -> bool:
|
|
2274
2870
|
...
|
|
2275
2871
|
def __getstate__(self) -> int:
|
|
@@ -2300,9 +2896,6 @@ class Player(Mob, OfflinePlayer):
|
|
|
2300
2896
|
"""
|
|
2301
2897
|
Represents a player.
|
|
2302
2898
|
"""
|
|
2303
|
-
@staticmethod
|
|
2304
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2305
|
-
...
|
|
2306
2899
|
def close_form(self) -> None:
|
|
2307
2900
|
"""
|
|
2308
2901
|
Closes the forms that are currently open for the player.
|
|
@@ -2323,7 +2916,7 @@ class Player(Mob, OfflinePlayer):
|
|
|
2323
2916
|
"""
|
|
2324
2917
|
Makes the player perform the given command.
|
|
2325
2918
|
"""
|
|
2326
|
-
def play_sound(self, location: Location, sound: str, volume: float, pitch: float) -> None:
|
|
2919
|
+
def play_sound(self, location: Location, sound: str, volume: float = 1.0, pitch: float = 1.0) -> None:
|
|
2327
2920
|
"""
|
|
2328
2921
|
Play a sound for a player at the location.
|
|
2329
2922
|
"""
|
|
@@ -2335,7 +2928,7 @@ class Player(Mob, OfflinePlayer):
|
|
|
2335
2928
|
"""
|
|
2336
2929
|
Sends a form to the player.
|
|
2337
2930
|
"""
|
|
2338
|
-
def send_packet(self,
|
|
2931
|
+
def send_packet(self, packet_id: int, payload: bytes) -> None:
|
|
2339
2932
|
"""
|
|
2340
2933
|
Sends a packet to the player.
|
|
2341
2934
|
"""
|
|
@@ -2405,6 +2998,11 @@ class Player(Mob, OfflinePlayer):
|
|
|
2405
2998
|
Get the player's current device's operation system (OS).
|
|
2406
2999
|
"""
|
|
2407
3000
|
@property
|
|
3001
|
+
def ender_chest(self) -> Inventory:
|
|
3002
|
+
"""
|
|
3003
|
+
Get the player's EnderChest inventory.
|
|
3004
|
+
"""
|
|
3005
|
+
@property
|
|
2408
3006
|
def exp_level(self) -> int:
|
|
2409
3007
|
"""
|
|
2410
3008
|
Gets or sets the players current experience level.
|
|
@@ -2455,6 +3053,14 @@ class Player(Mob, OfflinePlayer):
|
|
|
2455
3053
|
def is_flying(self, arg1: bool) -> None:
|
|
2456
3054
|
...
|
|
2457
3055
|
@property
|
|
3056
|
+
def is_op(self) -> bool:
|
|
3057
|
+
"""
|
|
3058
|
+
The operator status of this playerall
|
|
3059
|
+
"""
|
|
3060
|
+
@is_op.setter
|
|
3061
|
+
def is_op(self, arg1: bool) -> None:
|
|
3062
|
+
...
|
|
3063
|
+
@property
|
|
2458
3064
|
def is_sneaking(self) -> bool:
|
|
2459
3065
|
"""
|
|
2460
3066
|
Gets or sets the sneak mode of the player
|
|
@@ -2525,9 +3131,6 @@ class PlayerBanEntry(BanEntry):
|
|
|
2525
3131
|
"""
|
|
2526
3132
|
Represents a ban entry for a player.
|
|
2527
3133
|
"""
|
|
2528
|
-
@staticmethod
|
|
2529
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2530
|
-
...
|
|
2531
3134
|
def __init__(self, name: str, uuid: uuid.UUID | None = None, xuid: str | None = None) -> None:
|
|
2532
3135
|
...
|
|
2533
3136
|
@property
|
|
@@ -2549,9 +3152,6 @@ class PlayerBanList:
|
|
|
2549
3152
|
"""
|
|
2550
3153
|
Represents a ban list containing banned players.
|
|
2551
3154
|
"""
|
|
2552
|
-
@staticmethod
|
|
2553
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2554
|
-
...
|
|
2555
3155
|
def add_ban(self, name: str, uuid: uuid.UUID | None = None, xuid: str | None = None, reason: str | None = None, expires: datetime.datetime | None = None, source: str | None = None) -> PlayerBanEntry:
|
|
2556
3156
|
"""
|
|
2557
3157
|
Adds a ban to this list, or updates an existing one.
|
|
@@ -2573,12 +3173,35 @@ class PlayerBanList:
|
|
|
2573
3173
|
"""
|
|
2574
3174
|
Gets a vector of pointers to entries in the ban list.
|
|
2575
3175
|
"""
|
|
3176
|
+
class PlayerBedEnterEvent(PlayerEvent, Cancellable):
|
|
3177
|
+
"""
|
|
3178
|
+
Called when a player is almost about to enter the bed.
|
|
3179
|
+
"""
|
|
3180
|
+
@property
|
|
3181
|
+
def bed(self) -> Block:
|
|
3182
|
+
"""
|
|
3183
|
+
Returns the bed block involved in this event.
|
|
3184
|
+
"""
|
|
3185
|
+
class PlayerBedLeaveEvent(PlayerEvent):
|
|
3186
|
+
"""
|
|
3187
|
+
Called when a player is leaving a bed.
|
|
3188
|
+
"""
|
|
3189
|
+
@property
|
|
3190
|
+
def bed(self) -> Block:
|
|
3191
|
+
"""
|
|
3192
|
+
Returns the bed block involved in this event.
|
|
3193
|
+
"""
|
|
2576
3194
|
class PlayerChatEvent(PlayerEvent, Cancellable):
|
|
2577
3195
|
"""
|
|
2578
3196
|
Called when a player sends a chat message.
|
|
2579
3197
|
"""
|
|
2580
|
-
@
|
|
2581
|
-
def
|
|
3198
|
+
@property
|
|
3199
|
+
def format(self) -> str:
|
|
3200
|
+
"""
|
|
3201
|
+
Sets the format to use to display this chat message
|
|
3202
|
+
"""
|
|
3203
|
+
@format.setter
|
|
3204
|
+
def format(self, arg1: str) -> None:
|
|
2582
3205
|
...
|
|
2583
3206
|
@property
|
|
2584
3207
|
def message(self) -> str:
|
|
@@ -2588,13 +3211,23 @@ class PlayerChatEvent(PlayerEvent, Cancellable):
|
|
|
2588
3211
|
@message.setter
|
|
2589
3212
|
def message(self, arg1: str) -> None:
|
|
2590
3213
|
...
|
|
3214
|
+
@property
|
|
3215
|
+
def player(self) -> Player:
|
|
3216
|
+
"""
|
|
3217
|
+
Gets or sets the player that this message will display as
|
|
3218
|
+
"""
|
|
3219
|
+
@player.setter
|
|
3220
|
+
def player(self, arg1: Player) -> None:
|
|
3221
|
+
...
|
|
3222
|
+
@property
|
|
3223
|
+
def recipients(self) -> list[Player]:
|
|
3224
|
+
"""
|
|
3225
|
+
Gets a set of recipients that this chat message will be displayed to
|
|
3226
|
+
"""
|
|
2591
3227
|
class PlayerCommandEvent(PlayerEvent, Cancellable):
|
|
2592
3228
|
"""
|
|
2593
3229
|
Called whenever a player runs a command.
|
|
2594
3230
|
"""
|
|
2595
|
-
@staticmethod
|
|
2596
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2597
|
-
...
|
|
2598
3231
|
@property
|
|
2599
3232
|
def command(self) -> str:
|
|
2600
3233
|
"""
|
|
@@ -2607,131 +3240,246 @@ class PlayerDeathEvent(ActorDeathEvent, PlayerEvent):
|
|
|
2607
3240
|
"""
|
|
2608
3241
|
Called when a player dies
|
|
2609
3242
|
"""
|
|
2610
|
-
@staticmethod
|
|
2611
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2612
|
-
...
|
|
2613
3243
|
@property
|
|
2614
|
-
def death_message(self) -> str:
|
|
3244
|
+
def death_message(self) -> str | Translatable | None:
|
|
2615
3245
|
"""
|
|
2616
3246
|
Gets or sets the death message that will appear to everyone on the server.
|
|
2617
3247
|
"""
|
|
2618
3248
|
@death_message.setter
|
|
2619
|
-
def death_message(self, arg1: str) -> None:
|
|
3249
|
+
def death_message(self, arg1: str | Translatable | None) -> None:
|
|
2620
3250
|
...
|
|
2621
|
-
class
|
|
3251
|
+
class PlayerDropItemEvent(PlayerEvent, Cancellable):
|
|
3252
|
+
"""
|
|
3253
|
+
Called when a player drops an item from their inventory
|
|
3254
|
+
"""
|
|
3255
|
+
@property
|
|
3256
|
+
def item(self) -> ItemStack:
|
|
3257
|
+
"""
|
|
3258
|
+
Gets the ItemStack dropped by the player
|
|
3259
|
+
"""
|
|
3260
|
+
class PlayerEmoteEvent(PlayerEvent, Cancellable):
|
|
2622
3261
|
"""
|
|
2623
3262
|
Called when a player uses and emote
|
|
2624
3263
|
"""
|
|
2625
|
-
@
|
|
2626
|
-
def
|
|
3264
|
+
@property
|
|
3265
|
+
def emote_id(self) -> str:
|
|
3266
|
+
"""
|
|
3267
|
+
Gets the emote piece ID
|
|
3268
|
+
"""
|
|
3269
|
+
@property
|
|
3270
|
+
def is_muted(self) -> bool:
|
|
3271
|
+
"""
|
|
3272
|
+
Gets or sets the muted state for the emote.
|
|
3273
|
+
"""
|
|
3274
|
+
@is_muted.setter
|
|
3275
|
+
def is_muted(self, arg1: bool) -> None:
|
|
2627
3276
|
...
|
|
3277
|
+
class PlayerEvent(Event):
|
|
3278
|
+
"""
|
|
3279
|
+
Represents a player related event
|
|
3280
|
+
"""
|
|
3281
|
+
@property
|
|
3282
|
+
def player(self) -> Player:
|
|
3283
|
+
"""
|
|
3284
|
+
Returns the player involved in this event.
|
|
3285
|
+
"""
|
|
3286
|
+
class PlayerGameModeChangeEvent(PlayerEvent, Cancellable):
|
|
3287
|
+
"""
|
|
3288
|
+
Called when the GameMode of the player is changed.
|
|
3289
|
+
"""
|
|
3290
|
+
@property
|
|
3291
|
+
def new_game_mode(self) -> GameMode:
|
|
3292
|
+
"""
|
|
3293
|
+
Gets the GameMode the player is switched to.
|
|
3294
|
+
"""
|
|
3295
|
+
class PlayerInteractActorEvent(PlayerEvent, Cancellable):
|
|
3296
|
+
"""
|
|
3297
|
+
Represents an event that is called when a player right-clicks an actor.
|
|
3298
|
+
"""
|
|
3299
|
+
@property
|
|
3300
|
+
def actor(self) -> Actor:
|
|
3301
|
+
"""
|
|
3302
|
+
Gets the actor that was right-clicked by the player.
|
|
3303
|
+
"""
|
|
3304
|
+
class PlayerInteractEvent(PlayerEvent, Cancellable):
|
|
3305
|
+
"""
|
|
3306
|
+
Represents an event that is called when a player right-clicks a block.
|
|
3307
|
+
"""
|
|
3308
|
+
class Action:
|
|
3309
|
+
LEFT_CLICK_AIR: typing.ClassVar[PlayerInteractEvent.Action] # value = <Action.LEFT_CLICK_AIR: 2>
|
|
3310
|
+
LEFT_CLICK_BLOCK: typing.ClassVar[PlayerInteractEvent.Action] # value = <Action.LEFT_CLICK_BLOCK: 0>
|
|
3311
|
+
RIGHT_CLICK_AIR: typing.ClassVar[PlayerInteractEvent.Action] # value = <Action.RIGHT_CLICK_AIR: 3>
|
|
3312
|
+
RIGHT_CLICK_BLOCK: typing.ClassVar[PlayerInteractEvent.Action] # value = <Action.RIGHT_CLICK_BLOCK: 1>
|
|
3313
|
+
__members__: typing.ClassVar[dict[str, PlayerInteractEvent.Action]] # value = {'LEFT_CLICK_BLOCK': <Action.LEFT_CLICK_BLOCK: 0>, 'RIGHT_CLICK_BLOCK': <Action.RIGHT_CLICK_BLOCK: 1>, 'LEFT_CLICK_AIR': <Action.LEFT_CLICK_AIR: 2>, 'RIGHT_CLICK_AIR': <Action.RIGHT_CLICK_AIR: 3>}
|
|
3314
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
3315
|
+
...
|
|
3316
|
+
def __getstate__(self) -> int:
|
|
3317
|
+
...
|
|
3318
|
+
def __hash__(self) -> int:
|
|
3319
|
+
...
|
|
3320
|
+
def __index__(self) -> int:
|
|
3321
|
+
...
|
|
3322
|
+
def __init__(self, value: int) -> None:
|
|
3323
|
+
...
|
|
3324
|
+
def __int__(self) -> int:
|
|
3325
|
+
...
|
|
3326
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
3327
|
+
...
|
|
3328
|
+
def __repr__(self) -> str:
|
|
3329
|
+
...
|
|
3330
|
+
def __setstate__(self, state: int) -> None:
|
|
3331
|
+
...
|
|
3332
|
+
def __str__(self) -> str:
|
|
3333
|
+
...
|
|
3334
|
+
@property
|
|
3335
|
+
def name(self) -> str:
|
|
3336
|
+
...
|
|
3337
|
+
@property
|
|
3338
|
+
def value(self) -> int:
|
|
3339
|
+
...
|
|
3340
|
+
@property
|
|
3341
|
+
def action(self) -> PlayerInteractEvent.Action:
|
|
3342
|
+
"""
|
|
3343
|
+
Returns the action type of interaction
|
|
3344
|
+
"""
|
|
3345
|
+
@property
|
|
3346
|
+
def block(self) -> Block:
|
|
3347
|
+
"""
|
|
3348
|
+
Returns the clicked block
|
|
3349
|
+
"""
|
|
3350
|
+
@property
|
|
3351
|
+
def block_face(self) -> BlockFace:
|
|
3352
|
+
"""
|
|
3353
|
+
Returns the face of the block that was clicked
|
|
3354
|
+
"""
|
|
3355
|
+
@property
|
|
3356
|
+
def clicked_position(self) -> Vector | None:
|
|
3357
|
+
"""
|
|
3358
|
+
Gets the exact position on the block the player interacted with.
|
|
3359
|
+
"""
|
|
3360
|
+
@property
|
|
3361
|
+
def has_block(self) -> bool:
|
|
3362
|
+
"""
|
|
3363
|
+
Check if this event involved a block
|
|
3364
|
+
"""
|
|
3365
|
+
@property
|
|
3366
|
+
def has_item(self) -> bool:
|
|
3367
|
+
"""
|
|
3368
|
+
Check if this event involved an item
|
|
3369
|
+
"""
|
|
2628
3370
|
@property
|
|
2629
|
-
def
|
|
3371
|
+
def item(self) -> ItemStack:
|
|
2630
3372
|
"""
|
|
2631
|
-
|
|
3373
|
+
Returns the item in hand represented by this event
|
|
2632
3374
|
"""
|
|
2633
|
-
class
|
|
3375
|
+
class PlayerInventory(Inventory):
|
|
2634
3376
|
"""
|
|
2635
|
-
|
|
3377
|
+
Interface to the inventory of a Player, including the four armor slots and any extra slots.
|
|
2636
3378
|
"""
|
|
2637
|
-
@staticmethod
|
|
2638
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2639
|
-
...
|
|
2640
3379
|
@property
|
|
2641
|
-
def
|
|
3380
|
+
def boots(self) -> ItemStack:
|
|
2642
3381
|
"""
|
|
2643
|
-
|
|
3382
|
+
Gets or sets the ItemStack in the boots slot
|
|
2644
3383
|
"""
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
Called when the GameMode of the player is changed.
|
|
2648
|
-
"""
|
|
2649
|
-
@staticmethod
|
|
2650
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3384
|
+
@boots.setter
|
|
3385
|
+
def boots(self, arg1: ItemStack) -> None:
|
|
2651
3386
|
...
|
|
2652
3387
|
@property
|
|
2653
|
-
def
|
|
3388
|
+
def chestplate(self) -> ItemStack:
|
|
2654
3389
|
"""
|
|
2655
|
-
Gets
|
|
3390
|
+
Gets or sets the ItemStack in the chestplate slot
|
|
2656
3391
|
"""
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
Represents an event that is called when a player right-clicks an actor.
|
|
2660
|
-
"""
|
|
2661
|
-
@staticmethod
|
|
2662
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3392
|
+
@chestplate.setter
|
|
3393
|
+
def chestplate(self, arg1: ItemStack) -> None:
|
|
2663
3394
|
...
|
|
2664
3395
|
@property
|
|
2665
|
-
def
|
|
3396
|
+
def held_item_slot(self) -> int:
|
|
2666
3397
|
"""
|
|
2667
|
-
Gets
|
|
3398
|
+
Gets or sets the slot number of the currently held item
|
|
2668
3399
|
"""
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
Represents an event that is called when a player right-clicks a block.
|
|
2672
|
-
"""
|
|
2673
|
-
@staticmethod
|
|
2674
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3400
|
+
@held_item_slot.setter
|
|
3401
|
+
def held_item_slot(self, arg1: int) -> None:
|
|
2675
3402
|
...
|
|
2676
3403
|
@property
|
|
2677
|
-
def
|
|
3404
|
+
def helmet(self) -> ItemStack:
|
|
2678
3405
|
"""
|
|
2679
|
-
|
|
3406
|
+
Gets or sets the ItemStack in the helmet slot
|
|
2680
3407
|
"""
|
|
3408
|
+
@helmet.setter
|
|
3409
|
+
def helmet(self, arg1: ItemStack) -> None:
|
|
3410
|
+
...
|
|
2681
3411
|
@property
|
|
2682
|
-
def
|
|
3412
|
+
def item_in_main_hand(self) -> ItemStack:
|
|
2683
3413
|
"""
|
|
2684
|
-
|
|
3414
|
+
Gets or sets the item the player is currently holding in their main hand.
|
|
2685
3415
|
"""
|
|
3416
|
+
@item_in_main_hand.setter
|
|
3417
|
+
def item_in_main_hand(self, arg1: ItemStack) -> None:
|
|
3418
|
+
...
|
|
2686
3419
|
@property
|
|
2687
|
-
def
|
|
3420
|
+
def item_in_off_hand(self) -> ItemStack:
|
|
2688
3421
|
"""
|
|
2689
|
-
Gets
|
|
3422
|
+
Gets or sets the item the player is currently holding in their off hand.
|
|
2690
3423
|
"""
|
|
3424
|
+
@item_in_off_hand.setter
|
|
3425
|
+
def item_in_off_hand(self, arg1: ItemStack) -> None:
|
|
3426
|
+
...
|
|
2691
3427
|
@property
|
|
2692
|
-
def
|
|
3428
|
+
def leggings(self) -> ItemStack:
|
|
2693
3429
|
"""
|
|
2694
|
-
|
|
3430
|
+
Gets or sets the ItemStack in the leg slot
|
|
2695
3431
|
"""
|
|
3432
|
+
@leggings.setter
|
|
3433
|
+
def leggings(self, arg1: ItemStack) -> None:
|
|
3434
|
+
...
|
|
3435
|
+
class PlayerItemConsumeEvent(PlayerEvent, Cancellable):
|
|
3436
|
+
"""
|
|
3437
|
+
Called when a player is finishing consuming an item (food, potion, milk bucket).
|
|
3438
|
+
"""
|
|
2696
3439
|
@property
|
|
2697
|
-
def
|
|
3440
|
+
def hand(self) -> EquipmentSlot:
|
|
2698
3441
|
"""
|
|
2699
|
-
|
|
3442
|
+
Get the hand used to consume the item.
|
|
2700
3443
|
"""
|
|
2701
3444
|
@property
|
|
2702
3445
|
def item(self) -> ItemStack:
|
|
2703
3446
|
"""
|
|
2704
|
-
|
|
3447
|
+
Gets or sets the item that is being consumed.
|
|
2705
3448
|
"""
|
|
2706
|
-
class
|
|
3449
|
+
class PlayerItemHeldEvent(PlayerEvent, Cancellable):
|
|
2707
3450
|
"""
|
|
2708
|
-
|
|
3451
|
+
Called when a player changes their currently held item.
|
|
2709
3452
|
"""
|
|
2710
|
-
@
|
|
2711
|
-
def
|
|
2712
|
-
|
|
3453
|
+
@property
|
|
3454
|
+
def new_slot(self) -> int:
|
|
3455
|
+
"""
|
|
3456
|
+
Gets the new held slot index
|
|
3457
|
+
"""
|
|
3458
|
+
@property
|
|
3459
|
+
def previous_slot(self) -> int:
|
|
3460
|
+
"""
|
|
3461
|
+
Gets the previous held slot index.
|
|
3462
|
+
"""
|
|
2713
3463
|
class PlayerJoinEvent(PlayerEvent):
|
|
2714
3464
|
"""
|
|
2715
3465
|
Called when a player joins a server
|
|
2716
3466
|
"""
|
|
2717
|
-
@staticmethod
|
|
2718
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2719
|
-
...
|
|
2720
3467
|
@property
|
|
2721
|
-
def join_message(self) -> str:
|
|
3468
|
+
def join_message(self) -> str | Translatable | None:
|
|
2722
3469
|
"""
|
|
2723
3470
|
Gets or sets the join message to send to all online players.
|
|
2724
3471
|
"""
|
|
2725
3472
|
@join_message.setter
|
|
2726
|
-
def join_message(self, arg1: str) -> None:
|
|
3473
|
+
def join_message(self, arg1: str | Translatable | None) -> None:
|
|
2727
3474
|
...
|
|
3475
|
+
class PlayerJumpEvent(PlayerMoveEvent):
|
|
3476
|
+
"""
|
|
3477
|
+
Called when a player jumps.
|
|
3478
|
+
"""
|
|
2728
3479
|
class PlayerKickEvent(PlayerEvent, Cancellable):
|
|
2729
3480
|
"""
|
|
2730
3481
|
Called when a player gets kicked from the server
|
|
2731
3482
|
"""
|
|
2732
|
-
@staticmethod
|
|
2733
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2734
|
-
...
|
|
2735
3483
|
@property
|
|
2736
3484
|
def reason(self) -> str:
|
|
2737
3485
|
"""
|
|
@@ -2744,9 +3492,6 @@ class PlayerLoginEvent(PlayerEvent, Cancellable):
|
|
|
2744
3492
|
"""
|
|
2745
3493
|
Called when a player attempts to login in.
|
|
2746
3494
|
"""
|
|
2747
|
-
@staticmethod
|
|
2748
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2749
|
-
...
|
|
2750
3495
|
@property
|
|
2751
3496
|
def kick_message(self) -> str:
|
|
2752
3497
|
"""
|
|
@@ -2755,58 +3500,76 @@ class PlayerLoginEvent(PlayerEvent, Cancellable):
|
|
|
2755
3500
|
@kick_message.setter
|
|
2756
3501
|
def kick_message(self, arg1: str) -> None:
|
|
2757
3502
|
...
|
|
3503
|
+
class PlayerMoveEvent(PlayerEvent, Cancellable):
|
|
3504
|
+
"""
|
|
3505
|
+
Called when a player moves.
|
|
3506
|
+
"""
|
|
3507
|
+
@property
|
|
3508
|
+
def from_location(self) -> Location:
|
|
3509
|
+
"""
|
|
3510
|
+
Gets or sets the location that this player moved from.
|
|
3511
|
+
"""
|
|
3512
|
+
@from_location.setter
|
|
3513
|
+
def from_location(self, arg1: Location) -> None:
|
|
3514
|
+
...
|
|
3515
|
+
@property
|
|
3516
|
+
def to_location(self) -> Location:
|
|
3517
|
+
"""
|
|
3518
|
+
Gets or sets the location that this player moved to.
|
|
3519
|
+
"""
|
|
3520
|
+
@to_location.setter
|
|
3521
|
+
def to_location(self, arg1: Location) -> None:
|
|
3522
|
+
...
|
|
3523
|
+
class PlayerPickupItemEvent(PlayerEvent, Cancellable):
|
|
3524
|
+
"""
|
|
3525
|
+
Called when a player picks an item up from the ground.
|
|
3526
|
+
"""
|
|
3527
|
+
@property
|
|
3528
|
+
def item(self) -> Item:
|
|
3529
|
+
"""
|
|
3530
|
+
Gets the Item picked up by the entity.
|
|
3531
|
+
"""
|
|
2758
3532
|
class PlayerQuitEvent(PlayerEvent):
|
|
2759
3533
|
"""
|
|
2760
3534
|
Called when a player leaves a server.
|
|
2761
3535
|
"""
|
|
2762
|
-
@staticmethod
|
|
2763
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2764
|
-
...
|
|
2765
3536
|
@property
|
|
2766
|
-
def quit_message(self) -> str:
|
|
3537
|
+
def quit_message(self) -> str | Translatable | None:
|
|
2767
3538
|
"""
|
|
2768
3539
|
Gets or sets the quit message to send to all online players.
|
|
2769
3540
|
"""
|
|
2770
3541
|
@quit_message.setter
|
|
2771
|
-
def quit_message(self, arg1: str) -> None:
|
|
3542
|
+
def quit_message(self, arg1: str | Translatable | None) -> None:
|
|
2772
3543
|
...
|
|
2773
3544
|
class PlayerRespawnEvent(PlayerEvent):
|
|
2774
3545
|
"""
|
|
2775
3546
|
Called when a player respawns.
|
|
2776
3547
|
"""
|
|
2777
|
-
|
|
2778
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2779
|
-
...
|
|
2780
|
-
class PlayerTeleportEvent(PlayerEvent, Cancellable):
|
|
3548
|
+
class PlayerSkinChangeEvent(PlayerEvent, Cancellable):
|
|
2781
3549
|
"""
|
|
2782
|
-
Called when a player
|
|
3550
|
+
Called when a player changes their skin.
|
|
2783
3551
|
"""
|
|
2784
|
-
@staticmethod
|
|
2785
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2786
|
-
...
|
|
2787
3552
|
@property
|
|
2788
|
-
def
|
|
3553
|
+
def new_skin(self) -> Skin:
|
|
2789
3554
|
"""
|
|
2790
|
-
Gets
|
|
3555
|
+
Gets the player's new skin.
|
|
2791
3556
|
"""
|
|
2792
|
-
@from_location.setter
|
|
2793
|
-
def from_location(self, arg1: Location) -> None:
|
|
2794
|
-
...
|
|
2795
3557
|
@property
|
|
2796
|
-
def
|
|
3558
|
+
def skin_change_message(self) -> str | Translatable | None:
|
|
2797
3559
|
"""
|
|
2798
|
-
Gets or sets the
|
|
3560
|
+
Gets or sets the message to send to all online players for this skin change.
|
|
2799
3561
|
"""
|
|
2800
|
-
@
|
|
2801
|
-
def
|
|
3562
|
+
@skin_change_message.setter
|
|
3563
|
+
def skin_change_message(self, arg1: str | Translatable | None) -> None:
|
|
2802
3564
|
...
|
|
3565
|
+
class PlayerTeleportEvent(PlayerMoveEvent):
|
|
3566
|
+
"""
|
|
3567
|
+
Called when a player is teleported from one location to another.
|
|
3568
|
+
"""
|
|
2803
3569
|
class Plugin(CommandExecutor):
|
|
2804
3570
|
"""
|
|
2805
3571
|
Represents a Plugin
|
|
2806
3572
|
"""
|
|
2807
|
-
@staticmethod
|
|
2808
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2809
|
-
...
|
|
2810
3573
|
def __init__(self) -> None:
|
|
2811
3574
|
...
|
|
2812
3575
|
def _get_description(self) -> PluginDescription:
|
|
@@ -2861,9 +3624,6 @@ class PluginCommand(Command):
|
|
|
2861
3624
|
"""
|
|
2862
3625
|
Represents a Command belonging to a Plugin
|
|
2863
3626
|
"""
|
|
2864
|
-
@staticmethod
|
|
2865
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2866
|
-
...
|
|
2867
3627
|
@property
|
|
2868
3628
|
def executor(self) -> CommandExecutor:
|
|
2869
3629
|
"""
|
|
@@ -2881,9 +3641,6 @@ class PluginDescription:
|
|
|
2881
3641
|
"""
|
|
2882
3642
|
Represents the basic information about a plugin that the plugin loader needs to know.
|
|
2883
3643
|
"""
|
|
2884
|
-
@staticmethod
|
|
2885
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2886
|
-
...
|
|
2887
3644
|
def __init__(self, name: str, version: str, description: str | None = None, load: PluginLoadOrder | None = None, authors: list[str] | None = None, contributors: list[str] | None = None, website: str | None = None, prefix: str | None = None, provides: list[str] | None = None, depend: list[str] | None = None, soft_depend: list[str] | None = None, load_before: list[str] | None = None, default_permission: PermissionDefault | None = None, commands: list[Command] | None = None, permissions: list[Permission] | None = None, *args, **kwargs) -> None:
|
|
2888
3645
|
...
|
|
2889
3646
|
@property
|
|
@@ -2975,9 +3732,6 @@ class PluginDisableEvent(ServerEvent):
|
|
|
2975
3732
|
"""
|
|
2976
3733
|
Called when a plugin is disabled.
|
|
2977
3734
|
"""
|
|
2978
|
-
@staticmethod
|
|
2979
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2980
|
-
...
|
|
2981
3735
|
@property
|
|
2982
3736
|
def plugin(self) -> Plugin:
|
|
2983
3737
|
...
|
|
@@ -2985,9 +3739,6 @@ class PluginEnableEvent(ServerEvent):
|
|
|
2985
3739
|
"""
|
|
2986
3740
|
Called when a plugin is enabled.
|
|
2987
3741
|
"""
|
|
2988
|
-
@staticmethod
|
|
2989
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2990
|
-
...
|
|
2991
3742
|
@property
|
|
2992
3743
|
def plugin(self) -> Plugin:
|
|
2993
3744
|
...
|
|
@@ -2998,9 +3749,6 @@ class PluginLoadOrder:
|
|
|
2998
3749
|
POSTWORLD: typing.ClassVar[PluginLoadOrder] # value = <PluginLoadOrder.POSTWORLD: 1>
|
|
2999
3750
|
STARTUP: typing.ClassVar[PluginLoadOrder] # value = <PluginLoadOrder.STARTUP: 0>
|
|
3000
3751
|
__members__: typing.ClassVar[dict[str, PluginLoadOrder]] # value = {'STARTUP': <PluginLoadOrder.STARTUP: 0>, 'POSTWORLD': <PluginLoadOrder.POSTWORLD: 1>}
|
|
3001
|
-
@staticmethod
|
|
3002
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3003
|
-
...
|
|
3004
3752
|
def __eq__(self, other: typing.Any) -> bool:
|
|
3005
3753
|
...
|
|
3006
3754
|
def __getstate__(self) -> int:
|
|
@@ -3031,9 +3779,6 @@ class PluginLoader:
|
|
|
3031
3779
|
"""
|
|
3032
3780
|
Represents a plugin loader, which handles direct access to specific types of plugins
|
|
3033
3781
|
"""
|
|
3034
|
-
@staticmethod
|
|
3035
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3036
|
-
...
|
|
3037
3782
|
def __init__(self, server: Server) -> None:
|
|
3038
3783
|
...
|
|
3039
3784
|
def disable_plugin(self, plugin: Plugin) -> None:
|
|
@@ -3066,9 +3811,6 @@ class PluginManager:
|
|
|
3066
3811
|
"""
|
|
3067
3812
|
Represents a plugin manager that handles all plugins from the Server
|
|
3068
3813
|
"""
|
|
3069
|
-
@staticmethod
|
|
3070
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3071
|
-
...
|
|
3072
3814
|
def call_event(self, event: Event) -> None:
|
|
3073
3815
|
"""
|
|
3074
3816
|
Calls an event which will be passed to plugins.
|
|
@@ -3093,13 +3835,13 @@ class PluginManager:
|
|
|
3093
3835
|
"""
|
|
3094
3836
|
Enable all the loaded plugins
|
|
3095
3837
|
"""
|
|
3096
|
-
def get_default_perm_subscriptions(self,
|
|
3838
|
+
def get_default_perm_subscriptions(self, level: PermissionLevel) -> set[Permissible]:
|
|
3097
3839
|
"""
|
|
3098
|
-
Gets a set containing all subscribed Permissibles to the given default list, by
|
|
3840
|
+
Gets a set containing all subscribed Permissibles to the given default list, by permission level.
|
|
3099
3841
|
"""
|
|
3100
|
-
def get_default_permissions(self,
|
|
3842
|
+
def get_default_permissions(self, level: PermissionLevel) -> list[Permission]:
|
|
3101
3843
|
"""
|
|
3102
|
-
Gets the default permissions for the given
|
|
3844
|
+
Gets the default permissions for the given permission level.
|
|
3103
3845
|
"""
|
|
3104
3846
|
def get_permission(self, name: str) -> Permission:
|
|
3105
3847
|
"""
|
|
@@ -3155,17 +3897,17 @@ class PluginManager:
|
|
|
3155
3897
|
"""
|
|
3156
3898
|
Removes a Permission registration from this plugin manager by name.
|
|
3157
3899
|
"""
|
|
3158
|
-
def subscribe_to_default_perms(self,
|
|
3900
|
+
def subscribe_to_default_perms(self, level: PermissionLevel, permissible: Permissible) -> None:
|
|
3159
3901
|
"""
|
|
3160
|
-
Subscribes to the given Default permissions by
|
|
3902
|
+
Subscribes to the given Default permissions by permission level.
|
|
3161
3903
|
"""
|
|
3162
3904
|
def subscribe_to_permission(self, permission: str, permissible: Permissible) -> None:
|
|
3163
3905
|
"""
|
|
3164
3906
|
Subscribes the given Permissible for information about the requested Permission.
|
|
3165
3907
|
"""
|
|
3166
|
-
def unsubscribe_from_default_perms(self,
|
|
3908
|
+
def unsubscribe_from_default_perms(self, level: PermissionLevel, permissible: Permissible) -> None:
|
|
3167
3909
|
"""
|
|
3168
|
-
Unsubscribes from the given Default permissions by
|
|
3910
|
+
Unsubscribes from the given Default permissions by permission level.
|
|
3169
3911
|
"""
|
|
3170
3912
|
def unsubscribe_from_permission(self, permission: str, permissible: Permissible) -> None:
|
|
3171
3913
|
"""
|
|
@@ -3185,9 +3927,6 @@ class Position(Vector):
|
|
|
3185
3927
|
"""
|
|
3186
3928
|
Represents a 3-dimensional position in a dimension within a level.
|
|
3187
3929
|
"""
|
|
3188
|
-
@staticmethod
|
|
3189
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3190
|
-
...
|
|
3191
3930
|
def __init__(self, dimension: Dimension, x: float, y: float, z: float) -> None:
|
|
3192
3931
|
...
|
|
3193
3932
|
def __repr__(self) -> str:
|
|
@@ -3217,32 +3956,13 @@ class Position(Vector):
|
|
|
3217
3956
|
@dimension.setter
|
|
3218
3957
|
def dimension(self, arg1: Dimension) -> None:
|
|
3219
3958
|
...
|
|
3220
|
-
class ProxiedCommandSender(CommandSender):
|
|
3221
|
-
"""
|
|
3222
|
-
Represents a proxied command sender.
|
|
3223
|
-
"""
|
|
3224
|
-
@staticmethod
|
|
3225
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3226
|
-
...
|
|
3227
|
-
@property
|
|
3228
|
-
def callee(self) -> CommandSender:
|
|
3229
|
-
"""
|
|
3230
|
-
Returns the CommandSender which is being used to call the command.
|
|
3231
|
-
"""
|
|
3232
|
-
@property
|
|
3233
|
-
def caller(self) -> CommandSender:
|
|
3234
|
-
"""
|
|
3235
|
-
Returns the CommandSender which triggered this proxied command.
|
|
3236
|
-
"""
|
|
3237
3959
|
class RenderType:
|
|
3238
3960
|
"""
|
|
3239
3961
|
Controls the way in which an Objective is rendered on the client side.
|
|
3240
3962
|
"""
|
|
3963
|
+
HEARTS: typing.ClassVar[RenderType] # value = <RenderType.HEARTS: 1>
|
|
3241
3964
|
INTEGER: typing.ClassVar[RenderType] # value = <RenderType.INTEGER: 0>
|
|
3242
|
-
__members__: typing.ClassVar[dict[str, RenderType]] # value = {'INTEGER': <RenderType.INTEGER: 0>}
|
|
3243
|
-
@staticmethod
|
|
3244
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3245
|
-
...
|
|
3965
|
+
__members__: typing.ClassVar[dict[str, RenderType]] # value = {'INTEGER': <RenderType.INTEGER: 0>, 'HEARTS': <RenderType.HEARTS: 1>}
|
|
3246
3966
|
def __eq__(self, other: typing.Any) -> bool:
|
|
3247
3967
|
...
|
|
3248
3968
|
def __getstate__(self) -> int:
|
|
@@ -3273,9 +3993,6 @@ class Scheduler:
|
|
|
3273
3993
|
"""
|
|
3274
3994
|
Represents a scheduler that executes various tasks
|
|
3275
3995
|
"""
|
|
3276
|
-
@staticmethod
|
|
3277
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3278
|
-
...
|
|
3279
3996
|
def cancel_task(self, id: int) -> None:
|
|
3280
3997
|
"""
|
|
3281
3998
|
Removes task from scheduler.
|
|
@@ -3304,9 +4021,6 @@ class Score:
|
|
|
3304
4021
|
"""
|
|
3305
4022
|
Represents a score for an objective on a scoreboard.
|
|
3306
4023
|
"""
|
|
3307
|
-
@staticmethod
|
|
3308
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3309
|
-
...
|
|
3310
4024
|
@property
|
|
3311
4025
|
def entry(self) -> Player | Actor | str:
|
|
3312
4026
|
"""
|
|
@@ -3339,9 +4053,6 @@ class Scoreboard:
|
|
|
3339
4053
|
"""
|
|
3340
4054
|
Represents a scoreboard
|
|
3341
4055
|
"""
|
|
3342
|
-
@staticmethod
|
|
3343
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3344
|
-
...
|
|
3345
4056
|
def add_objective(self, name: str, criteria: Criteria.Type, display_name: str | None = None, render_type: RenderType = RenderType.INTEGER) -> Objective:
|
|
3346
4057
|
"""
|
|
3347
4058
|
Registers an Objective on this Scoreboard with a name displayed to players
|
|
@@ -3386,9 +4097,6 @@ class ScriptMessageEvent(ServerEvent, Cancellable):
|
|
|
3386
4097
|
"""
|
|
3387
4098
|
Called when a message is sent by `/scriptevent` command
|
|
3388
4099
|
"""
|
|
3389
|
-
@staticmethod
|
|
3390
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3391
|
-
...
|
|
3392
4100
|
@property
|
|
3393
4101
|
def message(self) -> str:
|
|
3394
4102
|
"""
|
|
@@ -3408,9 +4116,6 @@ class Server:
|
|
|
3408
4116
|
"""
|
|
3409
4117
|
Represents a server implementation.
|
|
3410
4118
|
"""
|
|
3411
|
-
@staticmethod
|
|
3412
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3413
|
-
...
|
|
3414
4119
|
def broadcast(self, message: str | Translatable, permission: str) -> None:
|
|
3415
4120
|
"""
|
|
3416
4121
|
Broadcasts the specified message to every user with the given permission name.
|
|
@@ -3502,11 +4207,26 @@ class Server:
|
|
|
3502
4207
|
Gets the current ticks per second (TPS).
|
|
3503
4208
|
"""
|
|
3504
4209
|
@property
|
|
4210
|
+
def enchantment_registry(self) -> EnchantmentRegistry:
|
|
4211
|
+
"""
|
|
4212
|
+
Returns the registry for all the enchantments.
|
|
4213
|
+
"""
|
|
4214
|
+
@property
|
|
3505
4215
|
def ip_ban_list(self) -> IpBanList:
|
|
3506
4216
|
"""
|
|
3507
4217
|
Gets the IP ban list.
|
|
3508
4218
|
"""
|
|
3509
4219
|
@property
|
|
4220
|
+
def item_factory(self) -> ItemFactory:
|
|
4221
|
+
"""
|
|
4222
|
+
Gets the instance of the item factory (for ItemMeta).
|
|
4223
|
+
"""
|
|
4224
|
+
@property
|
|
4225
|
+
def item_registry(self) -> ItemRegistry:
|
|
4226
|
+
"""
|
|
4227
|
+
Returns the registry for all the item types.
|
|
4228
|
+
"""
|
|
4229
|
+
@property
|
|
3510
4230
|
def language(self) -> Language:
|
|
3511
4231
|
"""
|
|
3512
4232
|
Gets the current language interface used by the server.
|
|
@@ -3555,6 +4275,21 @@ class Server:
|
|
|
3555
4275
|
Gets the plugin manager for interfacing with plugins.
|
|
3556
4276
|
"""
|
|
3557
4277
|
@property
|
|
4278
|
+
def port(self) -> int:
|
|
4279
|
+
"""
|
|
4280
|
+
Get the game port that the server runs on.
|
|
4281
|
+
"""
|
|
4282
|
+
@property
|
|
4283
|
+
def port_v6(self) -> int:
|
|
4284
|
+
"""
|
|
4285
|
+
Get the game port (IPv6) that the server runs on.
|
|
4286
|
+
"""
|
|
4287
|
+
@property
|
|
4288
|
+
def protocol_version(self) -> int:
|
|
4289
|
+
"""
|
|
4290
|
+
Gets the network protocol version that this server supports.
|
|
4291
|
+
"""
|
|
4292
|
+
@property
|
|
3558
4293
|
def scheduler(self) -> Scheduler:
|
|
3559
4294
|
"""
|
|
3560
4295
|
Gets the scheduler for managing scheduled events.
|
|
@@ -3565,6 +4300,11 @@ class Server:
|
|
|
3565
4300
|
Gets the primary Scoreboard controlled by the server.
|
|
3566
4301
|
"""
|
|
3567
4302
|
@property
|
|
4303
|
+
def service_manager(self) -> ServiceManager:
|
|
4304
|
+
"""
|
|
4305
|
+
Gets the service manager.
|
|
4306
|
+
"""
|
|
4307
|
+
@property
|
|
3568
4308
|
def start_time(self) -> datetime.datetime:
|
|
3569
4309
|
"""
|
|
3570
4310
|
Gets the start time of the server.
|
|
@@ -3578,9 +4318,6 @@ class ServerCommandEvent(ServerEvent, Cancellable):
|
|
|
3578
4318
|
"""
|
|
3579
4319
|
Called when the console runs a command, early in the process.
|
|
3580
4320
|
"""
|
|
3581
|
-
@staticmethod
|
|
3582
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3583
|
-
...
|
|
3584
4321
|
@property
|
|
3585
4322
|
def command(self) -> str:
|
|
3586
4323
|
"""
|
|
@@ -3598,16 +4335,10 @@ class ServerEvent(Event):
|
|
|
3598
4335
|
"""
|
|
3599
4336
|
Represents a server-related event
|
|
3600
4337
|
"""
|
|
3601
|
-
@staticmethod
|
|
3602
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3603
|
-
...
|
|
3604
4338
|
class ServerListPingEvent(ServerEvent, Cancellable):
|
|
3605
4339
|
"""
|
|
3606
4340
|
Called when a server ping is coming in.
|
|
3607
4341
|
"""
|
|
3608
|
-
@staticmethod
|
|
3609
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3610
|
-
...
|
|
3611
4342
|
@property
|
|
3612
4343
|
def game_mode(self) -> GameMode:
|
|
3613
4344
|
"""
|
|
@@ -3702,9 +4433,6 @@ class ServerLoadEvent(Event):
|
|
|
3702
4433
|
class LoadType:
|
|
3703
4434
|
STARTUP: typing.ClassVar[ServerLoadEvent.LoadType] # value = <LoadType.STARTUP: 0>
|
|
3704
4435
|
__members__: typing.ClassVar[dict[str, ServerLoadEvent.LoadType]] # value = {'STARTUP': <LoadType.STARTUP: 0>}
|
|
3705
|
-
@staticmethod
|
|
3706
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3707
|
-
...
|
|
3708
4436
|
def __eq__(self, other: typing.Any) -> bool:
|
|
3709
4437
|
...
|
|
3710
4438
|
def __getstate__(self) -> int:
|
|
@@ -3732,48 +4460,105 @@ class ServerLoadEvent(Event):
|
|
|
3732
4460
|
def value(self) -> int:
|
|
3733
4461
|
...
|
|
3734
4462
|
STARTUP: typing.ClassVar[ServerLoadEvent.LoadType] # value = <LoadType.STARTUP: 0>
|
|
3735
|
-
@staticmethod
|
|
3736
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3737
|
-
...
|
|
3738
4463
|
@property
|
|
3739
4464
|
def type(self) -> ServerLoadEvent.LoadType:
|
|
3740
4465
|
...
|
|
3741
|
-
class
|
|
4466
|
+
class Service:
|
|
3742
4467
|
"""
|
|
3743
|
-
Represents a
|
|
4468
|
+
Represents a list of methods.
|
|
3744
4469
|
"""
|
|
3745
|
-
|
|
3746
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
4470
|
+
def __init__(self) -> None:
|
|
3747
4471
|
...
|
|
3748
|
-
|
|
4472
|
+
class ServiceManager:
|
|
4473
|
+
"""
|
|
4474
|
+
Represent a service manager that manages services and service providers.
|
|
4475
|
+
"""
|
|
4476
|
+
def load(self, name: str) -> Service:
|
|
3749
4477
|
...
|
|
3750
|
-
|
|
3751
|
-
|
|
4478
|
+
def register(self, name: str, provider: Service, plugin: Plugin, priority: ServicePriority) -> None:
|
|
4479
|
+
"""
|
|
4480
|
+
Register a provider of a service.
|
|
4481
|
+
"""
|
|
4482
|
+
@typing.overload
|
|
4483
|
+
def unregister(self, name: str, provider: Service) -> None:
|
|
4484
|
+
"""
|
|
4485
|
+
Unregister a particular provider for a particular service.
|
|
4486
|
+
"""
|
|
4487
|
+
@typing.overload
|
|
4488
|
+
def unregister(self, provider: Service) -> None:
|
|
4489
|
+
"""
|
|
4490
|
+
Unregister a particular provider.
|
|
4491
|
+
"""
|
|
4492
|
+
def unregister_all(self, plugin: Plugin) -> None:
|
|
3752
4493
|
"""
|
|
3753
|
-
|
|
4494
|
+
Unregister all the services registered by a particular plugin.
|
|
3754
4495
|
"""
|
|
4496
|
+
class ServicePriority:
|
|
4497
|
+
"""
|
|
4498
|
+
Represents various priorities of a provider.
|
|
4499
|
+
"""
|
|
4500
|
+
HIGH: typing.ClassVar[ServicePriority] # value = <ServicePriority.HIGH: 3>
|
|
4501
|
+
HIGHEST: typing.ClassVar[ServicePriority] # value = <ServicePriority.HIGHEST: 4>
|
|
4502
|
+
LOW: typing.ClassVar[ServicePriority] # value = <ServicePriority.LOW: 1>
|
|
4503
|
+
LOWEST: typing.ClassVar[ServicePriority] # value = <ServicePriority.LOWEST: 0>
|
|
4504
|
+
NORMAL: typing.ClassVar[ServicePriority] # value = <ServicePriority.NORMAL: 2>
|
|
4505
|
+
__members__: typing.ClassVar[dict[str, ServicePriority]] # value = {'LOWEST': <ServicePriority.LOWEST: 0>, 'LOW': <ServicePriority.LOW: 1>, 'NORMAL': <ServicePriority.NORMAL: 2>, 'HIGH': <ServicePriority.HIGH: 3>, 'HIGHEST': <ServicePriority.HIGHEST: 4>}
|
|
4506
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
4507
|
+
...
|
|
4508
|
+
def __getstate__(self) -> int:
|
|
4509
|
+
...
|
|
4510
|
+
def __hash__(self) -> int:
|
|
4511
|
+
...
|
|
4512
|
+
def __index__(self) -> int:
|
|
4513
|
+
...
|
|
4514
|
+
def __init__(self, value: int) -> None:
|
|
4515
|
+
...
|
|
4516
|
+
def __int__(self) -> int:
|
|
4517
|
+
...
|
|
4518
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
4519
|
+
...
|
|
4520
|
+
def __repr__(self) -> str:
|
|
4521
|
+
...
|
|
4522
|
+
def __setstate__(self, state: int) -> None:
|
|
4523
|
+
...
|
|
4524
|
+
def __str__(self) -> str:
|
|
4525
|
+
...
|
|
4526
|
+
@property
|
|
4527
|
+
def name(self) -> str:
|
|
4528
|
+
...
|
|
4529
|
+
@property
|
|
4530
|
+
def value(self) -> int:
|
|
4531
|
+
...
|
|
4532
|
+
class Skin:
|
|
4533
|
+
"""
|
|
4534
|
+
Represents a player skin.
|
|
4535
|
+
"""
|
|
4536
|
+
def __init__(self, id: str, image: numpy.ndarray[numpy.uint8], cape_id: str | None = None, cape_image: numpy.ndarray[numpy.uint8] | None = None) -> None:
|
|
4537
|
+
...
|
|
3755
4538
|
@property
|
|
3756
4539
|
def cape_id(self) -> str | None:
|
|
3757
4540
|
"""
|
|
3758
4541
|
Get the Cape ID.
|
|
3759
4542
|
"""
|
|
3760
4543
|
@property
|
|
3761
|
-
def
|
|
4544
|
+
def cape_image(self) -> numpy.ndarray[numpy.uint8]:
|
|
3762
4545
|
"""
|
|
3763
|
-
Get the
|
|
4546
|
+
Get the Cape image.
|
|
3764
4547
|
"""
|
|
3765
4548
|
@property
|
|
3766
|
-
def
|
|
4549
|
+
def id(self) -> str:
|
|
3767
4550
|
"""
|
|
3768
4551
|
Get the Skin ID.
|
|
3769
4552
|
"""
|
|
4553
|
+
@property
|
|
4554
|
+
def image(self) -> numpy.ndarray[numpy.uint8]:
|
|
4555
|
+
"""
|
|
4556
|
+
Get the Skin image.
|
|
4557
|
+
"""
|
|
3770
4558
|
class Slider:
|
|
3771
4559
|
"""
|
|
3772
4560
|
Represents a slider with a label.
|
|
3773
4561
|
"""
|
|
3774
|
-
@staticmethod
|
|
3775
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3776
|
-
...
|
|
3777
4562
|
def __init__(self, label: str | Translatable = '', min: float = 0, max: float = 100, step: float = 20, default_value: float | None = None) -> None:
|
|
3778
4563
|
...
|
|
3779
4564
|
@property
|
|
@@ -3820,9 +4605,6 @@ class SocketAddress:
|
|
|
3820
4605
|
"""
|
|
3821
4606
|
Represents an IP Socket Address (hostname + port number).
|
|
3822
4607
|
"""
|
|
3823
|
-
@staticmethod
|
|
3824
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3825
|
-
...
|
|
3826
4608
|
@typing.overload
|
|
3827
4609
|
def __init__(self) -> None:
|
|
3828
4610
|
...
|
|
@@ -3843,27 +4625,10 @@ class SocketAddress:
|
|
|
3843
4625
|
"""
|
|
3844
4626
|
Gets the port number.
|
|
3845
4627
|
"""
|
|
3846
|
-
class SpawnParticleEffectPacket(Packet):
|
|
3847
|
-
"""
|
|
3848
|
-
Represents a packet for spawning a particle effect.
|
|
3849
|
-
"""
|
|
3850
|
-
actor_id: int
|
|
3851
|
-
dimension_id: int
|
|
3852
|
-
effect_name: str
|
|
3853
|
-
molang_variables_json: str | None
|
|
3854
|
-
position: Vector
|
|
3855
|
-
@staticmethod
|
|
3856
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3857
|
-
...
|
|
3858
|
-
def __init__(self) -> None:
|
|
3859
|
-
...
|
|
3860
4628
|
class StepSlider:
|
|
3861
4629
|
"""
|
|
3862
4630
|
Represents a step slider with a set of predefined options.
|
|
3863
4631
|
"""
|
|
3864
|
-
@staticmethod
|
|
3865
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3866
|
-
...
|
|
3867
4632
|
def __init__(self, label: str | Translatable = '', options: list[str] | None = None, default_index: int | None = None) -> None:
|
|
3868
4633
|
...
|
|
3869
4634
|
def add_option(self, option: str) -> Dropdown:
|
|
@@ -3898,9 +4663,6 @@ class Task:
|
|
|
3898
4663
|
"""
|
|
3899
4664
|
Represents a task being executed by the scheduler
|
|
3900
4665
|
"""
|
|
3901
|
-
@staticmethod
|
|
3902
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3903
|
-
...
|
|
3904
4666
|
def cancel(self) -> None:
|
|
3905
4667
|
"""
|
|
3906
4668
|
Attempts to cancel this task.
|
|
@@ -3929,9 +4691,6 @@ class TextInput:
|
|
|
3929
4691
|
"""
|
|
3930
4692
|
Represents a text input field.
|
|
3931
4693
|
"""
|
|
3932
|
-
@staticmethod
|
|
3933
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3934
|
-
...
|
|
3935
4694
|
def __init__(self, label: str | Translatable = '', placeholder: str | Translatable = '', default_value: str | None = None) -> None:
|
|
3936
4695
|
...
|
|
3937
4696
|
@property
|
|
@@ -3962,9 +4721,6 @@ class ThunderChangeEvent(WeatherEvent, Cancellable):
|
|
|
3962
4721
|
"""
|
|
3963
4722
|
Called when the thunder state in a world is changing.
|
|
3964
4723
|
"""
|
|
3965
|
-
@staticmethod
|
|
3966
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3967
|
-
...
|
|
3968
4724
|
@property
|
|
3969
4725
|
def to_thunder_state(self) -> bool:
|
|
3970
4726
|
"""
|
|
@@ -3974,9 +4730,6 @@ class Toggle:
|
|
|
3974
4730
|
"""
|
|
3975
4731
|
Represents a toggle button with a label.
|
|
3976
4732
|
"""
|
|
3977
|
-
@staticmethod
|
|
3978
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3979
|
-
...
|
|
3980
4733
|
def __init__(self, label: str | Translatable = '', default_value: bool = False) -> None:
|
|
3981
4734
|
...
|
|
3982
4735
|
@property
|
|
@@ -3999,9 +4752,6 @@ class Translatable:
|
|
|
3999
4752
|
"""
|
|
4000
4753
|
Represents an object with a text representation that can be translated by the Minecraft client.
|
|
4001
4754
|
"""
|
|
4002
|
-
@staticmethod
|
|
4003
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
4004
|
-
...
|
|
4005
4755
|
def __init__(self, text: str, params: list[str] | None = None) -> None:
|
|
4006
4756
|
...
|
|
4007
4757
|
@property
|
|
@@ -4018,9 +4768,6 @@ class Vector:
|
|
|
4018
4768
|
"""
|
|
4019
4769
|
Represents a 3-dimensional vector.
|
|
4020
4770
|
"""
|
|
4021
|
-
@staticmethod
|
|
4022
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
4023
|
-
...
|
|
4024
4771
|
@typing.overload
|
|
4025
4772
|
def __add__(self, arg0: Vector) -> Vector:
|
|
4026
4773
|
...
|
|
@@ -4117,9 +4864,6 @@ class WeatherChangeEvent(WeatherEvent, Cancellable):
|
|
|
4117
4864
|
"""
|
|
4118
4865
|
Called when the weather (rain) state in a world is changing.
|
|
4119
4866
|
"""
|
|
4120
|
-
@staticmethod
|
|
4121
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
4122
|
-
...
|
|
4123
4867
|
@property
|
|
4124
4868
|
def to_weather_state(self) -> bool:
|
|
4125
4869
|
"""
|
|
@@ -4129,9 +4873,6 @@ class WeatherEvent(Event):
|
|
|
4129
4873
|
"""
|
|
4130
4874
|
Represents a weather-related event
|
|
4131
4875
|
"""
|
|
4132
|
-
@staticmethod
|
|
4133
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
4134
|
-
...
|
|
4135
4876
|
@property
|
|
4136
4877
|
def level(self) -> Level:
|
|
4137
4878
|
"""
|