levistone 0.6.1__1-cp39-cp39-win_amd64.whl → 0.9.3__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 +56 -52
- endstone/_internal/bootstrap/linux.py +24 -5
- endstone/_internal/bootstrap/windows.py +19 -167
- endstone/_internal/endstone_python.cp39-win_amd64.pyd +0 -0
- endstone/_internal/endstone_python.pyi +968 -451
- endstone/_internal/metrics.py +2 -2
- endstone/_internal/plugin_loader.py +11 -4
- endstone/_internal/version.py +2 -2
- endstone/command.py +8 -2
- endstone/config/endstone.toml +4 -0
- endstone/enchantments.py +3 -0
- endstone/event.py +24 -0
- endstone/form.py +15 -1
- endstone/inventory.py +20 -2
- endstone/map.py +3 -0
- endstone/plugin.py +7 -2
- endstone_runtime.dll +0 -0
- endstone_runtime.pdb +0 -0
- {levistone-0.6.1.dist-info → levistone-0.9.3.dist-info}/METADATA +4 -2
- levistone-0.9.3.dist-info/RECORD +40 -0
- {levistone-0.6.1.dist-info → levistone-0.9.3.dist-info}/WHEEL +1 -1
- levistone-0.9.3.dist-info/licenses/LICENSE +201 -0
- manifest.json +1 -1
- endstone/_internal/endstone_python.pyd +0 -0
- endstone/network.py +0 -3
- levistone-0.6.1.dist-info/RECORD +0 -37
- {levistone-0.6.1.dist-info → levistone-0.9.3.dist-info}/entry_points.txt +0 -0
- {levistone-0.6.1.dist-info → levistone-0.9.3.dist-info}/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ 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', 'Dimension', 'DisplaySlot', 'Dropdown', 'Event', 'EventPriority', 'GameMode', 'Inventory', 'IpBanEntry', 'IpBanList', 'ItemStack', 'Label', 'Language', 'Level', 'Location', 'Logger', 'MessageForm', 'Mob', 'MobEvent', 'ModalForm', 'Objective', 'ObjectiveSortOrder', 'OfflinePlayer', '
|
|
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', 'ChunkEvent', 'ChunkLoadEvent', 'ChunkUnloadEvent', 'ColorFormat', 'Command', 'CommandExecutor', 'CommandSender', 'CommandSenderWrapper', 'ConsoleCommandSender', 'Criteria', 'DamageSource', 'Dimension', 'DimensionEvent', 'DisplaySlot', 'Divider', 'Dropdown', 'Enchantment', 'EnchantmentRegistry', 'EquipmentSlot', 'Event', 'EventPriority', 'GameMode', 'Header', 'Inventory', 'IpBanEntry', 'IpBanList', 'ItemFactory', 'ItemMeta', 'ItemRegistry', 'ItemStack', 'ItemType', 'Label', 'Language', 'Level', 'LevelEvent', 'Location', 'Logger', 'MapCanvas', 'MapMeta', 'MapRenderer', 'MapView', 'MessageForm', 'Mob', 'MobEvent', 'ModalForm', 'NamespacedKey', 'Objective', 'ObjectiveSortOrder', 'OfflinePlayer', 'PacketReceiveEvent', 'PacketSendEvent', 'Permissible', 'Permission', 'PermissionAttachment', 'PermissionAttachmentInfo', 'PermissionDefault', 'Player', 'PlayerBanEntry', 'PlayerBanList', 'PlayerChatEvent', 'PlayerCommandEvent', 'PlayerDeathEvent', 'PlayerDropItemEvent', 'PlayerEmoteEvent', 'PlayerEvent', 'PlayerGameModeChangeEvent', 'PlayerInteractActorEvent', 'PlayerInteractEvent', 'PlayerInventory', 'PlayerItemConsumeEvent', 'PlayerJoinEvent', 'PlayerJumpEvent', 'PlayerKickEvent', 'PlayerLoginEvent', 'PlayerMoveEvent', 'PlayerPickupItemEvent', 'PlayerQuitEvent', 'PlayerRespawnEvent', 'PlayerTeleportEvent', 'Plugin', 'PluginCommand', 'PluginDescription', 'PluginDisableEvent', 'PluginEnableEvent', 'PluginLoadOrder', 'PluginLoader', 'PluginManager', 'Position', 'ProxiedCommandSender', '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.
|
|
@@ -13,9 +13,6 @@ class ActionForm:
|
|
|
13
13
|
"""
|
|
14
14
|
Represents a button with text and an optional icon.
|
|
15
15
|
"""
|
|
16
|
-
@staticmethod
|
|
17
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
18
|
-
...
|
|
19
16
|
def __init__(self, text: str | Translatable = '', icon: str | None = None, on_click: typing.Callable[[Player], None] = None) -> None:
|
|
20
17
|
...
|
|
21
18
|
@property
|
|
@@ -42,23 +39,24 @@ class ActionForm:
|
|
|
42
39
|
@text.setter
|
|
43
40
|
def text(self, arg1: str | Translatable) -> ActionForm.Button:
|
|
44
41
|
...
|
|
45
|
-
|
|
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:
|
|
42
|
+
def __init__(self, title: str | Translatable = '', content: str | Translatable = '', buttons: list[ActionForm.Button | Divider | Header | Label] | None = None, on_submit: typing.Callable[[Player, int], None] = None, on_close: typing.Callable[[Player], None] = None) -> None:
|
|
49
43
|
...
|
|
50
44
|
def add_button(self, text: str | Translatable, icon: str | None = None, on_click: typing.Callable[[Player], None] = None) -> ActionForm:
|
|
51
45
|
"""
|
|
52
46
|
Adds a button to the form.
|
|
53
47
|
"""
|
|
54
|
-
|
|
55
|
-
def buttons(self) -> list[ActionForm.Button]:
|
|
48
|
+
def add_divider(self) -> ActionForm:
|
|
56
49
|
"""
|
|
57
|
-
|
|
50
|
+
Adds a divider to the form.
|
|
51
|
+
"""
|
|
52
|
+
def add_header(self, text: str | Translatable) -> ActionForm:
|
|
53
|
+
"""
|
|
54
|
+
Adds a header to the form.
|
|
55
|
+
"""
|
|
56
|
+
def add_label(self, text: str | Translatable) -> ActionForm:
|
|
57
|
+
"""
|
|
58
|
+
Adds a label to the form.
|
|
58
59
|
"""
|
|
59
|
-
@buttons.setter
|
|
60
|
-
def buttons(self, arg1: list[ActionForm.Button]) -> ActionForm:
|
|
61
|
-
...
|
|
62
60
|
@property
|
|
63
61
|
def content(self) -> str | Translatable:
|
|
64
62
|
"""
|
|
@@ -68,6 +66,14 @@ class ActionForm:
|
|
|
68
66
|
def content(self, arg1: str | Translatable) -> ActionForm:
|
|
69
67
|
...
|
|
70
68
|
@property
|
|
69
|
+
def controls(self) -> list[ActionForm.Button | Divider | Header | Label]:
|
|
70
|
+
"""
|
|
71
|
+
Gets or sets the controls of the action form.
|
|
72
|
+
"""
|
|
73
|
+
@controls.setter
|
|
74
|
+
def controls(self, arg1: list[ActionForm.Button | Divider | Header | Label]) -> ActionForm:
|
|
75
|
+
...
|
|
76
|
+
@property
|
|
71
77
|
def on_close(self) -> typing.Callable[[Player], None]:
|
|
72
78
|
"""
|
|
73
79
|
Gets or sets the on close callback.
|
|
@@ -95,13 +101,14 @@ class Actor(CommandSender):
|
|
|
95
101
|
"""
|
|
96
102
|
Represents a base actor in the level.
|
|
97
103
|
"""
|
|
98
|
-
@staticmethod
|
|
99
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
100
|
-
...
|
|
101
104
|
def add_scoreboard_tag(self, tag: str) -> bool:
|
|
102
105
|
"""
|
|
103
106
|
Adds a tag to this actor.
|
|
104
107
|
"""
|
|
108
|
+
def remove(self) -> None:
|
|
109
|
+
"""
|
|
110
|
+
Remove this actor from the level.
|
|
111
|
+
"""
|
|
105
112
|
def remove_scoreboard_tag(self, tag: str) -> bool:
|
|
106
113
|
"""
|
|
107
114
|
Removes a given tag from this actor.
|
|
@@ -175,6 +182,11 @@ class Actor(CommandSender):
|
|
|
175
182
|
Returns true if the actor is supported by a block, i.e. on ground.
|
|
176
183
|
"""
|
|
177
184
|
@property
|
|
185
|
+
def is_valid(self) -> bool:
|
|
186
|
+
"""
|
|
187
|
+
Returns false if the entity has died, been despawned for some other reason, or has not been added to the level.
|
|
188
|
+
"""
|
|
189
|
+
@property
|
|
178
190
|
def level(self) -> Level:
|
|
179
191
|
"""
|
|
180
192
|
Gets the current Level this actor resides in.
|
|
@@ -229,9 +241,6 @@ class ActorDamageEvent(MobEvent, Cancellable):
|
|
|
229
241
|
"""
|
|
230
242
|
Called when an Actor is damaged.
|
|
231
243
|
"""
|
|
232
|
-
@staticmethod
|
|
233
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
234
|
-
...
|
|
235
244
|
@property
|
|
236
245
|
def damage(self) -> float:
|
|
237
246
|
"""
|
|
@@ -249,9 +258,6 @@ class ActorDeathEvent(MobEvent):
|
|
|
249
258
|
"""
|
|
250
259
|
Called when an Actor dies.
|
|
251
260
|
"""
|
|
252
|
-
@staticmethod
|
|
253
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
254
|
-
...
|
|
255
261
|
@property
|
|
256
262
|
def damage_source(self) -> DamageSource:
|
|
257
263
|
"""
|
|
@@ -261,9 +267,6 @@ class ActorEvent(Event):
|
|
|
261
267
|
"""
|
|
262
268
|
Represents an Actor-related event.
|
|
263
269
|
"""
|
|
264
|
-
@staticmethod
|
|
265
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
266
|
-
...
|
|
267
270
|
@property
|
|
268
271
|
def actor(self) -> Actor:
|
|
269
272
|
"""
|
|
@@ -273,9 +276,6 @@ class ActorExplodeEvent(ActorEvent, Cancellable):
|
|
|
273
276
|
"""
|
|
274
277
|
Called when an Actor explodes.
|
|
275
278
|
"""
|
|
276
|
-
@staticmethod
|
|
277
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
278
|
-
...
|
|
279
279
|
@property
|
|
280
280
|
def block_list(self) -> list[Block]:
|
|
281
281
|
"""
|
|
@@ -293,9 +293,6 @@ class ActorKnockbackEvent(MobEvent, Cancellable):
|
|
|
293
293
|
"""
|
|
294
294
|
Called when a living entity receives knockback.
|
|
295
295
|
"""
|
|
296
|
-
@staticmethod
|
|
297
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
298
|
-
...
|
|
299
296
|
@property
|
|
300
297
|
def knockback(self) -> Vector:
|
|
301
298
|
"""
|
|
@@ -313,23 +310,14 @@ class ActorRemoveEvent(ActorEvent):
|
|
|
313
310
|
"""
|
|
314
311
|
Called when an Actor is removed.
|
|
315
312
|
"""
|
|
316
|
-
@staticmethod
|
|
317
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
318
|
-
...
|
|
319
313
|
class ActorSpawnEvent(ActorEvent, Cancellable):
|
|
320
314
|
"""
|
|
321
315
|
Called when an Actor is spawned into a world.
|
|
322
316
|
"""
|
|
323
|
-
@staticmethod
|
|
324
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
325
|
-
...
|
|
326
317
|
class ActorTeleportEvent(ActorEvent, Cancellable):
|
|
327
318
|
"""
|
|
328
319
|
Called when a non-player entity is teleported from one location to another.
|
|
329
320
|
"""
|
|
330
|
-
@staticmethod
|
|
331
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
332
|
-
...
|
|
333
321
|
@property
|
|
334
322
|
def from_location(self) -> Location:
|
|
335
323
|
"""
|
|
@@ -350,9 +338,6 @@ class BanEntry:
|
|
|
350
338
|
"""
|
|
351
339
|
A single entry from a ban list.
|
|
352
340
|
"""
|
|
353
|
-
@staticmethod
|
|
354
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
355
|
-
...
|
|
356
341
|
@property
|
|
357
342
|
def created(self) -> datetime.datetime:
|
|
358
343
|
"""
|
|
@@ -395,9 +380,6 @@ class BarColor:
|
|
|
395
380
|
WHITE: typing.ClassVar[BarColor] # value = <BarColor.WHITE: 7>
|
|
396
381
|
YELLOW: typing.ClassVar[BarColor] # value = <BarColor.YELLOW: 4>
|
|
397
382
|
__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>}
|
|
398
|
-
@staticmethod
|
|
399
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
400
|
-
...
|
|
401
383
|
def __eq__(self, other: typing.Any) -> bool:
|
|
402
384
|
...
|
|
403
385
|
def __getstate__(self) -> int:
|
|
@@ -427,9 +409,6 @@ class BarColor:
|
|
|
427
409
|
class BarFlag:
|
|
428
410
|
DARKEN_SKY: typing.ClassVar[BarFlag] # value = <BarFlag.DARKEN_SKY: 0>
|
|
429
411
|
__members__: typing.ClassVar[dict[str, BarFlag]] # value = {'DARKEN_SKY': <BarFlag.DARKEN_SKY: 0>}
|
|
430
|
-
@staticmethod
|
|
431
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
432
|
-
...
|
|
433
412
|
def __eq__(self, other: typing.Any) -> bool:
|
|
434
413
|
...
|
|
435
414
|
def __getstate__(self) -> int:
|
|
@@ -463,9 +442,6 @@ class BarStyle:
|
|
|
463
442
|
SEGMENTED_6: typing.ClassVar[BarStyle] # value = <BarStyle.SEGMENTED_6: 1>
|
|
464
443
|
SOLID: typing.ClassVar[BarStyle] # value = <BarStyle.SOLID: 0>
|
|
465
444
|
__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>}
|
|
466
|
-
@staticmethod
|
|
467
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
468
|
-
...
|
|
469
445
|
def __eq__(self, other: typing.Any) -> bool:
|
|
470
446
|
...
|
|
471
447
|
def __getstate__(self) -> int:
|
|
@@ -496,9 +472,6 @@ class Block:
|
|
|
496
472
|
"""
|
|
497
473
|
Represents a block.
|
|
498
474
|
"""
|
|
499
|
-
@staticmethod
|
|
500
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
501
|
-
...
|
|
502
475
|
def __str__(self) -> str:
|
|
503
476
|
...
|
|
504
477
|
def capture_state(self) -> BlockState:
|
|
@@ -526,11 +499,8 @@ class Block:
|
|
|
526
499
|
@property
|
|
527
500
|
def data(self) -> BlockData:
|
|
528
501
|
"""
|
|
529
|
-
Gets
|
|
502
|
+
Gets the complete data for this block
|
|
530
503
|
"""
|
|
531
|
-
@data.setter
|
|
532
|
-
def data(self, arg1: BlockData) -> None:
|
|
533
|
-
...
|
|
534
504
|
@property
|
|
535
505
|
def dimension(self) -> Dimension:
|
|
536
506
|
"""
|
|
@@ -546,9 +516,6 @@ class Block:
|
|
|
546
516
|
"""
|
|
547
517
|
Gets or sets the type of the block.
|
|
548
518
|
"""
|
|
549
|
-
@type.setter
|
|
550
|
-
def type(self, arg1: str) -> None:
|
|
551
|
-
...
|
|
552
519
|
@property
|
|
553
520
|
def x(self) -> int:
|
|
554
521
|
"""
|
|
@@ -568,9 +535,6 @@ class BlockBreakEvent(BlockEvent, Cancellable):
|
|
|
568
535
|
"""
|
|
569
536
|
Called when a block is broken by a player.
|
|
570
537
|
"""
|
|
571
|
-
@staticmethod
|
|
572
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
573
|
-
...
|
|
574
538
|
@property
|
|
575
539
|
def player(self) -> Player:
|
|
576
540
|
"""
|
|
@@ -580,9 +544,6 @@ class BlockData:
|
|
|
580
544
|
"""
|
|
581
545
|
Represents the data related to a live block
|
|
582
546
|
"""
|
|
583
|
-
@staticmethod
|
|
584
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
585
|
-
...
|
|
586
547
|
def __str__(self) -> str:
|
|
587
548
|
...
|
|
588
549
|
@property
|
|
@@ -591,6 +552,11 @@ class BlockData:
|
|
|
591
552
|
Gets the block states for this block.
|
|
592
553
|
"""
|
|
593
554
|
@property
|
|
555
|
+
def runtime_id(self) -> int:
|
|
556
|
+
"""
|
|
557
|
+
Gets the runtime id for this block.
|
|
558
|
+
"""
|
|
559
|
+
@property
|
|
594
560
|
def type(self) -> str:
|
|
595
561
|
"""
|
|
596
562
|
Get the block type represented by this block data.
|
|
@@ -599,9 +565,6 @@ class BlockEvent(Event):
|
|
|
599
565
|
"""
|
|
600
566
|
Represents an Block-related event
|
|
601
567
|
"""
|
|
602
|
-
@staticmethod
|
|
603
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
604
|
-
...
|
|
605
568
|
@property
|
|
606
569
|
def block(self) -> Block:
|
|
607
570
|
"""
|
|
@@ -615,9 +578,6 @@ class BlockFace:
|
|
|
615
578
|
UP: typing.ClassVar[BlockFace] # value = <BlockFace.UP: 1>
|
|
616
579
|
WEST: typing.ClassVar[BlockFace] # value = <BlockFace.WEST: 4>
|
|
617
580
|
__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>}
|
|
618
|
-
@staticmethod
|
|
619
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
620
|
-
...
|
|
621
581
|
def __eq__(self, other: typing.Any) -> bool:
|
|
622
582
|
...
|
|
623
583
|
def __getstate__(self) -> int:
|
|
@@ -648,9 +608,6 @@ class BlockPlaceEvent(BlockEvent, Cancellable):
|
|
|
648
608
|
"""
|
|
649
609
|
Called when a block is placed by a player.
|
|
650
610
|
"""
|
|
651
|
-
@staticmethod
|
|
652
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
653
|
-
...
|
|
654
611
|
@property
|
|
655
612
|
def block_against(self) -> Block:
|
|
656
613
|
"""
|
|
@@ -675,9 +632,6 @@ class BlockState:
|
|
|
675
632
|
"""
|
|
676
633
|
Represents a captured state of a block, which will not update automatically.
|
|
677
634
|
"""
|
|
678
|
-
@staticmethod
|
|
679
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
680
|
-
...
|
|
681
635
|
def __str__(self) -> str:
|
|
682
636
|
...
|
|
683
637
|
def update(self, force: bool = False, apply_physics: bool = True) -> bool:
|
|
@@ -734,9 +688,6 @@ class BossBar:
|
|
|
734
688
|
"""
|
|
735
689
|
Represents a boss bar that is displayed to players.
|
|
736
690
|
"""
|
|
737
|
-
@staticmethod
|
|
738
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
739
|
-
...
|
|
740
691
|
def add_flag(self, flag: BarFlag) -> None:
|
|
741
692
|
"""
|
|
742
693
|
Adds an optional flag to this boss bar.
|
|
@@ -810,16 +761,13 @@ class BroadcastMessageEvent(ServerEvent, Cancellable):
|
|
|
810
761
|
"""
|
|
811
762
|
Event triggered for server broadcast messages such as from Server.broadcast
|
|
812
763
|
"""
|
|
813
|
-
@staticmethod
|
|
814
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
815
|
-
...
|
|
816
764
|
@property
|
|
817
|
-
def message(self) -> str:
|
|
765
|
+
def message(self) -> str | Translatable:
|
|
818
766
|
"""
|
|
819
767
|
Gets or sets the message to broadcast.
|
|
820
768
|
"""
|
|
821
769
|
@message.setter
|
|
822
|
-
def message(self, arg1: str) -> None:
|
|
770
|
+
def message(self, arg1: str | Translatable) -> None:
|
|
823
771
|
...
|
|
824
772
|
@property
|
|
825
773
|
def recipients(self) -> set[CommandSender]:
|
|
@@ -830,9 +778,6 @@ class Cancellable:
|
|
|
830
778
|
"""
|
|
831
779
|
Represents an event that may be cancelled by a plugin or the server.
|
|
832
780
|
"""
|
|
833
|
-
@staticmethod
|
|
834
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
835
|
-
...
|
|
836
781
|
def cancel(self) -> None:
|
|
837
782
|
"""
|
|
838
783
|
Cancel this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
|
|
@@ -857,8 +802,9 @@ class Chunk:
|
|
|
857
802
|
"""
|
|
858
803
|
Represents a chunk of blocks.
|
|
859
804
|
"""
|
|
860
|
-
|
|
861
|
-
|
|
805
|
+
def __repr__(self) -> str:
|
|
806
|
+
...
|
|
807
|
+
def __str__(self) -> str:
|
|
862
808
|
...
|
|
863
809
|
@property
|
|
864
810
|
def dimension(self) -> Dimension:
|
|
@@ -880,6 +826,23 @@ class Chunk:
|
|
|
880
826
|
"""
|
|
881
827
|
Gets the Z-coordinate of this chunk
|
|
882
828
|
"""
|
|
829
|
+
class ChunkEvent(DimensionEvent):
|
|
830
|
+
"""
|
|
831
|
+
Represents a Chunk related event
|
|
832
|
+
"""
|
|
833
|
+
@property
|
|
834
|
+
def chunk(self) -> Chunk:
|
|
835
|
+
"""
|
|
836
|
+
Gets the chunk being loaded/unloaded
|
|
837
|
+
"""
|
|
838
|
+
class ChunkLoadEvent(ChunkEvent):
|
|
839
|
+
"""
|
|
840
|
+
Called when a chunk is loaded
|
|
841
|
+
"""
|
|
842
|
+
class ChunkUnloadEvent(ChunkEvent):
|
|
843
|
+
"""
|
|
844
|
+
Called when a chunk is unloaded
|
|
845
|
+
"""
|
|
883
846
|
class ColorFormat:
|
|
884
847
|
"""
|
|
885
848
|
All supported color and format codes.
|
|
@@ -916,16 +879,10 @@ class ColorFormat:
|
|
|
916
879
|
RESET: typing.ClassVar[str] = '§r'
|
|
917
880
|
WHITE: typing.ClassVar[str] = '§f'
|
|
918
881
|
YELLOW: typing.ClassVar[str] = '§e'
|
|
919
|
-
@staticmethod
|
|
920
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
921
|
-
...
|
|
922
882
|
class Command:
|
|
923
883
|
"""
|
|
924
884
|
Represents a Command, which executes various tasks upon user input
|
|
925
885
|
"""
|
|
926
|
-
@staticmethod
|
|
927
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
928
|
-
...
|
|
929
886
|
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:
|
|
930
887
|
...
|
|
931
888
|
def execute(self, sender: CommandSender, args: list[str]) -> bool:
|
|
@@ -989,9 +946,6 @@ class CommandExecutor:
|
|
|
989
946
|
"""
|
|
990
947
|
Represents a class which contains a single method for executing commands
|
|
991
948
|
"""
|
|
992
|
-
@staticmethod
|
|
993
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
994
|
-
...
|
|
995
949
|
def __init__(self) -> None:
|
|
996
950
|
...
|
|
997
951
|
def on_command(self, sender: CommandSender, command: Command, args: list[str]) -> bool:
|
|
@@ -1002,9 +956,6 @@ class CommandSender(Permissible):
|
|
|
1002
956
|
"""
|
|
1003
957
|
Represents a command sender.
|
|
1004
958
|
"""
|
|
1005
|
-
@staticmethod
|
|
1006
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1007
|
-
...
|
|
1008
959
|
def send_error_message(self, message: str | Translatable) -> None:
|
|
1009
960
|
"""
|
|
1010
961
|
Sends this sender an error message
|
|
@@ -1027,18 +978,12 @@ class CommandSenderWrapper(CommandSender):
|
|
|
1027
978
|
"""
|
|
1028
979
|
Represents a wrapper that forwards commands to the wrapped CommandSender and captures its output
|
|
1029
980
|
"""
|
|
1030
|
-
@staticmethod
|
|
1031
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1032
|
-
...
|
|
1033
981
|
def __init__(self, sender: CommandSender, on_message: typing.Callable[[str | Translatable], None] = None, on_error: typing.Callable[[str | Translatable], None] = None) -> None:
|
|
1034
982
|
...
|
|
1035
983
|
class ConsoleCommandSender(CommandSender):
|
|
1036
984
|
"""
|
|
1037
985
|
Represents a console command sender.
|
|
1038
986
|
"""
|
|
1039
|
-
@staticmethod
|
|
1040
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1041
|
-
...
|
|
1042
987
|
class Criteria:
|
|
1043
988
|
"""
|
|
1044
989
|
Represents a scoreboard criteria.
|
|
@@ -1049,9 +994,6 @@ class Criteria:
|
|
|
1049
994
|
"""
|
|
1050
995
|
DUMMY: typing.ClassVar[Criteria.Type] # value = <Type.DUMMY: 0>
|
|
1051
996
|
__members__: typing.ClassVar[dict[str, Criteria.Type]] # value = {'DUMMY': <Type.DUMMY: 0>}
|
|
1052
|
-
@staticmethod
|
|
1053
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1054
|
-
...
|
|
1055
997
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1056
998
|
...
|
|
1057
999
|
def __getstate__(self) -> int:
|
|
@@ -1079,9 +1021,6 @@ class Criteria:
|
|
|
1079
1021
|
def value(self) -> int:
|
|
1080
1022
|
...
|
|
1081
1023
|
DUMMY: typing.ClassVar[Criteria.Type] # value = <Type.DUMMY: 0>
|
|
1082
|
-
@staticmethod
|
|
1083
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1084
|
-
...
|
|
1085
1024
|
@property
|
|
1086
1025
|
def default_render_type(self) -> RenderType:
|
|
1087
1026
|
...
|
|
@@ -1095,9 +1034,6 @@ class DamageSource:
|
|
|
1095
1034
|
"""
|
|
1096
1035
|
Represents a source of damage.
|
|
1097
1036
|
"""
|
|
1098
|
-
@staticmethod
|
|
1099
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1100
|
-
...
|
|
1101
1037
|
def __str__(self) -> str:
|
|
1102
1038
|
...
|
|
1103
1039
|
@property
|
|
@@ -1133,9 +1069,6 @@ class Dimension:
|
|
|
1133
1069
|
OVERWORLD: typing.ClassVar[Dimension.Type] # value = <Type.OVERWORLD: 0>
|
|
1134
1070
|
THE_END: typing.ClassVar[Dimension.Type] # value = <Type.THE_END: 2>
|
|
1135
1071
|
__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>}
|
|
1136
|
-
@staticmethod
|
|
1137
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1138
|
-
...
|
|
1139
1072
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1140
1073
|
...
|
|
1141
1074
|
def __getstate__(self) -> int:
|
|
@@ -1166,9 +1099,6 @@ class Dimension:
|
|
|
1166
1099
|
NETHER: typing.ClassVar[Dimension.Type] # value = <Type.NETHER: 1>
|
|
1167
1100
|
OVERWORLD: typing.ClassVar[Dimension.Type] # value = <Type.OVERWORLD: 0>
|
|
1168
1101
|
THE_END: typing.ClassVar[Dimension.Type] # value = <Type.THE_END: 2>
|
|
1169
|
-
@staticmethod
|
|
1170
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1171
|
-
...
|
|
1172
1102
|
@typing.overload
|
|
1173
1103
|
def get_block_at(self, location: Location) -> Block:
|
|
1174
1104
|
"""
|
|
@@ -1179,6 +1109,20 @@ class Dimension:
|
|
|
1179
1109
|
"""
|
|
1180
1110
|
Gets the Block at the given coordinates
|
|
1181
1111
|
"""
|
|
1112
|
+
@typing.overload
|
|
1113
|
+
def get_highest_block_at(self, location: Location) -> Block:
|
|
1114
|
+
"""
|
|
1115
|
+
Gets the highest non-empty (impassable) block at the given Location.
|
|
1116
|
+
"""
|
|
1117
|
+
@typing.overload
|
|
1118
|
+
def get_highest_block_at(self, x: int, z: int) -> Block:
|
|
1119
|
+
"""
|
|
1120
|
+
Gets the highest non-empty (impassable) block at the given coordinates.
|
|
1121
|
+
"""
|
|
1122
|
+
def get_highest_block_y_at(self, x: int, z: int) -> int:
|
|
1123
|
+
"""
|
|
1124
|
+
Gets the highest non-empty (impassable) coordinate at the given coordinates.
|
|
1125
|
+
"""
|
|
1182
1126
|
@property
|
|
1183
1127
|
def level(self) -> Level:
|
|
1184
1128
|
"""
|
|
@@ -1199,6 +1143,15 @@ class Dimension:
|
|
|
1199
1143
|
"""
|
|
1200
1144
|
Gets the type of this dimension
|
|
1201
1145
|
"""
|
|
1146
|
+
class DimensionEvent(LevelEvent):
|
|
1147
|
+
"""
|
|
1148
|
+
Represents events within a dimension
|
|
1149
|
+
"""
|
|
1150
|
+
@property
|
|
1151
|
+
def dimension(self) -> Dimension:
|
|
1152
|
+
"""
|
|
1153
|
+
Gets the dimension primarily involved with this event
|
|
1154
|
+
"""
|
|
1202
1155
|
class DisplaySlot:
|
|
1203
1156
|
"""
|
|
1204
1157
|
Locations for displaying objectives to the player
|
|
@@ -1207,9 +1160,6 @@ class DisplaySlot:
|
|
|
1207
1160
|
PLAYER_LIST: typing.ClassVar[DisplaySlot] # value = <DisplaySlot.PLAYER_LIST: 1>
|
|
1208
1161
|
SIDE_BAR: typing.ClassVar[DisplaySlot] # value = <DisplaySlot.SIDE_BAR: 2>
|
|
1209
1162
|
__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>}
|
|
1210
|
-
@staticmethod
|
|
1211
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1212
|
-
...
|
|
1213
1163
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1214
1164
|
...
|
|
1215
1165
|
def __getstate__(self) -> int:
|
|
@@ -1236,13 +1186,16 @@ class DisplaySlot:
|
|
|
1236
1186
|
@property
|
|
1237
1187
|
def value(self) -> int:
|
|
1238
1188
|
...
|
|
1189
|
+
class Divider:
|
|
1190
|
+
"""
|
|
1191
|
+
Represents a divider.
|
|
1192
|
+
"""
|
|
1193
|
+
def __init__(self) -> None:
|
|
1194
|
+
...
|
|
1239
1195
|
class Dropdown:
|
|
1240
1196
|
"""
|
|
1241
1197
|
Represents a dropdown with a set of predefined options.
|
|
1242
1198
|
"""
|
|
1243
|
-
@staticmethod
|
|
1244
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1245
|
-
...
|
|
1246
1199
|
def __init__(self, label: str | Translatable = '', options: list[str] | None = None, default_index: int | None = None) -> None:
|
|
1247
1200
|
...
|
|
1248
1201
|
def add_option(self, option: str) -> Dropdown:
|
|
@@ -1273,13 +1226,95 @@ class Dropdown:
|
|
|
1273
1226
|
@options.setter
|
|
1274
1227
|
def options(self, arg1: list[str]) -> Dropdown:
|
|
1275
1228
|
...
|
|
1229
|
+
class Enchantment:
|
|
1230
|
+
def can_enchant_item(self, item: ItemStack) -> bool:
|
|
1231
|
+
"""
|
|
1232
|
+
Checks if this Enchantment may be applied to the given ItemStack.
|
|
1233
|
+
|
|
1234
|
+
This does not check if it conflicts with any enchantments already applied to the item.
|
|
1235
|
+
"""
|
|
1236
|
+
def conflicts_with(self, other: Enchantment) -> bool:
|
|
1237
|
+
"""
|
|
1238
|
+
Check if this enchantment conflicts with another enchantment.
|
|
1239
|
+
"""
|
|
1240
|
+
@property
|
|
1241
|
+
def key(self) -> NamespacedKey:
|
|
1242
|
+
"""
|
|
1243
|
+
Return the namespaced identifier for this enchantment.
|
|
1244
|
+
"""
|
|
1245
|
+
@property
|
|
1246
|
+
def max_level(self) -> int:
|
|
1247
|
+
"""
|
|
1248
|
+
Gets the maximum level that this Enchantment may become.
|
|
1249
|
+
"""
|
|
1250
|
+
@property
|
|
1251
|
+
def start_level(self) -> int:
|
|
1252
|
+
"""
|
|
1253
|
+
Gets the level that this Enchantment should start at (also known as minimum level).
|
|
1254
|
+
"""
|
|
1255
|
+
@property
|
|
1256
|
+
def translation_key(self) -> str:
|
|
1257
|
+
"""
|
|
1258
|
+
Get the translation key, suitable for use in a translation component.
|
|
1259
|
+
"""
|
|
1260
|
+
class EnchantmentRegistry:
|
|
1261
|
+
@typing.overload
|
|
1262
|
+
def __contains__(self, key: NamespacedKey) -> bool:
|
|
1263
|
+
...
|
|
1264
|
+
@typing.overload
|
|
1265
|
+
def __contains__(self, key: str) -> bool:
|
|
1266
|
+
...
|
|
1267
|
+
@typing.overload
|
|
1268
|
+
def __getitem__(self, key: NamespacedKey) -> Enchantment:
|
|
1269
|
+
...
|
|
1270
|
+
@typing.overload
|
|
1271
|
+
def __getitem__(self, key: str) -> Enchantment:
|
|
1272
|
+
...
|
|
1273
|
+
def __iter__(self) -> list:
|
|
1274
|
+
...
|
|
1275
|
+
def get(self, key: NamespacedKey) -> Enchantment:
|
|
1276
|
+
...
|
|
1277
|
+
def get_or_throw(self, key: NamespacedKey) -> Enchantment:
|
|
1278
|
+
...
|
|
1279
|
+
class EquipmentSlot:
|
|
1280
|
+
BODY: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.BODY: 6>
|
|
1281
|
+
CHEST: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.CHEST: 4>
|
|
1282
|
+
FEET: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.FEET: 2>
|
|
1283
|
+
HAND: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.HAND: 0>
|
|
1284
|
+
HEAD: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.HEAD: 5>
|
|
1285
|
+
LEGS: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.LEGS: 3>
|
|
1286
|
+
OFF_HAND: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.OFF_HAND: 1>
|
|
1287
|
+
__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>}
|
|
1288
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
1289
|
+
...
|
|
1290
|
+
def __getstate__(self) -> int:
|
|
1291
|
+
...
|
|
1292
|
+
def __hash__(self) -> int:
|
|
1293
|
+
...
|
|
1294
|
+
def __index__(self) -> int:
|
|
1295
|
+
...
|
|
1296
|
+
def __init__(self, value: int) -> None:
|
|
1297
|
+
...
|
|
1298
|
+
def __int__(self) -> int:
|
|
1299
|
+
...
|
|
1300
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
1301
|
+
...
|
|
1302
|
+
def __repr__(self) -> str:
|
|
1303
|
+
...
|
|
1304
|
+
def __setstate__(self, state: int) -> None:
|
|
1305
|
+
...
|
|
1306
|
+
def __str__(self) -> str:
|
|
1307
|
+
...
|
|
1308
|
+
@property
|
|
1309
|
+
def name(self) -> str:
|
|
1310
|
+
...
|
|
1311
|
+
@property
|
|
1312
|
+
def value(self) -> int:
|
|
1313
|
+
...
|
|
1276
1314
|
class Event:
|
|
1277
1315
|
"""
|
|
1278
1316
|
Represents an event.
|
|
1279
1317
|
"""
|
|
1280
|
-
@staticmethod
|
|
1281
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1282
|
-
...
|
|
1283
1318
|
@property
|
|
1284
1319
|
def event_name(self) -> str:
|
|
1285
1320
|
"""
|
|
@@ -1301,9 +1336,6 @@ class EventPriority:
|
|
|
1301
1336
|
MONITOR: typing.ClassVar[EventPriority] # value = <EventPriority.MONITOR: 5>
|
|
1302
1337
|
NORMAL: typing.ClassVar[EventPriority] # value = <EventPriority.NORMAL: 2>
|
|
1303
1338
|
__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>}
|
|
1304
|
-
@staticmethod
|
|
1305
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1306
|
-
...
|
|
1307
1339
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1308
1340
|
...
|
|
1309
1341
|
def __getstate__(self) -> int:
|
|
@@ -1339,9 +1371,6 @@ class GameMode:
|
|
|
1339
1371
|
SPECTATOR: typing.ClassVar[GameMode] # value = <GameMode.SPECTATOR: 3>
|
|
1340
1372
|
SURVIVAL: typing.ClassVar[GameMode] # value = <GameMode.SURVIVAL: 0>
|
|
1341
1373
|
__members__: typing.ClassVar[dict[str, GameMode]] # value = {'SURVIVAL': <GameMode.SURVIVAL: 0>, 'CREATIVE': <GameMode.CREATIVE: 1>, 'ADVENTURE': <GameMode.ADVENTURE: 2>, 'SPECTATOR': <GameMode.SPECTATOR: 3>}
|
|
1342
|
-
@staticmethod
|
|
1343
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1344
|
-
...
|
|
1345
1374
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1346
1375
|
...
|
|
1347
1376
|
def __getstate__(self) -> int:
|
|
@@ -1368,14 +1397,35 @@ class GameMode:
|
|
|
1368
1397
|
@property
|
|
1369
1398
|
def value(self) -> int:
|
|
1370
1399
|
...
|
|
1400
|
+
class Header:
|
|
1401
|
+
"""
|
|
1402
|
+
Represents a header with a label.
|
|
1403
|
+
"""
|
|
1404
|
+
def __init__(self, label: str | Translatable = '') -> None:
|
|
1405
|
+
...
|
|
1406
|
+
@property
|
|
1407
|
+
def label(self) -> str | Translatable:
|
|
1408
|
+
"""
|
|
1409
|
+
Gets or sets the label of the header.
|
|
1410
|
+
"""
|
|
1411
|
+
@label.setter
|
|
1412
|
+
def label(self, arg1: str | Translatable) -> Header:
|
|
1413
|
+
...
|
|
1371
1414
|
class Inventory:
|
|
1372
1415
|
"""
|
|
1373
1416
|
Interface to the various inventories.
|
|
1374
1417
|
"""
|
|
1375
|
-
@
|
|
1376
|
-
def
|
|
1377
|
-
|
|
1378
|
-
|
|
1418
|
+
@typing.overload
|
|
1419
|
+
def __contains__(self, item: ItemStack) -> bool:
|
|
1420
|
+
"""
|
|
1421
|
+
Checks if the inventory contains any ItemStacks with the given ItemStack.
|
|
1422
|
+
"""
|
|
1423
|
+
@typing.overload
|
|
1424
|
+
def __contains__(self, type: str) -> bool:
|
|
1425
|
+
"""
|
|
1426
|
+
Checks if the inventory contains any ItemStacks with the given ItemType.
|
|
1427
|
+
"""
|
|
1428
|
+
def __getitem__(self, index: int) -> ItemStack:
|
|
1379
1429
|
"""
|
|
1380
1430
|
Returns the ItemStack found in the slot at the given index
|
|
1381
1431
|
"""
|
|
@@ -1383,27 +1433,105 @@ class Inventory:
|
|
|
1383
1433
|
"""
|
|
1384
1434
|
Returns the size of the inventory
|
|
1385
1435
|
"""
|
|
1386
|
-
def
|
|
1436
|
+
def __setitem__(self, index: int, item: ItemStack) -> None:
|
|
1387
1437
|
"""
|
|
1388
1438
|
Stores the ItemStack at the given index of the inventory.
|
|
1389
1439
|
"""
|
|
1390
|
-
def add_item(self,
|
|
1440
|
+
def add_item(self, *args) -> dict[int, ItemStack]:
|
|
1391
1441
|
"""
|
|
1392
|
-
Stores the given ItemStacks in the inventory.
|
|
1442
|
+
Stores the given ItemStacks in the inventory.
|
|
1443
|
+
This will try to fill existing stacks and empty slots as well as it can.
|
|
1444
|
+
|
|
1445
|
+
The returned map contains what it couldn't store, where the key is the index, and the value is the ItemStack.
|
|
1446
|
+
If all items are stored, it will return an empty dict.
|
|
1393
1447
|
"""
|
|
1448
|
+
@typing.overload
|
|
1449
|
+
def all(self, item: ItemStack) -> dict[int, ItemStack]:
|
|
1450
|
+
"""
|
|
1451
|
+
Finds all slots in the inventory containing any ItemStacks with the given ItemStack.
|
|
1452
|
+
This will only match slots if both the type and the amount of the stack match
|
|
1453
|
+
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.
|
|
1454
|
+
"""
|
|
1455
|
+
@typing.overload
|
|
1456
|
+
def all(self, type: str) -> dict[int, ItemStack]:
|
|
1457
|
+
"""
|
|
1458
|
+
Finds all slots in the inventory containing any ItemStacks with the given ItemType.
|
|
1459
|
+
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.
|
|
1460
|
+
"""
|
|
1461
|
+
@typing.overload
|
|
1462
|
+
def clear(self, index: int) -> None:
|
|
1463
|
+
"""
|
|
1464
|
+
Clears out a particular slot in the index.
|
|
1465
|
+
"""
|
|
1466
|
+
@typing.overload
|
|
1394
1467
|
def clear(self) -> None:
|
|
1395
1468
|
"""
|
|
1396
1469
|
Clears out the whole Inventory.
|
|
1397
1470
|
"""
|
|
1471
|
+
@typing.overload
|
|
1472
|
+
def contains(self, item: ItemStack, amount: int) -> bool:
|
|
1473
|
+
"""
|
|
1474
|
+
Checks if the inventory contains at least the minimum amount specified of exactly matching ItemStacks.
|
|
1475
|
+
An ItemStack only counts if both the type and the amount of the stack match.
|
|
1476
|
+
"""
|
|
1477
|
+
@typing.overload
|
|
1478
|
+
def contains(self, item: ItemStack) -> bool:
|
|
1479
|
+
"""
|
|
1480
|
+
Checks if the inventory contains any ItemStacks with the given ItemStack.
|
|
1481
|
+
This will only return true if both the type and the amount of the stack match.
|
|
1482
|
+
"""
|
|
1483
|
+
@typing.overload
|
|
1484
|
+
def contains(self, type: str) -> bool:
|
|
1485
|
+
"""
|
|
1486
|
+
Checks if the inventory contains any ItemStacks with the given ItemType.
|
|
1487
|
+
"""
|
|
1488
|
+
@typing.overload
|
|
1489
|
+
def contains_at_least(self, item: ItemStack, amount: int) -> bool:
|
|
1490
|
+
"""
|
|
1491
|
+
Checks if the inventory contains ItemStacks matching the given ItemStack whose amounts sum to at least the minimum amount specified.
|
|
1492
|
+
"""
|
|
1493
|
+
@typing.overload
|
|
1494
|
+
def contains_at_least(self, type: str, amount: int) -> bool:
|
|
1495
|
+
"""
|
|
1496
|
+
Checks if the inventory contains any ItemStacks with the given ItemType, adding to at least the minimum amount specified.
|
|
1497
|
+
"""
|
|
1498
|
+
@typing.overload
|
|
1398
1499
|
def first(self, item: ItemStack) -> int:
|
|
1399
1500
|
"""
|
|
1400
1501
|
Returns the first slot in the inventory containing an ItemStack with the given stack.
|
|
1502
|
+
This will only match slots if both the type and the amount of the stack match
|
|
1503
|
+
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.
|
|
1504
|
+
"""
|
|
1505
|
+
@typing.overload
|
|
1506
|
+
def first(self, type: str) -> int:
|
|
1507
|
+
"""
|
|
1508
|
+
Finds the first slot in the inventory containing an ItemStack with the given ItemType.
|
|
1509
|
+
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.
|
|
1401
1510
|
"""
|
|
1402
1511
|
def get_item(self, index: int) -> ItemStack:
|
|
1403
1512
|
"""
|
|
1404
1513
|
Returns the ItemStack found in the slot at the given index
|
|
1405
1514
|
"""
|
|
1406
|
-
|
|
1515
|
+
@typing.overload
|
|
1516
|
+
def remove(self, item: ItemStack) -> None:
|
|
1517
|
+
"""
|
|
1518
|
+
Removes all stacks in the inventory matching the given stack.
|
|
1519
|
+
This will only match a slot if both the type and the amount of the stack match
|
|
1520
|
+
"""
|
|
1521
|
+
@typing.overload
|
|
1522
|
+
def remove(self, type: str) -> None:
|
|
1523
|
+
"""
|
|
1524
|
+
Removes all stacks in the inventory matching the given ItemType.
|
|
1525
|
+
"""
|
|
1526
|
+
def remove_item(self, *args) -> dict[int, ItemStack]:
|
|
1527
|
+
"""
|
|
1528
|
+
Removes the given ItemStacks from the inventory.
|
|
1529
|
+
It will try to remove 'as much as possible' from the types and amounts you give as arguments.
|
|
1530
|
+
|
|
1531
|
+
The returned HashMap contains what it couldn't remove, where the key is the index, and the value is the ItemStack.
|
|
1532
|
+
If all the given ItemStacks are removed, it will return an empty dict.
|
|
1533
|
+
"""
|
|
1534
|
+
def set_item(self, index: int, item: ItemStack) -> None:
|
|
1407
1535
|
"""
|
|
1408
1536
|
Stores the ItemStack at the given index of the inventory.
|
|
1409
1537
|
"""
|
|
@@ -1412,6 +1540,14 @@ class Inventory:
|
|
|
1412
1540
|
"""
|
|
1413
1541
|
Returns all ItemStacks from the inventory
|
|
1414
1542
|
"""
|
|
1543
|
+
@contents.setter
|
|
1544
|
+
def contents(self, arg1: list[ItemStack]) -> None:
|
|
1545
|
+
...
|
|
1546
|
+
@property
|
|
1547
|
+
def first_empty(self) -> int:
|
|
1548
|
+
"""
|
|
1549
|
+
Returns the first empty Slot.
|
|
1550
|
+
"""
|
|
1415
1551
|
@property
|
|
1416
1552
|
def is_empty(self) -> bool:
|
|
1417
1553
|
"""
|
|
@@ -1431,9 +1567,6 @@ class IpBanEntry(BanEntry):
|
|
|
1431
1567
|
"""
|
|
1432
1568
|
Represents a ban entry for an IP address.
|
|
1433
1569
|
"""
|
|
1434
|
-
@staticmethod
|
|
1435
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1436
|
-
...
|
|
1437
1570
|
def __init__(self, address: str) -> None:
|
|
1438
1571
|
...
|
|
1439
1572
|
@property
|
|
@@ -1445,9 +1578,6 @@ class IpBanList:
|
|
|
1445
1578
|
"""
|
|
1446
1579
|
Represents a ban list containing banned IP addresses.
|
|
1447
1580
|
"""
|
|
1448
|
-
@staticmethod
|
|
1449
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1450
|
-
...
|
|
1451
1581
|
def add_ban(self, address: str, reason: str | None = None, expires: datetime.datetime | None = None, source: str | None = None) -> IpBanEntry:
|
|
1452
1582
|
"""
|
|
1453
1583
|
Adds a ban to this list, or updates an existing one.
|
|
@@ -1469,17 +1599,161 @@ class IpBanList:
|
|
|
1469
1599
|
"""
|
|
1470
1600
|
Gets a vector of pointers to entries in the ban list.
|
|
1471
1601
|
"""
|
|
1472
|
-
class
|
|
1473
|
-
|
|
1474
|
-
|
|
1602
|
+
class ItemFactory:
|
|
1603
|
+
def as_meta_for(self, meta: ItemMeta, type: ItemType) -> ItemMeta:
|
|
1604
|
+
"""
|
|
1605
|
+
Returns an appropriate item meta for the specified item type.
|
|
1606
|
+
"""
|
|
1607
|
+
def equals(self, meta1: ItemMeta, meta2: ItemMeta) -> bool:
|
|
1608
|
+
"""
|
|
1609
|
+
This method is used to compare two ItemMeta objects.
|
|
1610
|
+
"""
|
|
1611
|
+
def get_item_meta(self, type: ItemType) -> ItemMeta:
|
|
1612
|
+
"""
|
|
1613
|
+
This creates a new item meta for the item type.
|
|
1614
|
+
"""
|
|
1615
|
+
def is_applicable(self, meta: ItemMeta, type: ItemType) -> bool:
|
|
1616
|
+
"""
|
|
1617
|
+
This method checks the item meta to confirm that it is applicable (no data lost if applied) to the specified ItemStack
|
|
1618
|
+
"""
|
|
1619
|
+
class ItemMeta:
|
|
1475
1620
|
"""
|
|
1476
|
-
|
|
1477
|
-
|
|
1621
|
+
Represents the metadata of a generic item.
|
|
1622
|
+
"""
|
|
1623
|
+
def add_enchant(self, id: str, level: int, force: bool = False) -> bool:
|
|
1624
|
+
"""
|
|
1625
|
+
Adds the specified enchantment to this item meta.
|
|
1626
|
+
"""
|
|
1627
|
+
def clone(self) -> ItemMeta:
|
|
1628
|
+
"""
|
|
1629
|
+
Creates a clone of the current metadata.
|
|
1630
|
+
"""
|
|
1631
|
+
def get_enchant_level(self, id: str) -> int:
|
|
1632
|
+
"""
|
|
1633
|
+
Checks for the level of the specified enchantment.
|
|
1634
|
+
"""
|
|
1635
|
+
def has_enchant(self, id: str) -> bool:
|
|
1636
|
+
"""
|
|
1637
|
+
Checks for existence of the specified enchantment.
|
|
1638
|
+
"""
|
|
1639
|
+
def remove_enchant(self, id: str) -> bool:
|
|
1640
|
+
"""
|
|
1641
|
+
Removes the specified enchantment from this item meta.
|
|
1642
|
+
"""
|
|
1643
|
+
def remove_enchants(self) -> None:
|
|
1644
|
+
"""
|
|
1645
|
+
Removes all enchantments from this item meta.
|
|
1646
|
+
"""
|
|
1647
|
+
@property
|
|
1648
|
+
def damage(self) -> int:
|
|
1649
|
+
"""
|
|
1650
|
+
Gets or sets the damage.
|
|
1651
|
+
"""
|
|
1652
|
+
@damage.setter
|
|
1653
|
+
def damage(self, arg1: int) -> None:
|
|
1478
1654
|
...
|
|
1479
|
-
|
|
1655
|
+
@property
|
|
1656
|
+
def display_name(self) -> str | None:
|
|
1657
|
+
"""
|
|
1658
|
+
Gets or sets the display name.
|
|
1659
|
+
"""
|
|
1660
|
+
@display_name.setter
|
|
1661
|
+
def display_name(self, arg1: str | None) -> None:
|
|
1662
|
+
...
|
|
1663
|
+
@property
|
|
1664
|
+
def enchants(self) -> dict[str, int]:
|
|
1665
|
+
"""
|
|
1666
|
+
Returns a copy the enchantments in this ItemMeta.
|
|
1667
|
+
"""
|
|
1668
|
+
@property
|
|
1669
|
+
def has_damage(self) -> bool:
|
|
1670
|
+
"""
|
|
1671
|
+
Checks to see if this item has damage.
|
|
1672
|
+
"""
|
|
1673
|
+
@property
|
|
1674
|
+
def has_display_name(self) -> bool:
|
|
1675
|
+
"""
|
|
1676
|
+
Checks for existence of a display name.
|
|
1677
|
+
"""
|
|
1678
|
+
@property
|
|
1679
|
+
def has_enchants(self) -> bool:
|
|
1680
|
+
"""
|
|
1681
|
+
Checks for the existence of any enchantments.
|
|
1682
|
+
"""
|
|
1683
|
+
@property
|
|
1684
|
+
def has_lore(self) -> bool:
|
|
1685
|
+
"""
|
|
1686
|
+
Checks for existence of lore.
|
|
1687
|
+
"""
|
|
1688
|
+
@property
|
|
1689
|
+
def has_repair_cost(self) -> bool:
|
|
1690
|
+
"""
|
|
1691
|
+
Checks to see if this item has a repair penalty.
|
|
1692
|
+
"""
|
|
1693
|
+
@property
|
|
1694
|
+
def is_unbreakable(self) -> bool:
|
|
1695
|
+
"""
|
|
1696
|
+
Gets or sets the unbreakable tag. An unbreakable item will not lose durability.
|
|
1697
|
+
"""
|
|
1698
|
+
@is_unbreakable.setter
|
|
1699
|
+
def is_unbreakable(self, arg1: bool) -> None:
|
|
1700
|
+
...
|
|
1701
|
+
@property
|
|
1702
|
+
def lore(self) -> list[str] | None:
|
|
1703
|
+
"""
|
|
1704
|
+
Gets or sets the lore for this item.
|
|
1705
|
+
"""
|
|
1706
|
+
@lore.setter
|
|
1707
|
+
def lore(self, arg1: list[str] | None) -> None:
|
|
1708
|
+
...
|
|
1709
|
+
@property
|
|
1710
|
+
def repair_cost(self) -> int:
|
|
1711
|
+
"""
|
|
1712
|
+
Gets or sets the repair penalty.
|
|
1713
|
+
"""
|
|
1714
|
+
@repair_cost.setter
|
|
1715
|
+
def repair_cost(self, arg1: int) -> None:
|
|
1716
|
+
...
|
|
1717
|
+
class ItemRegistry:
|
|
1718
|
+
@typing.overload
|
|
1719
|
+
def __contains__(self, key: NamespacedKey) -> bool:
|
|
1720
|
+
...
|
|
1721
|
+
@typing.overload
|
|
1722
|
+
def __contains__(self, key: str) -> bool:
|
|
1723
|
+
...
|
|
1724
|
+
@typing.overload
|
|
1725
|
+
def __getitem__(self, key: NamespacedKey) -> ItemType:
|
|
1726
|
+
...
|
|
1727
|
+
@typing.overload
|
|
1728
|
+
def __getitem__(self, key: str) -> ItemType:
|
|
1729
|
+
...
|
|
1730
|
+
def __iter__(self) -> list:
|
|
1731
|
+
...
|
|
1732
|
+
def get(self, key: NamespacedKey) -> ItemType:
|
|
1733
|
+
...
|
|
1734
|
+
def get_or_throw(self, key: NamespacedKey) -> ItemType:
|
|
1735
|
+
...
|
|
1736
|
+
class ItemStack:
|
|
1737
|
+
"""
|
|
1738
|
+
Represents a stack of items.
|
|
1739
|
+
"""
|
|
1740
|
+
__hash__: typing.ClassVar[None] = None
|
|
1741
|
+
def __eq__(self, arg0: ItemStack) -> bool:
|
|
1742
|
+
...
|
|
1743
|
+
def __init__(self, type: ItemType | str, amount: int = 1) -> None:
|
|
1744
|
+
...
|
|
1745
|
+
def __ne__(self, arg0: ItemStack) -> bool:
|
|
1480
1746
|
...
|
|
1481
1747
|
def __str__(self) -> str:
|
|
1482
1748
|
...
|
|
1749
|
+
def is_similar(self, other: ItemStack) -> bool:
|
|
1750
|
+
"""
|
|
1751
|
+
Checks if the two stacks are equal, but does not consider stack size (amount).
|
|
1752
|
+
"""
|
|
1753
|
+
def set_item_meta(self, meta: ItemMeta) -> bool:
|
|
1754
|
+
"""
|
|
1755
|
+
Set the ItemMeta of this ItemStack.
|
|
1756
|
+
"""
|
|
1483
1757
|
@property
|
|
1484
1758
|
def amount(self) -> int:
|
|
1485
1759
|
"""
|
|
@@ -1489,20 +1763,76 @@ class ItemStack:
|
|
|
1489
1763
|
def amount(self, arg1: int) -> None:
|
|
1490
1764
|
...
|
|
1491
1765
|
@property
|
|
1492
|
-
def
|
|
1766
|
+
def item_meta(self) -> ItemMeta:
|
|
1767
|
+
"""
|
|
1768
|
+
Gets a copy of the ItemMeta of this ItemStack.
|
|
1769
|
+
"""
|
|
1770
|
+
@property
|
|
1771
|
+
def max_stack_size(self) -> int:
|
|
1772
|
+
"""
|
|
1773
|
+
Get the maximum stack size for this item.
|
|
1774
|
+
"""
|
|
1775
|
+
@property
|
|
1776
|
+
def type(self) -> ItemType:
|
|
1493
1777
|
"""
|
|
1494
1778
|
Gets or sets the type of this item.
|
|
1495
1779
|
"""
|
|
1496
1780
|
@type.setter
|
|
1497
|
-
def type(self, arg1: str) -> None:
|
|
1781
|
+
def type(self, arg1: ItemType | str) -> None:
|
|
1498
1782
|
...
|
|
1499
|
-
class
|
|
1783
|
+
class ItemType:
|
|
1500
1784
|
"""
|
|
1501
|
-
Represents
|
|
1785
|
+
Represents an item type.
|
|
1502
1786
|
"""
|
|
1787
|
+
__hash__: typing.ClassVar[None] = None
|
|
1503
1788
|
@staticmethod
|
|
1504
|
-
def
|
|
1789
|
+
def get(name: str) -> ItemType:
|
|
1790
|
+
"""
|
|
1791
|
+
Attempts to get the ItemType with the given name.
|
|
1792
|
+
"""
|
|
1793
|
+
@typing.overload
|
|
1794
|
+
def __eq__(self, arg0: ItemType) -> bool:
|
|
1795
|
+
...
|
|
1796
|
+
@typing.overload
|
|
1797
|
+
def __eq__(self, arg0: str) -> bool:
|
|
1798
|
+
...
|
|
1799
|
+
@typing.overload
|
|
1800
|
+
def __ne__(self, arg0: ItemType) -> bool:
|
|
1801
|
+
...
|
|
1802
|
+
@typing.overload
|
|
1803
|
+
def __ne__(self, arg0: str) -> bool:
|
|
1505
1804
|
...
|
|
1805
|
+
def __str__(self) -> str:
|
|
1806
|
+
...
|
|
1807
|
+
@property
|
|
1808
|
+
def id(self) -> str:
|
|
1809
|
+
"""
|
|
1810
|
+
Return the identifier of this item type.
|
|
1811
|
+
"""
|
|
1812
|
+
@property
|
|
1813
|
+
def key(self) -> NamespacedKey:
|
|
1814
|
+
"""
|
|
1815
|
+
Return the namespaced identifier of this item type.
|
|
1816
|
+
"""
|
|
1817
|
+
@property
|
|
1818
|
+
def max_durability(self) -> int:
|
|
1819
|
+
"""
|
|
1820
|
+
Gets the maximum durability of this item type
|
|
1821
|
+
"""
|
|
1822
|
+
@property
|
|
1823
|
+
def max_stack_size(self) -> int:
|
|
1824
|
+
"""
|
|
1825
|
+
Gets the maximum amount of this item type that can be held in a stack.
|
|
1826
|
+
"""
|
|
1827
|
+
@property
|
|
1828
|
+
def translation_key(self) -> str:
|
|
1829
|
+
"""
|
|
1830
|
+
Get the translation key, suitable for use in a translation component.
|
|
1831
|
+
"""
|
|
1832
|
+
class Label:
|
|
1833
|
+
"""
|
|
1834
|
+
Represents a text label.
|
|
1835
|
+
"""
|
|
1506
1836
|
def __init__(self, text: str | Translatable = '') -> None:
|
|
1507
1837
|
...
|
|
1508
1838
|
@property
|
|
@@ -1517,9 +1847,6 @@ class Language:
|
|
|
1517
1847
|
"""
|
|
1518
1848
|
Represents the interface for translating text into different languages.
|
|
1519
1849
|
"""
|
|
1520
|
-
@staticmethod
|
|
1521
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1522
|
-
...
|
|
1523
1850
|
@typing.overload
|
|
1524
1851
|
def translate(self, text: str, params: list[str] | None = None, locale: str | None = None) -> str:
|
|
1525
1852
|
"""
|
|
@@ -1536,9 +1863,6 @@ class Language:
|
|
|
1536
1863
|
Gets the current locale.
|
|
1537
1864
|
"""
|
|
1538
1865
|
class Level:
|
|
1539
|
-
@staticmethod
|
|
1540
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1541
|
-
...
|
|
1542
1866
|
def get_dimension(self, name: str) -> Dimension:
|
|
1543
1867
|
"""
|
|
1544
1868
|
Gets the dimension with the given name.
|
|
@@ -1566,13 +1890,19 @@ class Level:
|
|
|
1566
1890
|
@time.setter
|
|
1567
1891
|
def time(self, arg1: int) -> None:
|
|
1568
1892
|
...
|
|
1893
|
+
class LevelEvent(Event):
|
|
1894
|
+
"""
|
|
1895
|
+
Represents events within a level
|
|
1896
|
+
"""
|
|
1897
|
+
@property
|
|
1898
|
+
def level(self) -> Level:
|
|
1899
|
+
"""
|
|
1900
|
+
Gets the level primarily involved with this event
|
|
1901
|
+
"""
|
|
1569
1902
|
class Location(Position):
|
|
1570
1903
|
"""
|
|
1571
1904
|
Represents a 3-dimensional location in a dimension within a level.
|
|
1572
1905
|
"""
|
|
1573
|
-
@staticmethod
|
|
1574
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1575
|
-
...
|
|
1576
1906
|
def __init__(self, dimension: Dimension, x: float, y: float, z: float, pitch: float = 0.0, yaw: float = 0.0) -> None:
|
|
1577
1907
|
...
|
|
1578
1908
|
def __repr__(self) -> str:
|
|
@@ -1610,9 +1940,6 @@ class Logger:
|
|
|
1610
1940
|
TRACE: typing.ClassVar[Logger.Level] # value = <Level.TRACE: 0>
|
|
1611
1941
|
WARNING: typing.ClassVar[Logger.Level] # value = <Level.WARNING: 3>
|
|
1612
1942
|
__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>}
|
|
1613
|
-
@staticmethod
|
|
1614
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1615
|
-
...
|
|
1616
1943
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1617
1944
|
...
|
|
1618
1945
|
def __getstate__(self) -> int:
|
|
@@ -1645,9 +1972,6 @@ class Logger:
|
|
|
1645
1972
|
INFO: typing.ClassVar[Logger.Level] # value = <Level.INFO: 2>
|
|
1646
1973
|
TRACE: typing.ClassVar[Logger.Level] # value = <Level.TRACE: 0>
|
|
1647
1974
|
WARNING: typing.ClassVar[Logger.Level] # value = <Level.WARNING: 3>
|
|
1648
|
-
@staticmethod
|
|
1649
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1650
|
-
...
|
|
1651
1975
|
def critical(self, message: str) -> None:
|
|
1652
1976
|
"""
|
|
1653
1977
|
Log a message at the CRITICAL level.
|
|
@@ -1685,13 +2009,170 @@ class Logger:
|
|
|
1685
2009
|
"""
|
|
1686
2010
|
Get the name of this Logger instance.
|
|
1687
2011
|
"""
|
|
2012
|
+
class MapCanvas:
|
|
2013
|
+
"""
|
|
2014
|
+
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.
|
|
2015
|
+
"""
|
|
2016
|
+
def draw_image(self, x: int, y: int, image: numpy.ndarray[numpy.uint8]) -> None:
|
|
2017
|
+
"""
|
|
2018
|
+
Draw an image to the map. The image will be clipped if necessary.
|
|
2019
|
+
"""
|
|
2020
|
+
def get_base_pixel_color(self, x: int, y: int) -> tuple[int, ...]:
|
|
2021
|
+
"""
|
|
2022
|
+
Get a pixel from the layers below this canvas.
|
|
2023
|
+
"""
|
|
2024
|
+
def get_pixel_color(self, x: int, y: int) -> tuple[int, ...] | None:
|
|
2025
|
+
"""
|
|
2026
|
+
Get a pixel from the canvas.
|
|
2027
|
+
|
|
2028
|
+
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
|
|
2029
|
+
"""
|
|
2030
|
+
def set_pixel_color(self, x: int, y: int, color: tuple[int, ...] | None) -> None:
|
|
2031
|
+
"""
|
|
2032
|
+
Draw a pixel to the canvas.
|
|
2033
|
+
|
|
2034
|
+
If None is used as color, then the color returned by get_base_pixel_color() is shown on the map.
|
|
2035
|
+
"""
|
|
2036
|
+
@property
|
|
2037
|
+
def map_view(self) -> MapView:
|
|
2038
|
+
"""
|
|
2039
|
+
Get the map this canvas is attached to.
|
|
2040
|
+
"""
|
|
2041
|
+
class MapMeta(ItemMeta):
|
|
2042
|
+
"""
|
|
2043
|
+
Represents the metadata for a map item.
|
|
2044
|
+
"""
|
|
2045
|
+
class MapRenderer:
|
|
2046
|
+
"""
|
|
2047
|
+
Represents a renderer for a map.
|
|
2048
|
+
"""
|
|
2049
|
+
def __init__(self, is_contextual: bool = False) -> None:
|
|
2050
|
+
"""
|
|
2051
|
+
Initialize the map renderer base with the given contextual status.
|
|
2052
|
+
"""
|
|
2053
|
+
def initialize(self, view: MapView) -> None:
|
|
2054
|
+
"""
|
|
2055
|
+
Initialize this MapRenderer for the given map.
|
|
2056
|
+
"""
|
|
2057
|
+
def render(self, map: MapView, canvas: MapCanvas, player: Player) -> None:
|
|
2058
|
+
"""
|
|
2059
|
+
Render to the given map.
|
|
2060
|
+
"""
|
|
2061
|
+
class MapView:
|
|
2062
|
+
"""
|
|
2063
|
+
Represents a map item.
|
|
2064
|
+
"""
|
|
2065
|
+
class Scale:
|
|
2066
|
+
"""
|
|
2067
|
+
An enum representing all possible scales a map can be set to.
|
|
2068
|
+
"""
|
|
2069
|
+
CLOSE: typing.ClassVar[MapView.Scale] # value = <Scale.CLOSE: 1>
|
|
2070
|
+
CLOSEST: typing.ClassVar[MapView.Scale] # value = <Scale.CLOSEST: 0>
|
|
2071
|
+
FAR: typing.ClassVar[MapView.Scale] # value = <Scale.FAR: 3>
|
|
2072
|
+
FARTHEST: typing.ClassVar[MapView.Scale] # value = <Scale.FARTHEST: 4>
|
|
2073
|
+
NORMAL: typing.ClassVar[MapView.Scale] # value = <Scale.NORMAL: 2>
|
|
2074
|
+
__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>}
|
|
2075
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
2076
|
+
...
|
|
2077
|
+
def __getstate__(self) -> int:
|
|
2078
|
+
...
|
|
2079
|
+
def __hash__(self) -> int:
|
|
2080
|
+
...
|
|
2081
|
+
def __index__(self) -> int:
|
|
2082
|
+
...
|
|
2083
|
+
def __init__(self, value: int) -> None:
|
|
2084
|
+
...
|
|
2085
|
+
def __int__(self) -> int:
|
|
2086
|
+
...
|
|
2087
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
2088
|
+
...
|
|
2089
|
+
def __repr__(self) -> str:
|
|
2090
|
+
...
|
|
2091
|
+
def __setstate__(self, state: int) -> None:
|
|
2092
|
+
...
|
|
2093
|
+
def __str__(self) -> str:
|
|
2094
|
+
...
|
|
2095
|
+
@property
|
|
2096
|
+
def name(self) -> str:
|
|
2097
|
+
...
|
|
2098
|
+
@property
|
|
2099
|
+
def value(self) -> int:
|
|
2100
|
+
...
|
|
2101
|
+
def add_renderer(self, renderer: MapRenderer) -> None:
|
|
2102
|
+
"""
|
|
2103
|
+
Add a renderer to this map.
|
|
2104
|
+
"""
|
|
2105
|
+
def remove_renderer(self, renderer: MapRenderer) -> bool:
|
|
2106
|
+
"""
|
|
2107
|
+
Remove a renderer from this map.
|
|
2108
|
+
"""
|
|
2109
|
+
@property
|
|
2110
|
+
def center_x(self) -> int:
|
|
2111
|
+
"""
|
|
2112
|
+
Get or set the center X position of this map.
|
|
2113
|
+
"""
|
|
2114
|
+
@center_x.setter
|
|
2115
|
+
def center_x(self, arg1: int) -> None:
|
|
2116
|
+
...
|
|
2117
|
+
@property
|
|
2118
|
+
def center_z(self) -> int:
|
|
2119
|
+
"""
|
|
2120
|
+
Get or set the center Z position of this map.
|
|
2121
|
+
"""
|
|
2122
|
+
@center_z.setter
|
|
2123
|
+
def center_z(self, arg1: int) -> None:
|
|
2124
|
+
...
|
|
2125
|
+
@property
|
|
2126
|
+
def dimension(self) -> Dimension:
|
|
2127
|
+
"""
|
|
2128
|
+
Get or set the dimension that this map is associated with.
|
|
2129
|
+
"""
|
|
2130
|
+
@dimension.setter
|
|
2131
|
+
def dimension(self, arg1: Dimension) -> None:
|
|
2132
|
+
...
|
|
2133
|
+
@property
|
|
2134
|
+
def id(self) -> int:
|
|
2135
|
+
"""
|
|
2136
|
+
Get the ID of this map item for use with MapMeta.
|
|
2137
|
+
"""
|
|
2138
|
+
@property
|
|
2139
|
+
def is_unlimited_tracking(self) -> bool:
|
|
2140
|
+
"""
|
|
2141
|
+
Whether the map will show a smaller position cursor (true), or no position cursor (false) when cursor is outside of map's range.
|
|
2142
|
+
"""
|
|
2143
|
+
@is_unlimited_tracking.setter
|
|
2144
|
+
def is_unlimited_tracking(self, arg1: bool) -> None:
|
|
2145
|
+
...
|
|
2146
|
+
@property
|
|
2147
|
+
def is_virtual(self) -> bool:
|
|
2148
|
+
"""
|
|
2149
|
+
Check whether this map is virtual.
|
|
2150
|
+
"""
|
|
2151
|
+
@property
|
|
2152
|
+
def locked(self) -> bool:
|
|
2153
|
+
"""
|
|
2154
|
+
Whether the map is locked or not. A locked map may not be explored further.
|
|
2155
|
+
"""
|
|
2156
|
+
@locked.setter
|
|
2157
|
+
def locked(self, arg1: bool) -> None:
|
|
2158
|
+
...
|
|
2159
|
+
@property
|
|
2160
|
+
def renderers(self) -> list[MapRenderer]:
|
|
2161
|
+
"""
|
|
2162
|
+
Get a copied list of MapRenderers currently in effect.
|
|
2163
|
+
"""
|
|
2164
|
+
@property
|
|
2165
|
+
def scale(self) -> MapView.Scale:
|
|
2166
|
+
"""
|
|
2167
|
+
Get or set the scale of this map.
|
|
2168
|
+
"""
|
|
2169
|
+
@scale.setter
|
|
2170
|
+
def scale(self, arg1: MapView.Scale) -> None:
|
|
2171
|
+
...
|
|
1688
2172
|
class MessageForm:
|
|
1689
2173
|
"""
|
|
1690
2174
|
Represents a form with two buttons.
|
|
1691
2175
|
"""
|
|
1692
|
-
@staticmethod
|
|
1693
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1694
|
-
...
|
|
1695
2176
|
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:
|
|
1696
2177
|
...
|
|
1697
2178
|
@property
|
|
@@ -1746,9 +2227,6 @@ class Mob(Actor):
|
|
|
1746
2227
|
"""
|
|
1747
2228
|
Represents a mobile entity (i.e. living entity), such as a monster or player.
|
|
1748
2229
|
"""
|
|
1749
|
-
@staticmethod
|
|
1750
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1751
|
-
...
|
|
1752
2230
|
@property
|
|
1753
2231
|
def is_gliding(self) -> bool:
|
|
1754
2232
|
"""
|
|
@@ -1758,9 +2236,6 @@ class MobEvent(Event):
|
|
|
1758
2236
|
"""
|
|
1759
2237
|
Represents an Mob-related event.
|
|
1760
2238
|
"""
|
|
1761
|
-
@staticmethod
|
|
1762
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1763
|
-
...
|
|
1764
2239
|
@property
|
|
1765
2240
|
def actor(self) -> Mob:
|
|
1766
2241
|
"""
|
|
@@ -1770,22 +2245,19 @@ class ModalForm:
|
|
|
1770
2245
|
"""
|
|
1771
2246
|
Represents a modal form with controls.
|
|
1772
2247
|
"""
|
|
1773
|
-
|
|
1774
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2248
|
+
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:
|
|
1775
2249
|
...
|
|
1776
|
-
def
|
|
1777
|
-
...
|
|
1778
|
-
def add_control(self, control: Dropdown | Label | Slider | StepSlider | TextInput | Toggle) -> ModalForm:
|
|
2250
|
+
def add_control(self, control: Dropdown | Label | Slider | StepSlider | TextInput | Toggle | Divider | Header) -> ModalForm:
|
|
1779
2251
|
"""
|
|
1780
2252
|
Adds a control to the form.
|
|
1781
2253
|
"""
|
|
1782
2254
|
@property
|
|
1783
|
-
def controls(self) -> list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle]:
|
|
2255
|
+
def controls(self) -> list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle | Divider | Header]:
|
|
1784
2256
|
"""
|
|
1785
2257
|
Gets or sets the controls of the modal form.
|
|
1786
2258
|
"""
|
|
1787
2259
|
@controls.setter
|
|
1788
|
-
def controls(self, arg1: list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle]) -> ModalForm:
|
|
2260
|
+
def controls(self, arg1: list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle | Divider | Header]) -> ModalForm:
|
|
1789
2261
|
...
|
|
1790
2262
|
@property
|
|
1791
2263
|
def icon(self) -> str | None:
|
|
@@ -1827,14 +2299,36 @@ class ModalForm:
|
|
|
1827
2299
|
@title.setter
|
|
1828
2300
|
def title(self, arg1: str | Translatable) -> ModalForm:
|
|
1829
2301
|
...
|
|
2302
|
+
class NamespacedKey:
|
|
2303
|
+
"""
|
|
2304
|
+
Represents a string-based key which consists of two components - a namespace and a key.
|
|
2305
|
+
"""
|
|
2306
|
+
@staticmethod
|
|
2307
|
+
def from_string(input: str, plugin: Plugin = None) -> NamespacedKey:
|
|
2308
|
+
"""
|
|
2309
|
+
Parses a NamespacedKey from a string.
|
|
2310
|
+
"""
|
|
2311
|
+
def __init__(self, arg0: Plugin, arg1: str) -> None:
|
|
2312
|
+
...
|
|
2313
|
+
def __repr__(self) -> str:
|
|
2314
|
+
...
|
|
2315
|
+
def __str__(self) -> str:
|
|
2316
|
+
...
|
|
2317
|
+
@property
|
|
2318
|
+
def key(self) -> str:
|
|
2319
|
+
"""
|
|
2320
|
+
Returns the key of the NamespacedKey.
|
|
2321
|
+
"""
|
|
2322
|
+
@property
|
|
2323
|
+
def namespace(self) -> str:
|
|
2324
|
+
"""
|
|
2325
|
+
Returns the namespace of the NamespacedKey.
|
|
2326
|
+
"""
|
|
1830
2327
|
class Objective:
|
|
1831
2328
|
"""
|
|
1832
2329
|
Represents an objective on a scoreboard that can show scores specific to entries.
|
|
1833
2330
|
"""
|
|
1834
2331
|
__hash__: typing.ClassVar[None] = None
|
|
1835
|
-
@staticmethod
|
|
1836
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1837
|
-
...
|
|
1838
2332
|
def __eq__(self, arg0: Objective) -> bool:
|
|
1839
2333
|
...
|
|
1840
2334
|
def __ne__(self, arg0: Objective) -> bool:
|
|
@@ -1909,9 +2403,6 @@ class ObjectiveSortOrder:
|
|
|
1909
2403
|
ASCENDING: typing.ClassVar[ObjectiveSortOrder] # value = <ObjectiveSortOrder.ASCENDING: 0>
|
|
1910
2404
|
DESCENDING: typing.ClassVar[ObjectiveSortOrder] # value = <ObjectiveSortOrder.DESCENDING: 1>
|
|
1911
2405
|
__members__: typing.ClassVar[dict[str, ObjectiveSortOrder]] # value = {'ASCENDING': <ObjectiveSortOrder.ASCENDING: 0>, 'DESCENDING': <ObjectiveSortOrder.DESCENDING: 1>}
|
|
1912
|
-
@staticmethod
|
|
1913
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1914
|
-
...
|
|
1915
2406
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1916
2407
|
...
|
|
1917
2408
|
def __getstate__(self) -> int:
|
|
@@ -1942,9 +2433,6 @@ class OfflinePlayer:
|
|
|
1942
2433
|
"""
|
|
1943
2434
|
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.
|
|
1944
2435
|
"""
|
|
1945
|
-
@staticmethod
|
|
1946
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1947
|
-
...
|
|
1948
2436
|
@property
|
|
1949
2437
|
def name(self) -> str:
|
|
1950
2438
|
"""
|
|
@@ -1955,60 +2443,76 @@ class OfflinePlayer:
|
|
|
1955
2443
|
"""
|
|
1956
2444
|
Returns the UUID of this player
|
|
1957
2445
|
"""
|
|
1958
|
-
class
|
|
2446
|
+
class PacketReceiveEvent(ServerEvent, Cancellable):
|
|
1959
2447
|
"""
|
|
1960
|
-
|
|
2448
|
+
Called when the server receives a packet from a connected client.
|
|
1961
2449
|
"""
|
|
1962
|
-
@
|
|
1963
|
-
def
|
|
2450
|
+
@property
|
|
2451
|
+
def address(self) -> SocketAddress:
|
|
2452
|
+
"""
|
|
2453
|
+
Gets the network address to which this packet is being sent.
|
|
2454
|
+
"""
|
|
2455
|
+
@property
|
|
2456
|
+
def packet_id(self) -> int:
|
|
2457
|
+
"""
|
|
2458
|
+
Gets the ID of the packet.
|
|
2459
|
+
"""
|
|
2460
|
+
@property
|
|
2461
|
+
def payload(self) -> bytes:
|
|
2462
|
+
"""
|
|
2463
|
+
Gets or sets the raw packet data **excluding** the header.
|
|
2464
|
+
"""
|
|
2465
|
+
@payload.setter
|
|
2466
|
+
def payload(self, arg1: bytes) -> None:
|
|
1964
2467
|
...
|
|
1965
2468
|
@property
|
|
1966
|
-
def
|
|
2469
|
+
def player(self) -> Player:
|
|
2470
|
+
"""
|
|
2471
|
+
Gets the player involved in this event
|
|
2472
|
+
NOTE: This may return None if the packet is sent before the player completes the login process.
|
|
1967
2473
|
"""
|
|
1968
|
-
|
|
2474
|
+
@property
|
|
2475
|
+
def sub_client_id(self) -> int:
|
|
1969
2476
|
"""
|
|
1970
|
-
|
|
2477
|
+
Gets the SubClient ID (0 = primary client; 1-3 = split-screen clients).
|
|
2478
|
+
"""
|
|
2479
|
+
class PacketSendEvent(ServerEvent, Cancellable):
|
|
1971
2480
|
"""
|
|
1972
|
-
|
|
2481
|
+
Called when the server sends a packet to a connected client.
|
|
1973
2482
|
"""
|
|
1974
|
-
SPAWN_PARTICLE_EFFECT: typing.ClassVar[PacketType] # value = <PacketType.SPAWN_PARTICLE_EFFECT: 118>
|
|
1975
|
-
__members__: typing.ClassVar[dict[str, PacketType]] # value = {'SPAWN_PARTICLE_EFFECT': <PacketType.SPAWN_PARTICLE_EFFECT: 118>}
|
|
1976
|
-
@staticmethod
|
|
1977
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1978
|
-
...
|
|
1979
|
-
def __eq__(self, other: typing.Any) -> bool:
|
|
1980
|
-
...
|
|
1981
|
-
def __getstate__(self) -> int:
|
|
1982
|
-
...
|
|
1983
|
-
def __hash__(self) -> int:
|
|
1984
|
-
...
|
|
1985
|
-
def __index__(self) -> int:
|
|
1986
|
-
...
|
|
1987
|
-
def __init__(self, value: int) -> None:
|
|
1988
|
-
...
|
|
1989
|
-
def __int__(self) -> int:
|
|
1990
|
-
...
|
|
1991
|
-
def __ne__(self, other: typing.Any) -> bool:
|
|
1992
|
-
...
|
|
1993
|
-
def __repr__(self) -> str:
|
|
1994
|
-
...
|
|
1995
|
-
def __setstate__(self, state: int) -> None:
|
|
1996
|
-
...
|
|
1997
|
-
def __str__(self) -> str:
|
|
1998
|
-
...
|
|
1999
2483
|
@property
|
|
2000
|
-
def
|
|
2001
|
-
|
|
2484
|
+
def address(self) -> SocketAddress:
|
|
2485
|
+
"""
|
|
2486
|
+
Gets the network address to which this packet is being sent.
|
|
2487
|
+
"""
|
|
2002
2488
|
@property
|
|
2003
|
-
def
|
|
2489
|
+
def packet_id(self) -> int:
|
|
2490
|
+
"""
|
|
2491
|
+
Gets the ID of the packet.
|
|
2492
|
+
"""
|
|
2493
|
+
@property
|
|
2494
|
+
def payload(self) -> bytes:
|
|
2495
|
+
"""
|
|
2496
|
+
Gets or sets the raw packet data **excluding** the header.
|
|
2497
|
+
"""
|
|
2498
|
+
@payload.setter
|
|
2499
|
+
def payload(self, arg1: bytes) -> None:
|
|
2004
2500
|
...
|
|
2501
|
+
@property
|
|
2502
|
+
def player(self) -> Player:
|
|
2503
|
+
"""
|
|
2504
|
+
Gets the player involved in this event
|
|
2505
|
+
NOTE: This may return None if the packet is sent before the player completes the login process.
|
|
2506
|
+
"""
|
|
2507
|
+
@property
|
|
2508
|
+
def sub_client_id(self) -> int:
|
|
2509
|
+
"""
|
|
2510
|
+
Gets the SubClient ID (0 = primary client; 1-3 = split-screen clients).
|
|
2511
|
+
"""
|
|
2005
2512
|
class Permissible:
|
|
2006
2513
|
"""
|
|
2007
2514
|
Represents an object that may become a server operator and can be assigned permissions.
|
|
2008
2515
|
"""
|
|
2009
|
-
@staticmethod
|
|
2010
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2011
|
-
...
|
|
2012
2516
|
@typing.overload
|
|
2013
2517
|
def add_attachment(self, plugin: Plugin, name: str, value: bool) -> PermissionAttachment:
|
|
2014
2518
|
"""
|
|
@@ -2064,9 +2568,6 @@ class Permission:
|
|
|
2064
2568
|
"""
|
|
2065
2569
|
Represents a unique permission that may be attached to a Permissible
|
|
2066
2570
|
"""
|
|
2067
|
-
@staticmethod
|
|
2068
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2069
|
-
...
|
|
2070
2571
|
def __init__(self, name: str, description: str | None = None, default: PermissionDefault | None = None, children: dict[str, bool] | None = None, *args, **kwargs) -> None:
|
|
2071
2572
|
...
|
|
2072
2573
|
@typing.overload
|
|
@@ -2118,9 +2619,6 @@ class PermissionAttachment:
|
|
|
2118
2619
|
"""
|
|
2119
2620
|
Holds information about a permission attachment on a Permissible object
|
|
2120
2621
|
"""
|
|
2121
|
-
@staticmethod
|
|
2122
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2123
|
-
...
|
|
2124
2622
|
def __init__(self, plugin: Plugin, permissible: Permissible) -> None:
|
|
2125
2623
|
...
|
|
2126
2624
|
def remove(self) -> bool:
|
|
@@ -2174,9 +2672,6 @@ class PermissionAttachmentInfo:
|
|
|
2174
2672
|
"""
|
|
2175
2673
|
Holds information on a permission and which PermissionAttachment provides it
|
|
2176
2674
|
"""
|
|
2177
|
-
@staticmethod
|
|
2178
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2179
|
-
...
|
|
2180
2675
|
def __init__(self, permissible: Permissible, permission: str, attachment: PermissionAttachment, value: bool) -> None:
|
|
2181
2676
|
...
|
|
2182
2677
|
@property
|
|
@@ -2210,9 +2705,6 @@ class PermissionDefault:
|
|
|
2210
2705
|
OPERATOR: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.OP: 2>
|
|
2211
2706
|
TRUE: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.TRUE: 0>
|
|
2212
2707
|
__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>}
|
|
2213
|
-
@staticmethod
|
|
2214
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2215
|
-
...
|
|
2216
2708
|
def __eq__(self, other: typing.Any) -> bool:
|
|
2217
2709
|
...
|
|
2218
2710
|
def __getstate__(self) -> int:
|
|
@@ -2243,9 +2735,6 @@ class Player(Mob, OfflinePlayer):
|
|
|
2243
2735
|
"""
|
|
2244
2736
|
Represents a player.
|
|
2245
2737
|
"""
|
|
2246
|
-
@staticmethod
|
|
2247
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2248
|
-
...
|
|
2249
2738
|
def close_form(self) -> None:
|
|
2250
2739
|
"""
|
|
2251
2740
|
Closes the forms that are currently open for the player.
|
|
@@ -2266,7 +2755,7 @@ class Player(Mob, OfflinePlayer):
|
|
|
2266
2755
|
"""
|
|
2267
2756
|
Makes the player perform the given command.
|
|
2268
2757
|
"""
|
|
2269
|
-
def play_sound(self, location: Location, sound: str, volume: float, pitch: float) -> None:
|
|
2758
|
+
def play_sound(self, location: Location, sound: str, volume: float = 1.0, pitch: float = 1.0) -> None:
|
|
2270
2759
|
"""
|
|
2271
2760
|
Play a sound for a player at the location.
|
|
2272
2761
|
"""
|
|
@@ -2278,7 +2767,7 @@ class Player(Mob, OfflinePlayer):
|
|
|
2278
2767
|
"""
|
|
2279
2768
|
Sends a form to the player.
|
|
2280
2769
|
"""
|
|
2281
|
-
def send_packet(self,
|
|
2770
|
+
def send_packet(self, packet_id: int, payload: bytes) -> None:
|
|
2282
2771
|
"""
|
|
2283
2772
|
Sends a packet to the player.
|
|
2284
2773
|
"""
|
|
@@ -2468,9 +2957,6 @@ class PlayerBanEntry(BanEntry):
|
|
|
2468
2957
|
"""
|
|
2469
2958
|
Represents a ban entry for a player.
|
|
2470
2959
|
"""
|
|
2471
|
-
@staticmethod
|
|
2472
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2473
|
-
...
|
|
2474
2960
|
def __init__(self, name: str, uuid: uuid.UUID | None = None, xuid: str | None = None) -> None:
|
|
2475
2961
|
...
|
|
2476
2962
|
@property
|
|
@@ -2492,9 +2978,6 @@ class PlayerBanList:
|
|
|
2492
2978
|
"""
|
|
2493
2979
|
Represents a ban list containing banned players.
|
|
2494
2980
|
"""
|
|
2495
|
-
@staticmethod
|
|
2496
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2497
|
-
...
|
|
2498
2981
|
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:
|
|
2499
2982
|
"""
|
|
2500
2983
|
Adds a ban to this list, or updates an existing one.
|
|
@@ -2520,9 +3003,6 @@ class PlayerChatEvent(PlayerEvent, Cancellable):
|
|
|
2520
3003
|
"""
|
|
2521
3004
|
Called when a player sends a chat message.
|
|
2522
3005
|
"""
|
|
2523
|
-
@staticmethod
|
|
2524
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2525
|
-
...
|
|
2526
3006
|
@property
|
|
2527
3007
|
def message(self) -> str:
|
|
2528
3008
|
"""
|
|
@@ -2535,9 +3015,6 @@ class PlayerCommandEvent(PlayerEvent, Cancellable):
|
|
|
2535
3015
|
"""
|
|
2536
3016
|
Called whenever a player runs a command.
|
|
2537
3017
|
"""
|
|
2538
|
-
@staticmethod
|
|
2539
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2540
|
-
...
|
|
2541
3018
|
@property
|
|
2542
3019
|
def command(self) -> str:
|
|
2543
3020
|
"""
|
|
@@ -2550,9 +3027,6 @@ class PlayerDeathEvent(ActorDeathEvent, PlayerEvent):
|
|
|
2550
3027
|
"""
|
|
2551
3028
|
Called when a player dies
|
|
2552
3029
|
"""
|
|
2553
|
-
@staticmethod
|
|
2554
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2555
|
-
...
|
|
2556
3030
|
@property
|
|
2557
3031
|
def death_message(self) -> str:
|
|
2558
3032
|
"""
|
|
@@ -2561,13 +3035,19 @@ class PlayerDeathEvent(ActorDeathEvent, PlayerEvent):
|
|
|
2561
3035
|
@death_message.setter
|
|
2562
3036
|
def death_message(self, arg1: str) -> None:
|
|
2563
3037
|
...
|
|
3038
|
+
class PlayerDropItemEvent(PlayerEvent, Cancellable):
|
|
3039
|
+
"""
|
|
3040
|
+
Called when a player drops an item from their inventory
|
|
3041
|
+
"""
|
|
3042
|
+
@property
|
|
3043
|
+
def item(self) -> ItemStack:
|
|
3044
|
+
"""
|
|
3045
|
+
Gets the ItemStack dropped by the player
|
|
3046
|
+
"""
|
|
2564
3047
|
class PlayerEmoteEvent(PlayerEvent):
|
|
2565
3048
|
"""
|
|
2566
3049
|
Called when a player uses and emote
|
|
2567
3050
|
"""
|
|
2568
|
-
@staticmethod
|
|
2569
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2570
|
-
...
|
|
2571
3051
|
@property
|
|
2572
3052
|
def emote_id(self) -> str:
|
|
2573
3053
|
"""
|
|
@@ -2577,9 +3057,6 @@ class PlayerEvent(Event):
|
|
|
2577
3057
|
"""
|
|
2578
3058
|
Represents a player related event
|
|
2579
3059
|
"""
|
|
2580
|
-
@staticmethod
|
|
2581
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2582
|
-
...
|
|
2583
3060
|
@property
|
|
2584
3061
|
def player(self) -> Player:
|
|
2585
3062
|
"""
|
|
@@ -2589,9 +3066,6 @@ class PlayerGameModeChangeEvent(PlayerEvent, Cancellable):
|
|
|
2589
3066
|
"""
|
|
2590
3067
|
Called when the GameMode of the player is changed.
|
|
2591
3068
|
"""
|
|
2592
|
-
@staticmethod
|
|
2593
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2594
|
-
...
|
|
2595
3069
|
@property
|
|
2596
3070
|
def new_game_mode(self) -> GameMode:
|
|
2597
3071
|
"""
|
|
@@ -2601,9 +3075,6 @@ class PlayerInteractActorEvent(PlayerEvent, Cancellable):
|
|
|
2601
3075
|
"""
|
|
2602
3076
|
Represents an event that is called when a player right-clicks an actor.
|
|
2603
3077
|
"""
|
|
2604
|
-
@staticmethod
|
|
2605
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2606
|
-
...
|
|
2607
3078
|
@property
|
|
2608
3079
|
def actor(self) -> Actor:
|
|
2609
3080
|
"""
|
|
@@ -2613,9 +3084,6 @@ class PlayerInteractEvent(PlayerEvent, Cancellable):
|
|
|
2613
3084
|
"""
|
|
2614
3085
|
Represents an event that is called when a player right-clicks a block.
|
|
2615
3086
|
"""
|
|
2616
|
-
@staticmethod
|
|
2617
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2618
|
-
...
|
|
2619
3087
|
@property
|
|
2620
3088
|
def block(self) -> Block:
|
|
2621
3089
|
"""
|
|
@@ -2650,16 +3118,80 @@ class PlayerInventory(Inventory):
|
|
|
2650
3118
|
"""
|
|
2651
3119
|
Interface to the inventory of a Player, including the four armor slots and any extra slots.
|
|
2652
3120
|
"""
|
|
2653
|
-
@
|
|
2654
|
-
def
|
|
3121
|
+
@property
|
|
3122
|
+
def boots(self) -> ItemStack:
|
|
3123
|
+
"""
|
|
3124
|
+
Gets or sets the ItemStack in the boots slot
|
|
3125
|
+
"""
|
|
3126
|
+
@boots.setter
|
|
3127
|
+
def boots(self, arg1: ItemStack) -> None:
|
|
3128
|
+
...
|
|
3129
|
+
@property
|
|
3130
|
+
def chestplate(self) -> ItemStack:
|
|
3131
|
+
"""
|
|
3132
|
+
Gets or sets the ItemStack in the chestplate slot
|
|
3133
|
+
"""
|
|
3134
|
+
@chestplate.setter
|
|
3135
|
+
def chestplate(self, arg1: ItemStack) -> None:
|
|
3136
|
+
...
|
|
3137
|
+
@property
|
|
3138
|
+
def held_item_slot(self) -> int:
|
|
3139
|
+
"""
|
|
3140
|
+
Gets or sets the slot number of the currently held item
|
|
3141
|
+
"""
|
|
3142
|
+
@held_item_slot.setter
|
|
3143
|
+
def held_item_slot(self, arg1: int) -> None:
|
|
3144
|
+
...
|
|
3145
|
+
@property
|
|
3146
|
+
def helmet(self) -> ItemStack:
|
|
3147
|
+
"""
|
|
3148
|
+
Gets or sets the ItemStack in the helmet slot
|
|
3149
|
+
"""
|
|
3150
|
+
@helmet.setter
|
|
3151
|
+
def helmet(self, arg1: ItemStack) -> None:
|
|
3152
|
+
...
|
|
3153
|
+
@property
|
|
3154
|
+
def item_in_main_hand(self) -> ItemStack:
|
|
3155
|
+
"""
|
|
3156
|
+
Gets or sets the item the player is currently holding in their main hand.
|
|
3157
|
+
"""
|
|
3158
|
+
@item_in_main_hand.setter
|
|
3159
|
+
def item_in_main_hand(self, arg1: ItemStack) -> None:
|
|
3160
|
+
...
|
|
3161
|
+
@property
|
|
3162
|
+
def item_in_off_hand(self) -> ItemStack:
|
|
3163
|
+
"""
|
|
3164
|
+
Gets or sets the item the player is currently holding in their off hand.
|
|
3165
|
+
"""
|
|
3166
|
+
@item_in_off_hand.setter
|
|
3167
|
+
def item_in_off_hand(self, arg1: ItemStack) -> None:
|
|
3168
|
+
...
|
|
3169
|
+
@property
|
|
3170
|
+
def leggings(self) -> ItemStack:
|
|
3171
|
+
"""
|
|
3172
|
+
Gets or sets the ItemStack in the leg slot
|
|
3173
|
+
"""
|
|
3174
|
+
@leggings.setter
|
|
3175
|
+
def leggings(self, arg1: ItemStack) -> None:
|
|
2655
3176
|
...
|
|
3177
|
+
class PlayerItemConsumeEvent(PlayerEvent, Cancellable):
|
|
3178
|
+
"""
|
|
3179
|
+
Called when a player is finishing consuming an item (food, potion, milk bucket).
|
|
3180
|
+
"""
|
|
3181
|
+
@property
|
|
3182
|
+
def hand(self) -> EquipmentSlot:
|
|
3183
|
+
"""
|
|
3184
|
+
Get the hand used to consume the item.
|
|
3185
|
+
"""
|
|
3186
|
+
@property
|
|
3187
|
+
def item(self) -> ItemStack:
|
|
3188
|
+
"""
|
|
3189
|
+
Gets or sets the item that is being consumed.
|
|
3190
|
+
"""
|
|
2656
3191
|
class PlayerJoinEvent(PlayerEvent):
|
|
2657
3192
|
"""
|
|
2658
3193
|
Called when a player joins a server
|
|
2659
3194
|
"""
|
|
2660
|
-
@staticmethod
|
|
2661
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2662
|
-
...
|
|
2663
3195
|
@property
|
|
2664
3196
|
def join_message(self) -> str:
|
|
2665
3197
|
"""
|
|
@@ -2668,13 +3200,14 @@ class PlayerJoinEvent(PlayerEvent):
|
|
|
2668
3200
|
@join_message.setter
|
|
2669
3201
|
def join_message(self, arg1: str) -> None:
|
|
2670
3202
|
...
|
|
3203
|
+
class PlayerJumpEvent(PlayerMoveEvent):
|
|
3204
|
+
"""
|
|
3205
|
+
Called when a player jumps.
|
|
3206
|
+
"""
|
|
2671
3207
|
class PlayerKickEvent(PlayerEvent, Cancellable):
|
|
2672
3208
|
"""
|
|
2673
3209
|
Called when a player gets kicked from the server
|
|
2674
3210
|
"""
|
|
2675
|
-
@staticmethod
|
|
2676
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2677
|
-
...
|
|
2678
3211
|
@property
|
|
2679
3212
|
def reason(self) -> str:
|
|
2680
3213
|
"""
|
|
@@ -2687,9 +3220,6 @@ class PlayerLoginEvent(PlayerEvent, Cancellable):
|
|
|
2687
3220
|
"""
|
|
2688
3221
|
Called when a player attempts to login in.
|
|
2689
3222
|
"""
|
|
2690
|
-
@staticmethod
|
|
2691
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2692
|
-
...
|
|
2693
3223
|
@property
|
|
2694
3224
|
def kick_message(self) -> str:
|
|
2695
3225
|
"""
|
|
@@ -2698,13 +3228,39 @@ class PlayerLoginEvent(PlayerEvent, Cancellable):
|
|
|
2698
3228
|
@kick_message.setter
|
|
2699
3229
|
def kick_message(self, arg1: str) -> None:
|
|
2700
3230
|
...
|
|
3231
|
+
class PlayerMoveEvent(PlayerEvent, Cancellable):
|
|
3232
|
+
"""
|
|
3233
|
+
Called when a player moves.
|
|
3234
|
+
"""
|
|
3235
|
+
@property
|
|
3236
|
+
def from_location(self) -> Location:
|
|
3237
|
+
"""
|
|
3238
|
+
Gets or sets the location that this player moved from.
|
|
3239
|
+
"""
|
|
3240
|
+
@from_location.setter
|
|
3241
|
+
def from_location(self, arg1: Location) -> None:
|
|
3242
|
+
...
|
|
3243
|
+
@property
|
|
3244
|
+
def to_location(self) -> Location:
|
|
3245
|
+
"""
|
|
3246
|
+
Gets or sets the location that this player moved to.
|
|
3247
|
+
"""
|
|
3248
|
+
@to_location.setter
|
|
3249
|
+
def to_location(self, arg1: Location) -> None:
|
|
3250
|
+
...
|
|
3251
|
+
class PlayerPickupItemEvent(PlayerEvent, Cancellable):
|
|
3252
|
+
"""
|
|
3253
|
+
Called when a player picks an item up from the ground.
|
|
3254
|
+
"""
|
|
3255
|
+
@property
|
|
3256
|
+
def item(self) -> ItemStack:
|
|
3257
|
+
"""
|
|
3258
|
+
Gets the Item picked up by the entity.
|
|
3259
|
+
"""
|
|
2701
3260
|
class PlayerQuitEvent(PlayerEvent):
|
|
2702
3261
|
"""
|
|
2703
3262
|
Called when a player leaves a server.
|
|
2704
3263
|
"""
|
|
2705
|
-
@staticmethod
|
|
2706
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2707
|
-
...
|
|
2708
3264
|
@property
|
|
2709
3265
|
def quit_message(self) -> str:
|
|
2710
3266
|
"""
|
|
@@ -2717,39 +3273,14 @@ class PlayerRespawnEvent(PlayerEvent):
|
|
|
2717
3273
|
"""
|
|
2718
3274
|
Called when a player respawns.
|
|
2719
3275
|
"""
|
|
2720
|
-
|
|
2721
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2722
|
-
...
|
|
2723
|
-
class PlayerTeleportEvent(PlayerEvent, Cancellable):
|
|
3276
|
+
class PlayerTeleportEvent(PlayerMoveEvent):
|
|
2724
3277
|
"""
|
|
2725
3278
|
Called when a player is teleported from one location to another.
|
|
2726
3279
|
"""
|
|
2727
|
-
@staticmethod
|
|
2728
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2729
|
-
...
|
|
2730
|
-
@property
|
|
2731
|
-
def from_location(self) -> Location:
|
|
2732
|
-
"""
|
|
2733
|
-
Gets or sets the location that this player moved from.
|
|
2734
|
-
"""
|
|
2735
|
-
@from_location.setter
|
|
2736
|
-
def from_location(self, arg1: Location) -> None:
|
|
2737
|
-
...
|
|
2738
|
-
@property
|
|
2739
|
-
def to_location(self) -> Location:
|
|
2740
|
-
"""
|
|
2741
|
-
Gets or sets the location that this player moved to.
|
|
2742
|
-
"""
|
|
2743
|
-
@to_location.setter
|
|
2744
|
-
def to_location(self, arg1: Location) -> None:
|
|
2745
|
-
...
|
|
2746
3280
|
class Plugin(CommandExecutor):
|
|
2747
3281
|
"""
|
|
2748
3282
|
Represents a Plugin
|
|
2749
3283
|
"""
|
|
2750
|
-
@staticmethod
|
|
2751
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2752
|
-
...
|
|
2753
3284
|
def __init__(self) -> None:
|
|
2754
3285
|
...
|
|
2755
3286
|
def _get_description(self) -> PluginDescription:
|
|
@@ -2804,9 +3335,6 @@ class PluginCommand(Command):
|
|
|
2804
3335
|
"""
|
|
2805
3336
|
Represents a Command belonging to a Plugin
|
|
2806
3337
|
"""
|
|
2807
|
-
@staticmethod
|
|
2808
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2809
|
-
...
|
|
2810
3338
|
@property
|
|
2811
3339
|
def executor(self) -> CommandExecutor:
|
|
2812
3340
|
"""
|
|
@@ -2824,9 +3352,6 @@ class PluginDescription:
|
|
|
2824
3352
|
"""
|
|
2825
3353
|
Represents the basic information about a plugin that the plugin loader needs to know.
|
|
2826
3354
|
"""
|
|
2827
|
-
@staticmethod
|
|
2828
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2829
|
-
...
|
|
2830
3355
|
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:
|
|
2831
3356
|
...
|
|
2832
3357
|
@property
|
|
@@ -2918,9 +3443,6 @@ class PluginDisableEvent(ServerEvent):
|
|
|
2918
3443
|
"""
|
|
2919
3444
|
Called when a plugin is disabled.
|
|
2920
3445
|
"""
|
|
2921
|
-
@staticmethod
|
|
2922
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2923
|
-
...
|
|
2924
3446
|
@property
|
|
2925
3447
|
def plugin(self) -> Plugin:
|
|
2926
3448
|
...
|
|
@@ -2928,9 +3450,6 @@ class PluginEnableEvent(ServerEvent):
|
|
|
2928
3450
|
"""
|
|
2929
3451
|
Called when a plugin is enabled.
|
|
2930
3452
|
"""
|
|
2931
|
-
@staticmethod
|
|
2932
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2933
|
-
...
|
|
2934
3453
|
@property
|
|
2935
3454
|
def plugin(self) -> Plugin:
|
|
2936
3455
|
...
|
|
@@ -2941,9 +3460,6 @@ class PluginLoadOrder:
|
|
|
2941
3460
|
POSTWORLD: typing.ClassVar[PluginLoadOrder] # value = <PluginLoadOrder.POSTWORLD: 1>
|
|
2942
3461
|
STARTUP: typing.ClassVar[PluginLoadOrder] # value = <PluginLoadOrder.STARTUP: 0>
|
|
2943
3462
|
__members__: typing.ClassVar[dict[str, PluginLoadOrder]] # value = {'STARTUP': <PluginLoadOrder.STARTUP: 0>, 'POSTWORLD': <PluginLoadOrder.POSTWORLD: 1>}
|
|
2944
|
-
@staticmethod
|
|
2945
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2946
|
-
...
|
|
2947
3463
|
def __eq__(self, other: typing.Any) -> bool:
|
|
2948
3464
|
...
|
|
2949
3465
|
def __getstate__(self) -> int:
|
|
@@ -2974,9 +3490,6 @@ class PluginLoader:
|
|
|
2974
3490
|
"""
|
|
2975
3491
|
Represents a plugin loader, which handles direct access to specific types of plugins
|
|
2976
3492
|
"""
|
|
2977
|
-
@staticmethod
|
|
2978
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2979
|
-
...
|
|
2980
3493
|
def __init__(self, server: Server) -> None:
|
|
2981
3494
|
...
|
|
2982
3495
|
def disable_plugin(self, plugin: Plugin) -> None:
|
|
@@ -3009,9 +3522,6 @@ class PluginManager:
|
|
|
3009
3522
|
"""
|
|
3010
3523
|
Represents a plugin manager that handles all plugins from the Server
|
|
3011
3524
|
"""
|
|
3012
|
-
@staticmethod
|
|
3013
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3014
|
-
...
|
|
3015
3525
|
def call_event(self, event: Event) -> None:
|
|
3016
3526
|
"""
|
|
3017
3527
|
Calls an event which will be passed to plugins.
|
|
@@ -3128,9 +3638,6 @@ class Position(Vector):
|
|
|
3128
3638
|
"""
|
|
3129
3639
|
Represents a 3-dimensional position in a dimension within a level.
|
|
3130
3640
|
"""
|
|
3131
|
-
@staticmethod
|
|
3132
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3133
|
-
...
|
|
3134
3641
|
def __init__(self, dimension: Dimension, x: float, y: float, z: float) -> None:
|
|
3135
3642
|
...
|
|
3136
3643
|
def __repr__(self) -> str:
|
|
@@ -3164,9 +3671,6 @@ class ProxiedCommandSender(CommandSender):
|
|
|
3164
3671
|
"""
|
|
3165
3672
|
Represents a proxied command sender.
|
|
3166
3673
|
"""
|
|
3167
|
-
@staticmethod
|
|
3168
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3169
|
-
...
|
|
3170
3674
|
@property
|
|
3171
3675
|
def callee(self) -> CommandSender:
|
|
3172
3676
|
"""
|
|
@@ -3183,9 +3687,6 @@ class RenderType:
|
|
|
3183
3687
|
"""
|
|
3184
3688
|
INTEGER: typing.ClassVar[RenderType] # value = <RenderType.INTEGER: 0>
|
|
3185
3689
|
__members__: typing.ClassVar[dict[str, RenderType]] # value = {'INTEGER': <RenderType.INTEGER: 0>}
|
|
3186
|
-
@staticmethod
|
|
3187
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3188
|
-
...
|
|
3189
3690
|
def __eq__(self, other: typing.Any) -> bool:
|
|
3190
3691
|
...
|
|
3191
3692
|
def __getstate__(self) -> int:
|
|
@@ -3216,9 +3717,6 @@ class Scheduler:
|
|
|
3216
3717
|
"""
|
|
3217
3718
|
Represents a scheduler that executes various tasks
|
|
3218
3719
|
"""
|
|
3219
|
-
@staticmethod
|
|
3220
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3221
|
-
...
|
|
3222
3720
|
def cancel_task(self, id: int) -> None:
|
|
3223
3721
|
"""
|
|
3224
3722
|
Removes task from scheduler.
|
|
@@ -3247,9 +3745,6 @@ class Score:
|
|
|
3247
3745
|
"""
|
|
3248
3746
|
Represents a score for an objective on a scoreboard.
|
|
3249
3747
|
"""
|
|
3250
|
-
@staticmethod
|
|
3251
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3252
|
-
...
|
|
3253
3748
|
@property
|
|
3254
3749
|
def entry(self) -> Player | Actor | str:
|
|
3255
3750
|
"""
|
|
@@ -3282,9 +3777,6 @@ class Scoreboard:
|
|
|
3282
3777
|
"""
|
|
3283
3778
|
Represents a scoreboard
|
|
3284
3779
|
"""
|
|
3285
|
-
@staticmethod
|
|
3286
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3287
|
-
...
|
|
3288
3780
|
def add_objective(self, name: str, criteria: Criteria.Type, display_name: str | None = None, render_type: RenderType = RenderType.INTEGER) -> Objective:
|
|
3289
3781
|
"""
|
|
3290
3782
|
Registers an Objective on this Scoreboard with a name displayed to players
|
|
@@ -3329,9 +3821,6 @@ class ScriptMessageEvent(ServerEvent, Cancellable):
|
|
|
3329
3821
|
"""
|
|
3330
3822
|
Called when a message is sent by `/scriptevent` command
|
|
3331
3823
|
"""
|
|
3332
|
-
@staticmethod
|
|
3333
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3334
|
-
...
|
|
3335
3824
|
@property
|
|
3336
3825
|
def message(self) -> str:
|
|
3337
3826
|
"""
|
|
@@ -3351,9 +3840,6 @@ class Server:
|
|
|
3351
3840
|
"""
|
|
3352
3841
|
Represents a server implementation.
|
|
3353
3842
|
"""
|
|
3354
|
-
@staticmethod
|
|
3355
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3356
|
-
...
|
|
3357
3843
|
def broadcast(self, message: str | Translatable, permission: str) -> None:
|
|
3358
3844
|
"""
|
|
3359
3845
|
Broadcasts the specified message to every user with the given permission name.
|
|
@@ -3445,11 +3931,26 @@ class Server:
|
|
|
3445
3931
|
Gets the current ticks per second (TPS).
|
|
3446
3932
|
"""
|
|
3447
3933
|
@property
|
|
3934
|
+
def enchantment_registry(self) -> EnchantmentRegistry:
|
|
3935
|
+
"""
|
|
3936
|
+
Returns the registry for all the enchantments.
|
|
3937
|
+
"""
|
|
3938
|
+
@property
|
|
3448
3939
|
def ip_ban_list(self) -> IpBanList:
|
|
3449
3940
|
"""
|
|
3450
3941
|
Gets the IP ban list.
|
|
3451
3942
|
"""
|
|
3452
3943
|
@property
|
|
3944
|
+
def item_factory(self) -> ItemFactory:
|
|
3945
|
+
"""
|
|
3946
|
+
Gets the instance of the item factory (for ItemMeta).
|
|
3947
|
+
"""
|
|
3948
|
+
@property
|
|
3949
|
+
def item_registry(self) -> ItemRegistry:
|
|
3950
|
+
"""
|
|
3951
|
+
Returns the registry for all the item types.
|
|
3952
|
+
"""
|
|
3953
|
+
@property
|
|
3453
3954
|
def language(self) -> Language:
|
|
3454
3955
|
"""
|
|
3455
3956
|
Gets the current language interface used by the server.
|
|
@@ -3498,6 +3999,16 @@ class Server:
|
|
|
3498
3999
|
Gets the plugin manager for interfacing with plugins.
|
|
3499
4000
|
"""
|
|
3500
4001
|
@property
|
|
4002
|
+
def port(self) -> int:
|
|
4003
|
+
"""
|
|
4004
|
+
Get the game port that the server runs on.
|
|
4005
|
+
"""
|
|
4006
|
+
@property
|
|
4007
|
+
def port_v6(self) -> int:
|
|
4008
|
+
"""
|
|
4009
|
+
Get the game port (IPv6) that the server runs on.
|
|
4010
|
+
"""
|
|
4011
|
+
@property
|
|
3501
4012
|
def scheduler(self) -> Scheduler:
|
|
3502
4013
|
"""
|
|
3503
4014
|
Gets the scheduler for managing scheduled events.
|
|
@@ -3508,6 +4019,11 @@ class Server:
|
|
|
3508
4019
|
Gets the primary Scoreboard controlled by the server.
|
|
3509
4020
|
"""
|
|
3510
4021
|
@property
|
|
4022
|
+
def service_manager(self) -> ServiceManager:
|
|
4023
|
+
"""
|
|
4024
|
+
Gets the service manager.
|
|
4025
|
+
"""
|
|
4026
|
+
@property
|
|
3511
4027
|
def start_time(self) -> datetime.datetime:
|
|
3512
4028
|
"""
|
|
3513
4029
|
Gets the start time of the server.
|
|
@@ -3521,9 +4037,6 @@ class ServerCommandEvent(ServerEvent, Cancellable):
|
|
|
3521
4037
|
"""
|
|
3522
4038
|
Called when the console runs a command, early in the process.
|
|
3523
4039
|
"""
|
|
3524
|
-
@staticmethod
|
|
3525
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3526
|
-
...
|
|
3527
4040
|
@property
|
|
3528
4041
|
def command(self) -> str:
|
|
3529
4042
|
"""
|
|
@@ -3541,16 +4054,10 @@ class ServerEvent(Event):
|
|
|
3541
4054
|
"""
|
|
3542
4055
|
Represents a server-related event
|
|
3543
4056
|
"""
|
|
3544
|
-
@staticmethod
|
|
3545
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3546
|
-
...
|
|
3547
4057
|
class ServerListPingEvent(ServerEvent, Cancellable):
|
|
3548
4058
|
"""
|
|
3549
4059
|
Called when a server ping is coming in.
|
|
3550
4060
|
"""
|
|
3551
|
-
@staticmethod
|
|
3552
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3553
|
-
...
|
|
3554
4061
|
@property
|
|
3555
4062
|
def game_mode(self) -> GameMode:
|
|
3556
4063
|
"""
|
|
@@ -3645,9 +4152,6 @@ class ServerLoadEvent(Event):
|
|
|
3645
4152
|
class LoadType:
|
|
3646
4153
|
STARTUP: typing.ClassVar[ServerLoadEvent.LoadType] # value = <LoadType.STARTUP: 0>
|
|
3647
4154
|
__members__: typing.ClassVar[dict[str, ServerLoadEvent.LoadType]] # value = {'STARTUP': <LoadType.STARTUP: 0>}
|
|
3648
|
-
@staticmethod
|
|
3649
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3650
|
-
...
|
|
3651
4155
|
def __eq__(self, other: typing.Any) -> bool:
|
|
3652
4156
|
...
|
|
3653
4157
|
def __getstate__(self) -> int:
|
|
@@ -3675,48 +4179,105 @@ class ServerLoadEvent(Event):
|
|
|
3675
4179
|
def value(self) -> int:
|
|
3676
4180
|
...
|
|
3677
4181
|
STARTUP: typing.ClassVar[ServerLoadEvent.LoadType] # value = <LoadType.STARTUP: 0>
|
|
3678
|
-
@staticmethod
|
|
3679
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3680
|
-
...
|
|
3681
4182
|
@property
|
|
3682
4183
|
def type(self) -> ServerLoadEvent.LoadType:
|
|
3683
4184
|
...
|
|
3684
|
-
class
|
|
4185
|
+
class Service:
|
|
3685
4186
|
"""
|
|
3686
|
-
Represents a
|
|
4187
|
+
Represents a list of methods.
|
|
3687
4188
|
"""
|
|
3688
|
-
|
|
3689
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
4189
|
+
def __init__(self) -> None:
|
|
3690
4190
|
...
|
|
3691
|
-
|
|
4191
|
+
class ServiceManager:
|
|
4192
|
+
"""
|
|
4193
|
+
Represent a service manager that manages services and service providers.
|
|
4194
|
+
"""
|
|
4195
|
+
def load(self, name: str) -> Service:
|
|
3692
4196
|
...
|
|
3693
|
-
|
|
3694
|
-
|
|
4197
|
+
def register(self, name: str, provider: Service, plugin: Plugin, priority: ServicePriority) -> None:
|
|
4198
|
+
"""
|
|
4199
|
+
Register a provider of a service.
|
|
4200
|
+
"""
|
|
4201
|
+
@typing.overload
|
|
4202
|
+
def unregister(self, name: str, provider: Service) -> None:
|
|
4203
|
+
"""
|
|
4204
|
+
Unregister a particular provider for a particular service.
|
|
4205
|
+
"""
|
|
4206
|
+
@typing.overload
|
|
4207
|
+
def unregister(self, provider: Service) -> None:
|
|
4208
|
+
"""
|
|
4209
|
+
Unregister a particular provider.
|
|
4210
|
+
"""
|
|
4211
|
+
def unregister_all(self, plugin: Plugin) -> None:
|
|
3695
4212
|
"""
|
|
3696
|
-
|
|
4213
|
+
Unregister all the services registered by a particular plugin.
|
|
3697
4214
|
"""
|
|
4215
|
+
class ServicePriority:
|
|
4216
|
+
"""
|
|
4217
|
+
Represents various priorities of a provider.
|
|
4218
|
+
"""
|
|
4219
|
+
HIGH: typing.ClassVar[ServicePriority] # value = <ServicePriority.HIGH: 3>
|
|
4220
|
+
HIGHEST: typing.ClassVar[ServicePriority] # value = <ServicePriority.HIGHEST: 4>
|
|
4221
|
+
LOW: typing.ClassVar[ServicePriority] # value = <ServicePriority.LOW: 1>
|
|
4222
|
+
LOWEST: typing.ClassVar[ServicePriority] # value = <ServicePriority.LOWEST: 0>
|
|
4223
|
+
NORMAL: typing.ClassVar[ServicePriority] # value = <ServicePriority.NORMAL: 2>
|
|
4224
|
+
__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>}
|
|
4225
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
4226
|
+
...
|
|
4227
|
+
def __getstate__(self) -> int:
|
|
4228
|
+
...
|
|
4229
|
+
def __hash__(self) -> int:
|
|
4230
|
+
...
|
|
4231
|
+
def __index__(self) -> int:
|
|
4232
|
+
...
|
|
4233
|
+
def __init__(self, value: int) -> None:
|
|
4234
|
+
...
|
|
4235
|
+
def __int__(self) -> int:
|
|
4236
|
+
...
|
|
4237
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
4238
|
+
...
|
|
4239
|
+
def __repr__(self) -> str:
|
|
4240
|
+
...
|
|
4241
|
+
def __setstate__(self, state: int) -> None:
|
|
4242
|
+
...
|
|
4243
|
+
def __str__(self) -> str:
|
|
4244
|
+
...
|
|
4245
|
+
@property
|
|
4246
|
+
def name(self) -> str:
|
|
4247
|
+
...
|
|
4248
|
+
@property
|
|
4249
|
+
def value(self) -> int:
|
|
4250
|
+
...
|
|
4251
|
+
class Skin:
|
|
4252
|
+
"""
|
|
4253
|
+
Represents a player skin.
|
|
4254
|
+
"""
|
|
4255
|
+
def __init__(self, id: str, image: numpy.ndarray[numpy.uint8], cape_id: str | None = None, cape_image: numpy.ndarray[numpy.uint8] | None = None) -> None:
|
|
4256
|
+
...
|
|
3698
4257
|
@property
|
|
3699
4258
|
def cape_id(self) -> str | None:
|
|
3700
4259
|
"""
|
|
3701
4260
|
Get the Cape ID.
|
|
3702
4261
|
"""
|
|
3703
4262
|
@property
|
|
3704
|
-
def
|
|
4263
|
+
def cape_image(self) -> numpy.ndarray[numpy.uint8]:
|
|
3705
4264
|
"""
|
|
3706
|
-
Get the
|
|
4265
|
+
Get the Cape image.
|
|
3707
4266
|
"""
|
|
3708
4267
|
@property
|
|
3709
|
-
def
|
|
4268
|
+
def id(self) -> str:
|
|
3710
4269
|
"""
|
|
3711
4270
|
Get the Skin ID.
|
|
3712
4271
|
"""
|
|
4272
|
+
@property
|
|
4273
|
+
def image(self) -> numpy.ndarray[numpy.uint8]:
|
|
4274
|
+
"""
|
|
4275
|
+
Get the Skin image.
|
|
4276
|
+
"""
|
|
3713
4277
|
class Slider:
|
|
3714
4278
|
"""
|
|
3715
4279
|
Represents a slider with a label.
|
|
3716
4280
|
"""
|
|
3717
|
-
@staticmethod
|
|
3718
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3719
|
-
...
|
|
3720
4281
|
def __init__(self, label: str | Translatable = '', min: float = 0, max: float = 100, step: float = 20, default_value: float | None = None) -> None:
|
|
3721
4282
|
...
|
|
3722
4283
|
@property
|
|
@@ -3763,9 +4324,6 @@ class SocketAddress:
|
|
|
3763
4324
|
"""
|
|
3764
4325
|
Represents an IP Socket Address (hostname + port number).
|
|
3765
4326
|
"""
|
|
3766
|
-
@staticmethod
|
|
3767
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3768
|
-
...
|
|
3769
4327
|
@typing.overload
|
|
3770
4328
|
def __init__(self) -> None:
|
|
3771
4329
|
...
|
|
@@ -3786,27 +4344,10 @@ class SocketAddress:
|
|
|
3786
4344
|
"""
|
|
3787
4345
|
Gets the port number.
|
|
3788
4346
|
"""
|
|
3789
|
-
class SpawnParticleEffectPacket(Packet):
|
|
3790
|
-
"""
|
|
3791
|
-
Represents a packet for spawning a particle effect.
|
|
3792
|
-
"""
|
|
3793
|
-
actor_id: int
|
|
3794
|
-
dimension_id: int
|
|
3795
|
-
effect_name: str
|
|
3796
|
-
molang_variables_json: str | None
|
|
3797
|
-
position: Vector
|
|
3798
|
-
@staticmethod
|
|
3799
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3800
|
-
...
|
|
3801
|
-
def __init__(self) -> None:
|
|
3802
|
-
...
|
|
3803
4347
|
class StepSlider:
|
|
3804
4348
|
"""
|
|
3805
4349
|
Represents a step slider with a set of predefined options.
|
|
3806
4350
|
"""
|
|
3807
|
-
@staticmethod
|
|
3808
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3809
|
-
...
|
|
3810
4351
|
def __init__(self, label: str | Translatable = '', options: list[str] | None = None, default_index: int | None = None) -> None:
|
|
3811
4352
|
...
|
|
3812
4353
|
def add_option(self, option: str) -> Dropdown:
|
|
@@ -3841,9 +4382,6 @@ class Task:
|
|
|
3841
4382
|
"""
|
|
3842
4383
|
Represents a task being executed by the scheduler
|
|
3843
4384
|
"""
|
|
3844
|
-
@staticmethod
|
|
3845
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3846
|
-
...
|
|
3847
4385
|
def cancel(self) -> None:
|
|
3848
4386
|
"""
|
|
3849
4387
|
Attempts to cancel this task.
|
|
@@ -3872,9 +4410,6 @@ class TextInput:
|
|
|
3872
4410
|
"""
|
|
3873
4411
|
Represents a text input field.
|
|
3874
4412
|
"""
|
|
3875
|
-
@staticmethod
|
|
3876
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3877
|
-
...
|
|
3878
4413
|
def __init__(self, label: str | Translatable = '', placeholder: str | Translatable = '', default_value: str | None = None) -> None:
|
|
3879
4414
|
...
|
|
3880
4415
|
@property
|
|
@@ -3905,9 +4440,6 @@ class ThunderChangeEvent(WeatherEvent, Cancellable):
|
|
|
3905
4440
|
"""
|
|
3906
4441
|
Called when the thunder state in a world is changing.
|
|
3907
4442
|
"""
|
|
3908
|
-
@staticmethod
|
|
3909
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3910
|
-
...
|
|
3911
4443
|
@property
|
|
3912
4444
|
def to_thunder_state(self) -> bool:
|
|
3913
4445
|
"""
|
|
@@ -3917,9 +4449,6 @@ class Toggle:
|
|
|
3917
4449
|
"""
|
|
3918
4450
|
Represents a toggle button with a label.
|
|
3919
4451
|
"""
|
|
3920
|
-
@staticmethod
|
|
3921
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3922
|
-
...
|
|
3923
4452
|
def __init__(self, label: str | Translatable = '', default_value: bool = False) -> None:
|
|
3924
4453
|
...
|
|
3925
4454
|
@property
|
|
@@ -3942,9 +4471,6 @@ class Translatable:
|
|
|
3942
4471
|
"""
|
|
3943
4472
|
Represents an object with a text representation that can be translated by the Minecraft client.
|
|
3944
4473
|
"""
|
|
3945
|
-
@staticmethod
|
|
3946
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3947
|
-
...
|
|
3948
4474
|
def __init__(self, text: str, params: list[str] | None = None) -> None:
|
|
3949
4475
|
...
|
|
3950
4476
|
@property
|
|
@@ -3961,9 +4487,6 @@ class Vector:
|
|
|
3961
4487
|
"""
|
|
3962
4488
|
Represents a 3-dimensional vector.
|
|
3963
4489
|
"""
|
|
3964
|
-
@staticmethod
|
|
3965
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3966
|
-
...
|
|
3967
4490
|
@typing.overload
|
|
3968
4491
|
def __add__(self, arg0: Vector) -> Vector:
|
|
3969
4492
|
...
|
|
@@ -4060,9 +4583,6 @@ class WeatherChangeEvent(WeatherEvent, Cancellable):
|
|
|
4060
4583
|
"""
|
|
4061
4584
|
Called when the weather (rain) state in a world is changing.
|
|
4062
4585
|
"""
|
|
4063
|
-
@staticmethod
|
|
4064
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
4065
|
-
...
|
|
4066
4586
|
@property
|
|
4067
4587
|
def to_weather_state(self) -> bool:
|
|
4068
4588
|
"""
|
|
@@ -4072,9 +4592,6 @@ class WeatherEvent(Event):
|
|
|
4072
4592
|
"""
|
|
4073
4593
|
Represents a weather-related event
|
|
4074
4594
|
"""
|
|
4075
|
-
@staticmethod
|
|
4076
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
4077
|
-
...
|
|
4078
4595
|
@property
|
|
4079
4596
|
def level(self) -> Level:
|
|
4080
4597
|
"""
|